Extensions not registering (SOLVED)

Fresh install of Freepbx from iso on a ESXi stack. Added SIP extensions (CHAN_SIP). Testing with X-lite softphones and the they are unable to register with the server. Current testing network topology is flat (all one VLAN).

Log file from unsuccessful registration is this:
[2016-10-26 08:40:10] NOTICE[32445] res_pjsip/pjsip_distributor.c: Request ‘REGISTER’ from ‘sip:[email protected]’ failed for ‘10.128.40.160:64514’ (callid: 82158NGYyYTg2YmY5YWRmNWMzZDZjNTRmNTg4NTg1NTc1ZjY) - No matching endpoint found
[2016-10-26 08:40:10] NOTICE[32445] res_pjsip/pjsip_distributor.c: Request ‘REGISTER’ from ‘sip:[email protected]’ failed for ‘10.128.40.160:64514’ (callid: 82158NGYyYTg2YmY5YWRmNWMzZDZjNTRmNTg4NTg1NTc1ZjY) - No matching endpoint found
[2016-10-26 08:40:10] NOTICE[32445] res_pjsip/pjsip_distributor.c: Request ‘REGISTER’ from ‘sip:[email protected]’ failed for ‘10.128.40.160:64514’ (callid: 82158NGYyYTg2YmY5YWRmNWMzZDZjNTRmNTg4NTg1NTc1ZjY) - Failed to authenticate

Am I missing a step here, check many tutorials an I don’t think I’m missing a step here.

Hi,

Please check the default port for CHAN_SIP. This should same as your using port in soft phone.

Regards.

I made no changes to either freepbx or soft phone sip settings, they are both using the default sip port of 5060

No. The soft phone is attempting to register to the pjsip port, as evidenced by:

res_pjsip/pjsip_distributor.c: Request 'REGISTER' from '' failed

In the odd case that x-lite despite saying it’s 5060 and in fact using 5160 I installed Zoiper and confirmed that the SIP port was 5060 and it also failed registration with the same error.

Though on the web UI when I edit the CHAN_SIP extensions it says:
This device uses CHAN_SIP technology listening on Port 5160 (UDP - this is a NON STANDARD port)

Even when I try changing the port on Zopier to 5160 it’s failing…

Figured it out was using the wrong device driver on FreePBX, was using CHAN_SIP and should be using PJSIP

Did you change the SIP and PJSIP port bindings from their defaults? And if so, did you restart Asterisk afterwards (fwconsole restart) for the changes to take affect?

Buenos días, lo que deben hacer par solucionar este inconveniente es ir al menú configuraciones y luego configuración sip asterisk, en la pestaña de pjsip, poner el puerto 5160 y en chan sip poner el puerto 5160, esto resuelve el problema de que las extensiones chansip no podía autenticarse.

Buenos días. efectivamente es la solución. He notado que en la versión reciente de FreePBX (Mayo 2018), el chan_sip venía configurado así: 5160 y 5161 y el chan_pjsip con 5060. Al crear extensiones te alerta que no emplearan un puerto estandar que es el 5161. Lo que planteas aquí sí es la solución :grinning:

I really do have identical problems. [2022-08-03 18:34:34] NOTICE[62603]: res_pjsip/pjsip_distributor.c:676 log_failed_request: Request ‘REGISTER’ from ‘sip:[email protected]’ failed for ‘91.22.7.243:56120’ (callid: 79lZFiJyOl) - Failed to authenticate
This happens for all new created pjsip extentions. Only the single old one, which initially created, work perfectly from the same phone. FreePBX is quite new setup (2 week or so) on a virtual cloud server.
It is running with pjsip only. No chan_sip is configured.
I have to say that only the initially created extension has an incomming route.
– Added contact ‘sip:[email protected]:56326;transport=TCP’ to AOR ‘92’ with expiration of 3600 seconds
– Contact 92/sip:[email protected]:56326;transport=TCP is now Reachable. RTT: 73.630 msec
Where can I find any config error, where one extention works, and die other ones won’t?