Hello,
We are working on asterisk 13 with PJSIP.
I am having the issue with the outgoing call.
The incoming and outgoing call works fine.
However, if,
I make the outgoing call from the asterisk, it will ring the remote phone.
But, if I(callee on asterisk) hang up the phone within the few seconds, the remote phone keeps ringing. (The same thing happens the other way.)
Following is the pjsip.conf:
[global]
type=global
keep_alive_interval=20
endpoint_identifier_order=username,ip,anonymous[simple]
type=transport
protocol=udp
bind=0.0.0.0
tos=cs7
cos=7[simpletrans]
type=transport
protocol=tcp
bind=0.0.0.0:5060
tos=cs7
cos=7
local_net=xxx.xxx.xxx.xxx
external_media_address=xxx.xxx.xxx.xxx
external_signaling_address=xxx.xxx.xxx.xxx[userxxx]
type=registration
outbound_auth=userxxx
outbound_proxy=sip:yyyyyy.twilio.com;transport=tcp
transport=simpletrans
line=yes
endpoint=userxxx
expiration=160
server_uri=sip:yyyyyy.twilio.com;transport=tcp
client_uri=sip:userxxx@yyyyyy.twilio.com;transport=tcp[userxxx]
type=auth
auth_type=userpass
password=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
username=userxxx[userxxx]
type=aor
remove_existing=yes
qualify_frequency=15
contact=sip:yyyyyy.twilio.com;transport=tcp[userxxx]
type=endpoint
tos_audio=cs7
cos_audio=7
direct_media=no
force_rport=yes
rtp_symmetric=yes
context=incoming-userxxx
rewrite_contact=yes
transport=simpletrans
mailboxes=999@vmsetup
disallow=all
allow=gsm,ulaw,alaw,h263,h264
from_user=userxxxx
from_domain=yyyyyy.twilio.com;transport=tcp
aors=userxxx
outbound_auth=userxxx[1111]
type=endpoint
transport=simple
context=incoming-userxxx
disallow=all
tos_audio=cs7
cos_audio=7
rewrite_contact=yes
rtp_symmetric=yes
dtmf_mode=rfc4733
allow=gsm,ulaw,alaw,h263,h264
mailboxes=1111@vmsetup
auth=1111
aors=1111[1111]
type=auth
auth_type=userpass
password=xxxxxxxxxxxxxxx
username=1111[1111]
type=aor
maximum_expiration=160
max_contacts=2
Do you guys think this is NAT issue? Please let me know how to solve it.