Hi All,
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[8450][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 103.93.71.11.sip > raspbx.sip: SIP: INVITE sip:[email protected] SIP/2.0
21:17:05.835919 IP raspbx.sip > 103.93.71.11.sip: SIP: SIP/2.0 100 Trying
21:17:05.847619 IP raspbx.sip > 103.93.71.11.sip: SIP: SIP/2.0 200 OK
21:17:05.872719 IP 103.93.71.11.sip > raspbx.sip: SIP: ACK sip:XXX.my.ip.0:5060 SIP/2.0
21:17:05.872867 IP 103.93.71.11.sip > raspbx.sip: SIP: ACK sip:XXX.my.ip.0:5060 SIP/2.0
21:17:10.571939 IP 103.93.71.11.sip > raspbx.sip: SIP: BYE sip:XXX.my.ip.0:5060 SIP/2.0
21:17:10.573304 IP raspbx.sip > 103.93.71.11.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:
host=sip3.siptalk.com.au
username=10XXXXX
secret=supersecretpassword
type=peer
allow=ulaw&alaw
pedantic=no
insecure=port,invite
fromuser=10XXXXX
qualify=yes
Incoming User Context: 10XXXXX (is this what should be here?)
Incoming User Details:
secret=supersecretpassword
type=peer
context=from-trunk
host=103.93.71.33
Register String: 10XXXXX:[email protected]/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!!!
Best Regards,
Frank D