Unable to register phones

I am completely new to FreePBX and trying to set things up for the first time. I am running FreePBX 15.0.16.75 on a Raspberry Pi 3B. I bought two Cisco SPA504G phones cheap on eBay just to try things out. I cannot get them to register and having looked at other posts on your forum addressing similar issues, can’t get an answer.

Two extensions (21 & 22) are registered on the server using PJSIP and port 5060.

On the phones I have configured the following fields:-
SIP Port - 5060
Proxy - IP address of the FreePBX server
User ID - corresponding extension number on the server
Password - ‘Secret’ field for the extension on the server (and I have double-checked that these match)

Here is a sample of the Asterisk log file output:-

8147	[2024-01-15 11:28:09] NOTICE[12862] res_pjsip/pjsip_distributor.c: Request 'REGISTER' from '"Ext 21" ' failed for '192.168.1.121:5060' (callid: [email protected]) - No matching endpoint found	
8148	[2024-01-15 11:28:09] NOTICE[12862] res_pjsip/pjsip_distributor.c: Request 'REGISTER' from '"Ext 21" ' failed for '192.168.1.121:5060' (callid: [email protected]) - No matching endpoint found	
8149	[2024-01-15 11:28:09] NOTICE[12862] res_pjsip/pjsip_distributor.c: Request 'REGISTER' from '"Ext 21" ' failed for '192.168.1.121:5060' (callid: [email protected]) - Failed to authenticate	
8150	[2024-01-15 11:28:10] NOTICE[12862] res_pjsip/pjsip_distributor.c: Request 'REGISTER' from '"Ext 21" ' failed for '192.168.1.121:5060' (callid: [email protected]) - No matching endpoint found	
8151	[2024-01-15 11:28:10] NOTICE[12862] res_pjsip/pjsip_distributor.c: Request 'REGISTER' from '"Ext 21" ' failed for '192.168.1.121:5060' (callid: [email protected]) - Failed to authenticate	
8152	[2024-01-15 11:37:34] NOTICE[13493] res_pjsip/pjsip_distributor.c: Request 'REGISTER' from '"Ext 22" ' failed for '192.168.1.122:5060' (callid: [email protected]) - No matching endpoint found	
8153	[2024-01-15 11:37:34] NOTICE[13493] res_pjsip/pjsip_distributor.c: Request 'REGISTER' from '"Ext 22" ' failed for '192.168.1.122:5060' (callid: [email protected]) - No matching endpoint found	
8154	[2024-01-15 11:37:34] NOTICE[13493] res_pjsip/pjsip_distributor.c: Request 'REGISTER' from '"Ext 22" ' failed for '192.168.1.122:5060' (callid: [email protected]) - Failed to authenticate	
8155	[2024-01-15 11:37:34] NOTICE[13493] res_pjsip/pjsip_distributor.c: Request 'REGISTER' from '"Ext 22" ' failed for '192.168.1.122:5060' (callid: [email protected]) - No matching endpoint found	
8156	[2024-01-15 11:37:34] NOTICE[13493] res_pjsip/pjsip_distributor.c: Request 'REGISTER' from '"Ext 22" ' failed for '192.168.1.122:5060' (callid: [email protected]) - Failed to authenticate	

Every time the errors are logged, the exact same sequence of messages is output.

Sorry but at this point I’m stuck. Can anyone please help?

Thanks,
Andrew.

Sorry but the log output did not appear as expected. Here is another attempt to display it:-

Strange. At the Asterisk command prompt, type
pjsip show endpoints
pjsip show aors
pjsip show auths
and post the output.

Look at Settings > Asterisk SIP Settings and see what port you are using for PJSIP. If it is not 5060, then that is your problem.

Since you are running an old version of FreePBX, the port may be set to 5061 or 5062 or 5160. If you change ports in the SIP Settings screen, you must restart Asterisk and FreePBX for the changes to take effect.

Or you created chan_sip extensions which are trying to register to the PJSIP port. Either way, if the extensions are chan_sip, they must match the port for chan_sip. If the extensions are chan_pjsip, they must match the port for chan_pjsip.

Just tried it and all commands return ‘No objects found’.

So either the extensions are not set up correctly, or FreePBX was not properly built.

In the GUI, visit Applications → Extensions. Do you see extensions 21 and 22? Does the Type column show pjsip? If these look wrong, try deleting them (if applicable) and adding two new SIP [chan_pjsip] extensions.

After setting up an extension and pressing Submit, you should see an Apply Config button. When you press that, do any errors appear?

At a root shell prompt, try
fwconsole restart

If you are still seeing No objects found for pjsip show endpoints, post how you built FreePBX (what you downloaded, what guide you followed, etc.)

Hi,

Thanks for all your help. I had a feeling that I might be missing something simple and obvious! You mentioned the Apply Config button which was bright red and was staring me in the face! Once I clicked this and allowed the update, the problem was resolved.

I am still very much on a learning curve so when I face the next issue I will probably raise it as a separate topic.

This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.