Just upgraded our small business LAN network (and fixed a double NAT issue which the original Free PBX was setup for) so long story short, had a very (not) fun time trying to get FreePBX trying to talk to the trunk provider again… Anyway - Notwithstanding, I’m almost there!
Just dealing with inbound calls not being handled correctly, getting the old “The number you have dialled is not in service” - So did a bit of research on this forum and attempted to see if “Allow Anonymous Calls” would work, and it did work, however that’s not optimal so turned that back off… But at least now know that Asterisk/the trunk itself is not authenticating the inbound request correctly
So looked at the logs and found something interesting:
[2019-05-14 21:03:24] WARNING[C-00000014]: Ext. s:6 @ from-sip-external: "Rejecting unknown SIP connection from "
… and no IP? So of course it’s not authenticating the incoming request because there’s no IP to authenticate the request from? I think?
For reference, a tcpdump during the call shows the following:
21:17:05.833321 IP 126.96.36.199.sip > raspbx.sip: SIP: INVITE sip:039XXXXXXX@188.8.131.52 SIP/2.0
21:17:05.835919 IP raspbx.sip > 184.108.40.206.sip: SIP: SIP/2.0 100 Trying
21:17:05.847619 IP raspbx.sip > 220.127.116.11.sip: SIP: SIP/2.0 200 OK
21:17:05.872719 IP 18.104.22.168.sip > raspbx.sip: SIP: ACK sip:XXX.my.ip.0:5060 SIP/2.0
21:17:05.872867 IP 22.214.171.124.sip > raspbx.sip: SIP: ACK sip:XXX.my.ip.0:5060 SIP/2.0
21:17:10.571939 IP 126.96.36.199.sip > raspbx.sip: SIP: BYE sip:XXX.my.ip.0:5060 SIP/2.0
21:17:10.573304 IP raspbx.sip > 188.8.131.52.sip: SIP: SIP/2.0 200 OK
And also the below trunk settings, note that the host name resolves to the IP listed in the above tcpdump:
Outgoing Peer Details:
Incoming User Context: 10XXXXX (is this what should be here?)
Incoming User Details:
Register String: 10XXXXX:firstname.lastname@example.org/10XXXXX
*Note: A post on this forum suggested that domain names often have trouble resolving to a single domain, thus the IP as the host in the outgoing settings - Is this true?
I think I’m on the right path here, just figuring out a way to allow Asterisk/FreePBX to authenticate the incoming request from the trunk.
You guys are all absolute geniuses on this site, and appreciate all the help and support you generously give everyone! Much much much appreciated!!!