I’m a total noob on FreePBX and just got it running as a VM on Proxmox on my local network.
I first created two extentions via Application > Extensions > Add Extensions > Add new SIP Extension
On Linephone on my computer and smartphone everything worked well using the assistant and I was able to do a call between the two devices.
Created a third account to use with my Doorphone, which is an Akuvox R20A.
This is what I put in there and resulted in " Registration Failed"
You also need to issue the CLI command “pjsp set logger on”.
Is 192.168.178.81 the router? If it is, you need to disable SIP ALG in the router.
If it is the doorphone, either its registration refresh logic is broken, causing it to refresh with changing port numbers, or Asterisk’s reply is getting lost, and it is periodically retrying the registration. However, this is unlikely if you have authentication enabled, as replies have to get through for the authentication stage to work.
Note that your log is showing the registrations succeeding on Asterisk, but with the registered address changing on each refresh.
My router (Fritzbox) has a little SIP server included that I’am using with the doorphone with no problems on Port 5160. That account is configured as Account 1 in the doorphone. Account 2 is freePBX.
Last night I deleted some of the extentions and created a new one “110” to try some more. Just fired up tail -f /var/log/asterisk/full again after booting the VM and getting this log now
[2022-09-08 09:56:22] VERBOSE[2288] res_pjsip/pjsip_options.c: Contact 105/sip:[email protected]:51048 has been deleted
[2022-09-08 09:56:25] NOTICE[2287] res_pjsip/pjsip_distributor.c: Request 'REGISTER' from '"110" <sip:[email protected]>' failed for '192.168.178.45:5063' (callid: [email protected]) - Failed to authenticate
[2022-09-08 09:56:25] NOTICE[2287] res_pjsip/pjsip_distributor.c: Request 'REGISTER' from '"110" <sip:[email protected]>' failed for '192.168.178.45:5063' (callid: [email protected]) - Failed to authenticate
[2022-09-08 09:56:25] NOTICE[2287] res_pjsip/pjsip_distributor.c: Request 'REGISTER' from '"110" <sip:[email protected]>' failed for '192.168.178.45:5063' (callid: [email protected]) - Failed to authenticate
[2022-09-08 09:56:31] NOTICE[2287] res_pjsip/pjsip_distributor.c: Request 'REGISTER' from '"110" <sip:[email protected]>' failed for '192.168.178.45:5063' (callid: [email protected]) - Failed to authenticate
[2022-09-08 09:56:31] NOTICE[2287] res_pjsip/pjsip_distributor.c: Request 'REGISTER' from '"110" <sip:[email protected]>' failed for '192.168.178.45:5063' (callid: [email protected]) - Failed to authenticate
[2022-09-08 09:56:31] NOTICE[2287] res_pjsip/pjsip_distributor.c: Request 'REGISTER' from '"110" <sip:[email protected]>' failed for '192.168.178.45:5063' (callid: [email protected]) - Failed to authenticate
[2022-09-08 09:56:56] VERBOSE[2287] res_pjsip_registrar.c: Added contact 'sip:[email protected]:61020' to AOR '105' with expiration of 3600 seconds
[2022-09-08 09:56:57] VERBOSE[2287] res_pjsip/pjsip_configuration.c: Endpoint 105 is now Reachable
[2022-09-08 09:56:57] VERBOSE[2287] res_pjsip/pjsip_options.c: Contact 105/sip:[email protected]:61020 is now Reachable. RTT: 763.311 msec
So now the doorphones “110” is in the logs. 192.168.178.45 is the doorphones IP. My router is 192.168.178.1 by the way
Don’t ask my why and how but I was about to change the password in the doorphone, had already changed in in freePBX but not applied and then noticed that the doorphone was registered.
So now my doorphone is indeed registered. However, when I try to call the doorphone with *110 it’s not working and the log says
NOTICE[2300] res_pjsip_session.c: 105: Call (UDP:192.168.178.81:64762) to extension '*110' rejected because extension not found in context 'from-internal'.
Apparently some missconfiguration in an asterisk config file. How and what would I edit in freePBX?