Ok so i have a testing and a production server.
Both are the same in the following.
Asterisk version - Asterisk 13.17.1
pbx-version - 10.13.66-17
Both servers are fully up to date with modules.
Now here is my scenario.
I have a location that historically has always been one phone one extension. Now some mobile users are going to be moving from one location to another. This made me want to enable PJSIP and move forward with connecting multiple endpoints to one extension.
On my testing server i set sip driver to both. And verified sip ports were as followed. chan_sip = 5060 & pjsip = 5061. After i set that up i noticed the server was not listening on 5061 via the following “lsof -i :5061” so natrually i figured asterisk did not read the config changes and needed to restart. So i issued a “fwconsole restart” and then i noticed that 5061 was working.
I went in and created an extension pjsip 2211.
I setup a Yealink T48G for that extension and it connected to 5061. Ok good. I increased the max contacts from 1 to 3 and then hit submit and apply.
I moved on to test with another T48G and it also registered. Ok good i called the extension and both phones rang. I launched X-Lite and it also registered and rang properly. Ok thats a good test.
I moved on to the production server
I made the same above changes and got to the point where i needed to issue the fwconsole restart command to restart asterisk. This is where things took a turn for the worst.
I logged into asterisk and seen the following.
[2018-01-02 22:32:22] NOTICE[6725]: res_pjsip/pjsip_distributor.c:649 log_failed_request: Request ‘REGISTER’ from ‘“3508” sip:[email protected]’ failed for ‘10.60.0.83:5060’ (callid: ebcee9967e600c0e) - No matching endpoint found
[2018-01-02 22:32:22] NOTICE[6725]: res_pjsip/pjsip_distributor.c:649 log_failed_request: Request ‘REGISTER’ from ‘“3508” sip:[email protected]’ failed for ‘10.60.0.83:5060’ (callid: ebcee9967e600c0e) - Failed to authenticate
[2018-01-02 22:32:22] NOTICE[6725]: res_pjsip/pjsip_distributor.c:649 log_failed_request: Request ‘REGISTER’ from ‘“6278” sip:[email protected]’ failed for ‘10.60.0.104:5060’ (callid: 9c58e3e03d63636b) - No matching endpoint found
[2018-01-02 22:32:22] NOTICE[6725]: res_pjsip/pjsip_distributor.c:649 log_failed_request: Request ‘REGISTER’ from ‘“6278” sip:[email protected]’ failed for ‘10.60.0.104:5060’ (callid: 9c58e3e03d63636b) - Failed to authenticate
So a ton of these errors about failing to register showed up. Now i am not sure why this happened.
It should still be taking chan_sip on 5060 not PJSIP. I verified that both ports were still active.
lsof -i :5061
COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
asterisk 6612 asterisk 21u IPv4 233921269 0t0 UDP *:sip-tls
lsof -i :5060
COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
asterisk 6612 asterisk 22u IPv4 233921274 0t0 UDP 192.168.XXX.XX8:sip
Any ideas or things i should look at.
Everything was down at this time trunks were not registering and all extensions were throwing failed to authenticate as if chan_sip was not even being attempted on 5060.
Thanks.