Nat aws ec2 pjsip

Hi guys i have a problem with my pjsip asterisk configuration hosted on aws ec2. My phones are not ringing and i have no audio.

Thx for help, my config :

[transport-udp-nat]
type=transport
protocol=udp
bind=0.0.0.0
;local_net=xxx.xxx.x.x/24
local_net=xxx.xx.x.xxx/20 ; my local ip aws
external_media_address=x.xxx.xx.xxx ; my public ip aws
external_signaling_address=x.xxx.xx.xxx ; my public ip aws

[fake_two_account]
type=endpoint
transport=transport-udp-nat
disallow=all
allow=alaw
;,ulaw,gsm
direct_media=no
media_address=x.xxx.xx.xxx ; my public ip adress aws
rtp_symmetric=yes
force_rport=yes
rewrite_contact=yes
trust_id_outbound=yes
dtmf_mode=rfc4733
ice_support=yes

dtls_auto_generate_cert=yes
webrtc=yes
context=fake_two_context
auth=fake_two_account-auth
aors=fake_two_account

[fake_two_account-auth]
type=auth
auth_type=userpass
password=xxxxxxxxx
username=my_fake_two_account

[fake_two_account]
type=aor
max_contacts=1

PS: thx 100 000 for help

Comment protocol=udp
And add protocol=ws

add protocol=wss

if you have a coturn and asterisk on the same ec2 machine you need to comment external-ip={{ public_ip }} on coturn conf

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