I have an Asterisk server in one Amazon EC2 running in Ubuntu server LTS 16.04 and migrate to use PJSIP protocol, before I was using SIP and was working properly, now after migration the extention shows like connected but unavailable, the calls doesn’t ring with exception one extension.
I have 3 extensions created and only one rings and show as Available, the 3 extensions have the same settings.
6001 work, available and ring
6002 doesn’t work, unavailable and doesn’t ring
6003 doesn’t work, unavailable and doesn’t ring
Please provide the actual endpoint configuration for the other endpoints, as well as network information - are they remote and behind NAT? You should also provide SIP trace of the inbound registration and call attempt using “pjsip set logger on”.
Don’t create a “type = contact” in the configuration, and don’t set an empty “contact=” in the AOR. Your “type=identify” section also does nothing and can be removed.
the range of rtp ports seted is from 10000 to 20000 and it is opened in my firewall, was working well with SIP.
bellow the trace with rtp debug on
== Setting global variable 'SIPDOMAIN' to 'siphml.dns123.com'
-- Executing [6001@basic:1] Dial("PJSIP/6002-0000000b", "PJSIP/6001,90,tT") in new stack
-- Called PJSIP/6001
-- PJSIP/6001-0000000c is ringing
-- PJSIP/6001-0000000c answered PJSIP/6002-0000000b
-- Channel PJSIP/6001-0000000c joined 'simple_bridge' basic-bridge <994e445b-95d1-4572-8025-f31b1360674b>
-- Channel PJSIP/6002-0000000b joined 'simple_bridge' basic-bridge <994e445b-95d1-4572-8025-f31b1360674b>
Sent Comfort Noise RTP packet to 187.181.178.208:8345 (type 02, seq 008148, ts 000000, len 000001)
Sent Comfort Noise RTP packet to 192.168.0.102:29504 (type 02, seq 008454, ts 000000, len 000001)
Your Asterisk is not receiving RTP, so you need to look at the SIP side to see where it told the endpoints to send it. As well for future reference there’s documentation on the wiki[1] for this kind of stuff, including how to set up PJSIP if it is behind NAT and what to do when endpoints are behind NAT.