I have a freepbx installed on a azure virtual machine. The server is behind a nat but it doesn’t register sip extensions. It receive the request tough. I’ve checked that with tcpdump.
In the extension configuration on the web gui, i have activated the nat with the yes (force…) option. I don’t what config to do after that to allow the extension registration.
@letal1609 That’s your issue right there. It is sending a reply and telling you the registration attempt is Unauthorized. Can you run “sip set debug on” from the Asterisk CLI and attempt a register from there then post the results?
That is the result. Why is it searching the endpoint in pjsip/pjsip ?
[2015-12-11 14:16:55] NOTICE[46359]: res_pjsip/pjsip_distributor.c:347 log_unidentified_request: Request from ‘sip:[email protected]’ failed for ‘91.228.52.229:38437’ (callid: YjU1YzkxMzQxODY2NWFiNzcwMTNkZGEyNTAzYjk0ZmE.) - No matching endpoint found
[2015-12-11 14:16:55] NOTICE[46359]: res_pjsip/pjsip_distributor.c:347 log_unidentified_request: Request from ‘sip:[email protected]’ failed for ‘91.228.52.229:38437’ (callid: YjU1YzkxMzQxODY2NWFiNzcwMTNkZGEyNTAzYjk0ZmE.) - No matching endpoint found
@letal1609 So you do have PJSIP enabled? PJSIP uses port 5060 and Chan_SIP uses 5061. If you have your device trying to register on port 5060 it’s going to use the PJSIP driver and thus give you that error.
Try changing the port to 5061 on the extension, save config and update your phone to use 5061 and give it a try.