Error sending STUN request: Operation not permitted

have configured twilio for any outbound calls in my pjsip.conf file. When calling from WebRTC to any phone number the there is no audio for ringing and per talking on other side.

But every time call connect I get this error:
Error sending STUN request: Operation not permitted

What is the network layout? What is the current configuration? Have you simplified the scenario so the WebRTC client calls Echo()? What browser? What client in the browser? Is NAT involved?

What browser ==> Chrome

Client is a real phone number

No NAT

Here is the current configuration?

[global]
max_forwards=70
user_agent=AGENTNAME
default_realm=www.DOMAIN.com
keep_alive_interval=300
udpbindaddr=0.0.0.0
tcpbindaddr=0.0.0.0
srvlookup=yes

[twilio-transport]
type = transport
protocol = udp
bind = 0.0.0.0:5060
external_media_address = https://www.DOMAIN.com
external_signaling_address = https://www.DOMAIN.com
allow_reload = no
tos = cs3
cos = 3
local_net = 0.0.0.0/24

[twilio-acl]
type = acl
permit = 0.0.0.0/0.0.0.0

[twilio-trunk]
type = endpoint
aors=twilio-aor
outbound_auth=twilio-auth
allow=!all,ulaw
context=from-Twilio
;dtmfmode=rfc2833

[twilio-aor]
type = aor
;contact=www.TRUNK_PROVIDER.com:5070
contact = sip:SUB_DOMAIN.pstn.twilio.com
qualify_frequency = 60

[twilio-auth]
type = auth
auth_type = userpass
username = USER_NAME
password = PASSWORD

[twilio-identify]
type = identify
endpoint = twilio-trunk
match = SUB_DOMAIN.pstn.twilio.com


; == Transports

[udp_transport]
type=transport
protocol=udp
bind=0.0.0.0
tos=af42
cos=3

[wss_transport]
type=transport
protocol=wss
bind=0.0.0.0

[tcp_transport]
type=transport
protocol=tcp
bind=0.0.0.0

[tls_transport]
type=transport
protocol=tls
bind=0.0.0.0
cert_file=/etc/asterisk/keys/www.DOMAIN.com.crt
priv_key_file=/etc/asterisk/keys/www.DOMAIN.com.key
method=tlsv1

[acl]
type=acl
deny=0.0.0.0/0.0.0.0
permit=127.0.0.1/255.255.255.0
permit=0.0.0.0/0.0.0.0


[single_aor](!)
max_contacts=1
qualify_frequency=120
remove_existing=yes

[userpass_auth](!)
auth_type=userpass

[basic_endpoint](!)
moh_suggest=default
context=from-extensions
inband_progress=no
rtp_timeout=120
message_context=textmessages
allow_subscribe=yes
subscribe_context=subscriptions
direct_media=off
dtmf_mode=rfc4733
device_state_busy_at=1
disallow=all

[phone_endpoint](!)
allow=ulaw,alaw,g722,gsm,vp9,vp8,h264

[webrtc_endpoint](!)
transport=wss_transport
allow=opus,ulaw,vp9,vp8,h264
use_avpf=yes
media_encryption=dtls
dtls_verify=fingerprint
dtls_setup=actpass
ice_support=yes
media_use_received_transport=yes
rtcp_mux=yes
dtls_cert_file=/etc/asterisk/keys/www.DOMAIN.com.pem
dtls_private_key=/etc/asterisk/keys/www.DOMAIN.com.key
dtls_ca_file=/etc/asterisk/keys/www.DOMAIN.com.crt

[User1](basic_endpoint,webrtc_endpoint)
type=endpoint
callerid="USER" <100>
auth=User1
aors=User1
[User1](single_aor)
type=aor
mailboxes=User1@default
[User1](userpass_auth)
type=auth
username=User1
password=1234

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.