I’ve been ripping my hair out over the last few weeks trying to figure out why we cannot get remote extensions working correctly.
Currently we have an internal system that works fine and we are wanting to allow external registration of users extensions so they can be contactable via a softphone when working from home. I have opened UDP ports 5060 for sip, or in our case pjsip as we have binded port 5060 to pjsip for our instance. And ports 10000-40000 for RTP. Our system is NATted and I have tried the configuration in DNAT & Full NAT which no difference.
The issue seems to be that communication is not making it back to the remote softphone. I say this because when I connect the remote softphone it registers successfully on the softphone end. However on the PBX it shows the IP registration but next to it states ‘unavailable’ and when you try and call the extension the call does not go through. Ontop of that if you call from the remote extension to an internal phone the call goes through successfully and both parties can hear each-other.
I’ve been wading through the logs and found this when the remote phone first connects;
[2018-02-16 10:30:59] VERBOSE[12680] res_pjsip/pjsip_configuration.c: Endpoint 2030 is now Reachable
[2018-02-16 10:31:01] VERBOSE[12680] res_pjsip/pjsip_configuration.c: Contact 2030/sip:[email protected]:48073;rinstance=3076376c99ab1810 is now Unreachable. RTT: 0.000 msec
It seems like the phone registers but goes unreachable straight away.
I’d appreciate if you could point me to the direction of them. I see a couple of NAT related settings in the SIP extension settings but not in the pjSIP extensions that we are using here
Doesn’t seem to have worked, I changed the extension settings to match your screenshot and also changed the ChanSIP IP setting from public to static and entered our static IP from our ISP. Still seem to have the same issue of communication not making it back to the remote extension.
Ahh, i got it working on FreePBX 14 Asterisk 14, it seems that you have a very old version of FreePBX (and probably Asterisk too) if you are still running amportal commands.
After a bit more testing it looks like the issue is with Pjsip as I changed the extension driver to ChanSIP and it worked fine. However using ChanSIP isn’t really ideal so if anyone has any suggestions as to why ChanSIP would work but Pjsip wouldn’t that would be great