Resolution: Not an issue
Affects Version/s: 188.8.131.52
Fix Version/s: None
Component/s: Inbound Routes
Asterisk Version:Asterisk 14.7.7
Distro Version:FreePBX 184.108.40.206
Need some help. This should be easy for most of you to figure out. Not even sure if this is the proper place to post this stuff, so if I need to post this somewhere else, please let me know.
I have set up in a lab environment:
-Polycom SoundPoints and VVX's that register to Asterisk/FreePBX on the same private LAN segment.
-LAN Segment is protected by a SonicWall TZ300.
-ITSP is on the Internet side of Firewall.
-PJSIP trunk setup between them whereas the Asterisk/FreePBX registers on the ITSP's Broadworks platform.
-Outbound calls work fine.
-Inbound calls & routing based on specific CID work fine (now removed)
-Inbound calls work only if I use ANY in the DID field of "Inbound Routes"
What I want to do:
I want to be able to route calls based on DID. This is very important. I don't want to set up a SIP trunk for every DID. I want my ITSP to send calls with various DID's down the Trunk, and I want to route those according to DID. It's not working.
I spent a lot of time on this yesterday. I have this narrowed down to 1 of 2 things. Either the SIP INVITE is being sent to me by the ITSP incorrectly, or Asterisk/FreePBX isn't picking up the DID in the SIP INVITE. Need some advice here.
Where does Asterisk/FreePBX pick up DID info when testing for Inbound Routes? Is it the actual Invite or the "To:" field in the invite? This is what the invite looks like (220.127.116.11 is Broadworks on Internet. 18.104.22.168 is WAN IP on Firewall NAT'ed to 192.168.168.200.) :
pjsip show history entry 14
<--- History Entry 14 Received from 22.214.171.124:5060 at 1551583394 --->
Via: SIP/2.0/UDP 126.96.36.199:5060;received=188.8.131.52;branch=z9hG4bKp5gop230fo60321o0660.1
From: "ROHRMAN PETER " <sip:firstname.lastname@example.org;user=phone>;tag=824350064-1551583394661-
CSeq: 550100403 INVITE
Allow: ACK, BYE, CANCEL, INFO, INVITE, OPTIONS, PRACK, REFER, NOTIFY
Accept: application/btbc-session-info, application/media_control+xml, application/sdp, multipart/mixed
o=BroadWorks 1554428664 1 IN IP4 184.108.40.206
c=IN IP4 220.127.116.11
m=audio 17474 RTP/AVP 0 101
a=bsoft: 1 image udptl t38