Hello,
I’m a newbie.
I setup a FreePBX instance in a VM at my office because the physical PBX we have died abruptly after 9 years of very good service. Physical new PBX cost too much, we don’t need all those features, VM administration is getting us high availability on many different running services and so I’d love to go the VM freePBX route also with VoIP. I also like the interface and the community seems pretty dynamic.
Trunks have been configured and both registered correctly.
Extensions have been configured as well. I have a MicroSIP on desktop to test outgoing and incoming calls, and a physical IP phone to test if extensions can reach each other.
Outbound and Inbound route set.
Call between extensions works.
I can call outside and reach my mobile phone, I cannot call to the office.
Log file says:
[2025-04-22 07:27:00] NOTICE[2219]: res_pjsip_session.c:3985 new_invite: XXXXXXXXXX: Call (UDP:yy.yy.yy.yyy:5060) to extension ‘s’ rejected because extension not found in context ‘from-trunk-sip-XXXXXXXXXX’.
Phone says (don’t know if its FreePBX answering or the SIP server):
“Il numero che hai composto è inesistente” and after that “The number you have dialed is unobtainable”.
I saw the github fix for extension.conf, my extension.conf file is set as the github correction.
SSH to CLI verbose mode does not show anything more than that error message.
After lots of tests I made a new extension ‘237’, removed the old 232, removed it also from groups, removed it everywhere.
In SIP advanced settings I tried to setup:
“Match” – blank, SIP Server public IP, VM IP
“Contect user” – blank, SIP account username, the extension.
“From user” – blank, the VoIP account username
“From domain” – blank, SIP server address
“User = Phone” - both “yes” and “no”
To ease things up I deactivated one of the two trunks, deleted its inbound route and testing only with the one left active. I also got rid of the call groups and set the inbound route to directly go to the active extension.
Inbound route is already set with DID “Any”. Also tried “RINGING/SQUILLO” set to “yes”.
I’m calling both the plain number and with country code +39 (I’m in Italy).
I also tried in my firewall to uncheck/check back “SIP ALG”, and also setup a “Virtual server” plus a simple Port forwarding. Not able to test DMZ because I never used, I’ll try it eventually. I also diabled, for short time, fail2ban.
My first hope is to find a comment on here from a kind person that will be compassionate and tell me how fix this.
Next thing I feel to try is to remove the VM and start from scratch but I don’t think I’ll get a different result.
Thank you to everyone who would take the time to read this.
Cheers,
Alessio