Here is my debug info from the trace I did. One thing I have noticed the the SBC is inserting Remote-Party-I: and X-FS-Support: headers into the Invite when sending it on to the PBX. Could this be causing the issue?
In the trace below I have replaced the DID’s with *** for the number I’m making the call with and ### for the number I’m calling.
IP: 10.100.1.11 = SBC
IP: 10.100.1.33 = PBX
<— SIP read from UDP:10.100.1.11:5060 —>
INVITE sip:###########@10.100.1.33 SIP/2.0
Via: SIP/2.0/UDP 10.100.1.11;rport;branch=z9hG4bKScXQv5Fa8Ur5a
Max-Forwards: 48
From: “" sip:***********@10.100.1.11;tag=0mtZmD2r4rmyQ
To: sip:###########@10.100.1.33
Call-ID: cb032282-5b42-1235-28b4-00900b3d3f5f
CSeq: 102208349 INVITE
Contact: sip:[email protected]:5060;transport=udp;gw=pbxsvr03
User-Agent: NetBorder Session Controller
Allow: INVITE, ACK, BYE, CANCEL, OPTIONS, MESSAGE, UPDATE, INFO, REGISTER, REFER, NOTIFY, PUBLISH, SUBSCRIBE
Supported: precondition, path, replaces
Allow-Events: talk, hold, presence, dialog, line-seize, call-info, sla, include-session-description, presence.winfo, message-summary, refer
Content-Type: application/sdp
Content-Disposition: session
Content-Length: 285
Recv-Info: x-broadworks-client-session-info
X-FS-Support: update_display
Remote-Party-ID: "” sip:***********@10.100.1.11;party=calling;screen=yes;privacy=off
v=0
o=nsc 1485099655 1485099656 IN IP4 10.100.1.11
s=nsc
c=IN IP4 10.100.1.11
t=0 0
m=audio 10828 RTP/AVP 0 8 101 13
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-16
a=ptime:20
m=audio 10828 RTP/AVP 0 8 101 13
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-16
a=ptime:30
<------------->
— (18 headers 13 lines) —
Sending to 10.100.1.11:5060 (no NAT)
Sending to 10.100.1.11:5060 (no NAT)
Using INVITE request as basis request - cb032282-5b42-1235-28b4-00900b3d3f5f
Found peer ‘from_sbc’ for ‘***********’ from 10.100.1.11:5060
== Using SIP RTP TOS bits 184
== Using SIP RTP CoS mark 5
Found RTP audio format 0
Found RTP audio format 8
Found RTP audio format 101
Found RTP audio format 13
Found audio description format telephone-event for ID 101
[2017-01-22 12:40:27] WARNING[1796][C-0000004c]: chan_sip.c:10304 process_sdp: Declining non-primary audio stream: audio 10828 RTP/AVP 0 8 101 13
Capabilities: us - (ulaw|alaw|gsm|g726), peer - audio=(ulaw|alaw)/video=(nothing)/text=(nothing), combined - (ulaw|alaw)
Non-codec capabilities (dtmf): us - 0x1 (telephone-event|), peer - 0x3 (telephone-event|CN|), combined - 0x1 (telephone-event|)
Peer audio RTP is at port 10.100.1.11:10828
Looking for ########### in from-pstn (domain 10.100.1.33)
sip_route_dump: route/path hop: sip:[email protected]:5060;transport=udp;gw=pbxsvr03
<— Transmitting (no NAT) to 10.100.1.11:5060 —>
SIP/2.0 100 Trying
Via: SIP/2.0/UDP 10.100.1.11;branch=z9hG4bKScXQv5Fa8Ur5a;received=10.100.1.11;rport=5060
From: “***********” sip:***********@10.100.1.11;tag=0mtZmD2r4rmyQ
To: sip:###########@10.100.1.33
Call-ID: cb032282-5b42-1235-28b4-00900b3d3f5f
CSeq: 102208349 INVITE
Server: FPBX-13.0.190.11(13.12.1)
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH, MESSAGE
Supported: replaces, timer
Contact: sip:###########@10.100.1.33:5060
Content-Length: 0
<------------>
– Executing [###########@from-pstn:1] Set(“SIP/from_sbc-0000001d”, “__FROM_DID=###########”) in new stack
– Executing [###########@from-pstn:2] NoOp(“SIP/from_sbc-0000001d”, “Received an unknown call with DID set to ###########”) in new stack
– Executing [###########@from-pstn:3] Goto(“SIP/from_sbc-0000001d”, “s,a2”) in new stack
– Goto (from-pstn,s,2)
– Executing [[email protected]:2] Answer(“SIP/from_sbc-0000001d”, “”) in new stack
Audio is at 10196
Adding codec ulaw to SDP
Adding codec alaw to SDP
Adding non-codec 0x1 (telephone-event) to SDP
<— Reliably Transmitting (no NAT) to 10.100.1.11:5060 —>
SIP/2.0 200 OK
Via: SIP/2.0/UDP 10.100.1.11;branch=z9hG4bKScXQv5Fa8Ur5a;received=10.100.1.11;rport=5060
From: “***********” sip:***********@10.100.1.11;tag=0mtZmD2r4rmyQ
To: sip:###########@10.100.1.33;tag=as2295cf11
Call-ID: cb032282-5b42-1235-28b4-00900b3d3f5f
CSeq: 102208349 INVITE
Server: FPBX-13.0.190.11(13.12.1)
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH, MESSAGE
Supported: replaces, timer
Contact: sip:###########@10.100.1.33:5060
Content-Type: application/sdp
Content-Length: 304
v=0
o=root 2064796726 2064796726 IN IP4 10.100.1.33
s=Asterisk PBX 13.12.1
c=IN IP4 10.100.1.33
t=0 0
m=audio 10196 RTP/AVP 0 8 101
a=rtpmap:0 PCMU/8000
a=rtpmap:8 PCMA/8000
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-16
a=ptime:20
a=maxptime:150
a=sendrecv
m=audio 0 RTP/AVP 0 8 101 13
<------------>
<— SIP read from UDP:10.100.1.11:5060 —>
ACK sip:###########@10.100.1.33:5060 SIP/2.0
Via: SIP/2.0/UDP 10.100.1.11;rport;branch=z9hG4bKtNpgy00D54erp
Max-Forwards: 70
From: “***********” sip:***********@10.100.1.11;tag=0mtZmD2r4rmyQ
To: sip:###########@10.100.1.33;tag=as2295cf11
Call-ID: cb032282-5b42-1235-28b4-00900b3d3f5f
CSeq: 102208349 ACK
Contact: sip:[email protected]:5060;transport=udp;gw=pbxsvr03
Content-Length: 0
<— SIP read from UDP:10.100.1.11:5060 —>
BYE sip:###########@10.100.1.33:5060 SIP/2.0
Via: SIP/2.0/UDP 10.100.1.11;rport;branch=z9hG4bKUyF9ZUHH2D5aj
Max-Forwards: 70
From: “***********” sip:***********@10.100.1.11;tag=0mtZmD2r4rmyQ
To: sip:###########@10.100.1.33;tag=as2295cf11
Call-ID: cb032282-5b42-1235-28b4-00900b3d3f5f
CSeq: 102208350 BYE
Contact: sip:[email protected]:5060;transport=udp;gw=pbxsvr03
Reason: Q.850;cause=16;text="NORMAL_CLEARING"
Content-Length: 0
<------------->
— (10 headers 0 lines) —
Sending to 10.100.1.11:5060 (no NAT)
Scheduling destruction of SIP dialog ‘cb032282-5b42-1235-28b4-00900b3d3f5f’ in 32000 ms (Method: BYE)
<— Transmitting (no NAT) to 10.100.1.11:5060 —>
SIP/2.0 200 OK
Via: SIP/2.0/UDP 10.100.1.11;branch=z9hG4bKUyF9ZUHH2D5aj;received=10.100.1.11;rport=5060
From: “***********” sip:***********@10.100.1.11;tag=0mtZmD2r4rmyQ
To: sip:###########@10.100.1.33;tag=as2295cf11
Call-ID: cb032282-5b42-1235-28b4-00900b3d3f5f
CSeq: 102208350 BYE
Server: FPBX-13.0.190.11(13.12.1)
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH, MESSAGE
Supported: replaces, timer
Content-Length: 0
<------------>
– Executing [[email protected]:1] Macro(“SIP/from_sbc-0000001d”, “hangupcall,”) in new stack
– Executing [[email protected]:1] GotoIf(“SIP/from_sbc-0000001d”, “1?theend”) in new stack
– Goto (macro-hangupcall,s,3)
– Executing [[email protected]:3] ExecIf(“SIP/from_sbc-0000001d”, “0?Set(CDR(recordingfile)=)”) in new stack
– Executing [[email protected]:4] Hangup(“SIP/from_sbc-0000001d”, “”) in new stack
== Spawn extension (macro-hangupcall, s, 4) exited non-zero on ‘SIP/from_sbc-0000001d’ in macro ‘hangupcall’
== Spawn extension (from-pstn, h, 1) exited non-zero on ‘SIP/from_sbc-0000001d’