@sknight06 wrote:
So I've scoured the Internet looking for a solution to this, and I know there are many posts on this site relating to outbound CID issues, but I haven't found one which addresses this one...
I've got two buildings, so we need to send outbound CID appropriate to each extension. I have the outbound CID set appropriately on every extension. The trunk also has a CID set, but the outbound route does not. The trunk is not set to override the extension's CID. Nevertheless, the trunk's CID is always used; never the extension's.
I have confirmed with a packet trace that it is not our VoIP provider setting the CID. The INVITE going out from our system has something like
From: <sip:[WRONG CID]@[Our IP]>
I have also confirmed that the correct outbound CID is set in the astdb. So for example,
/AMPUSER/9992/outboundcid : "Name" <Number>
The call trace shows the following (I added [number hidden] and [IP hidden] in some places). It's strange that USEROUTCID is blank, even though the outbound CID is populated in the astdb:
== Using SIP RTP TOS bits 184 == Using SIP RTP CoS mark 5 -- Executing [95390115@from-internal:1] Set("SIP/9992-00001f33", "SIP_CODEC_INBOUND=ulaw") in new stack -- Executing [95390115@from-internal:2] Set("SIP/9992-00001f33", "SIP_CODEC_OUTBOUND=ulaw") in new stack -- Executing [95390115@from-internal:3] ExecIf("SIP/9992-00001f33", "0 ?Set(CDR(accountcode)=)") in new stack -- Executing [95390115@from-internal:4] Set("SIP/9992-00001f33", "MOHCLASS=default") in new stack -- Executing [95390115@from-internal:5] Set("SIP/9992-00001f33", "_NODEST=") in new stack -- Executing [95390115@from-internal:6] Macro("SIP/9992-00001f33", "dialout-trunk,2,[number hidden],,off") in new stack -- Executing [s@macro-dialout-trunk:1] Set("SIP/9992-00001f33", "DIAL_TRUNK=2") in new stack -- Executing [s@macro-dialout-trunk:2] GosubIf("SIP/9992-00001f33", "0?sub-pincheck,s,1()") in new stack -- Executing [s@macro-dialout-trunk:3] GotoIf("SIP/9992-00001f33", "0?disabletrunk,1") in new stack -- Executing [s@macro-dialout-trunk:4] Set("SIP/9992-00001f33", "DIAL_NUMBER=[number hidden]") in new stack -- Executing [s@macro-dialout-trunk:5] Set("SIP/9992-00001f33", "DIAL_TRUNK_OPTIONS=Ttr") in new stack -- Executing [s@macro-dialout-trunk:6] Set("SIP/9992-00001f33", "OUTBOUND_GROUP=OUT_2") in new stack -- Executing [s@macro-dialout-trunk:7] GotoIf("SIP/9992-00001f33", "1?nomax") in new stack -- Goto (macro-dialout-trunk,s,9) -- Executing [s@macro-dialout-trunk:9] GotoIf("SIP/9992-00001f33", "0?skipoutcid") in new stack -- Executing [s@macro-dialout-trunk:10] Set("SIP/9992-00001f33", "DIAL_TRUNK_OPTIONS=T") in new stack -- Executing [s@macro-dialout-trunk:11] Macro("SIP/9992-00001f33", "outbound-callerid,2") in new stack -- Executing [s@macro-outbound-callerid:1] ExecIf("SIP/9992-00001f33", "0?Set(CALLERPRES(name-pres)=)") in new stack -- Executing [s@macro-outbound-callerid:2] ExecIf("SIP/9992-00001f33", "0?Set(CALLERPRES(num-pres)=)") in new stack -- Executing [s@macro-outbound-callerid:3] ExecIf("SIP/9992-00001f33", "1?Set(REALCALLERIDNUM=9992)") in new stack -- Executing [s@macro-outbound-callerid:4] GotoIf("SIP/9992-00001f33", "1?normcid") in new stack -- Goto (macro-outbound-callerid,s,7) -- Executing [s@macro-outbound-callerid:7] Set("SIP/9992-00001f33", "USEROUTCID=") in new stack -- Executing [s@macro-outbound-callerid:8] Set("SIP/9992-00001f33", "EMERGENCYCID=") in new stack -- Executing [s@macro-outbound-callerid:9] Set("SIP/9992-00001f33", "TRUNKOUTCID=3085357100") in new stack -- Executing [s@macro-outbound-callerid:10] GotoIf("SIP/9992-00001f33", "1?trunkcid") in new stack -- Goto (macro-outbound-callerid,s,15) -- Executing [s@macro-outbound-callerid:15] ExecIf("SIP/9992-00001f33", "1?Set(CALLERID(all)=[number hidden])") in new stack -- Executing [s@macro-outbound-callerid:16] ExecIf("SIP/9992-00001f33", "0?Set(CALLERID(all)=)") in new stack -- Executing [s@macro-outbound-callerid:17] ExecIf("SIP/9992-00001f33", "0?Set(CALLERID(all)=)") in new stack -- Executing [s@macro-outbound-callerid:18] ExecIf("SIP/9992-00001f33", "0?Set(CALLERPRES(name-pres)=prohib_passed_screen)") in new stack -- Executing [s@macro-outbound-callerid:19] ExecIf("SIP/9992-00001f33", "0?Set(CALLERPRES(num-pres)=prohib_passed_screen)") in new stack -- Executing [s@macro-outbound-callerid:20] Set("SIP/9992-00001f33", "CDR(outbound_cnum)=[number hidden]") in new stack -- Executing [s@macro-outbound-callerid:21] Set("SIP/9992-00001f33", "CDR(outbound_cnam)=") in new stack [2017-03-20 09:56:56] WARNING[7012]: func_cdr.c:377 cdr_write_callback: CDR requires a value (CDR(variable)=value) -- Executing [s@macro-dialout-trunk:12] GosubIf("SIP/9992-00001f33", "0?sub-flp-2,s,1()") in new stack -- Executing [s@macro-dialout-trunk:13] Set("SIP/9992-00001f33", "OUTNUM=[number hidden]") in new stack -- Executing [s@macro-dialout-trunk:14] Set("SIP/9992-00001f33", "custom=PJSIP") in new stack -- Executing [s@macro-dialout-trunk:15] ExecIf("SIP/9992-00001f33", "0?Set(DIAL_TRUNK_OPTIONS=M(setmusic^default)T)") in new stack -- Executing [s@macro-dialout-trunk:16] ExecIf("SIP/9992-00001f33", "0?Set(DIAL_TRUNK_OPTIONS=TM(confirm))") in new stack -- Executing [s@macro-dialout-trunk:17] Macro("SIP/9992-00001f33", "dialout-trunk-predial-hook,") in new stack -- Executing [s@macro-dialout-trunk-predial-hook:1] MacroExit("SIP/9992-00001f33", "") in new stack -- Executing [s@macro-dialout-trunk:18] GotoIf("SIP/9992-00001f33", "0?bypass,1") in new stack -- Executing [s@macro-dialout-trunk:19] ExecIf("SIP/9992-00001f33", "0?Set(CONNECTEDLINE(num,i)=[number hidden])") in new stack -- Executing [s@macro-dialout-trunk:20] ExecIf("SIP/9992-00001f33", "0?Set(CONNECTEDLINE(name,i)=CID:[number hidden])") in new stack -- Executing [s@macro-dialout-trunk:21] ExecIf("SIP/9992-00001f33", "0?Set(CONNECTEDLINE(name,i)=CID:(Hidden)[number hidden])") in new stack -- Executing [s@macro-dialout-trunk:22] GotoIf("SIP/9992-00001f33", "0?customtrunk") in new stack -- Executing [s@macro-dialout-trunk:23] Dial("SIP/9992-00001f33", "PJSIP/[number hidden]@ALLO_PJSIP,300,T") in new stack -- Called PJSIP/3085390115@ALLO_PJSIP -- PJSIP/ALLO_PJSIP-00000e85 is making progress passing it to SIP/9992-00001f33 > Set codec to 'ulaw' for this call because of ${SIP_CODEC*} variable > 0x7f7848b6e9a0 -- Probation passed - setting RTP source address to [IP hidden]:7078 > 0x7f7860452e00 -- Probation passed - setting RTP source address to [IP hidden]:23470 == Spawn extension (macro-dialout-trunk, s, 23) exited non-zero on 'SIP/9992-00001f33' in macro 'dialout-trunk' == Spawn extension (from-internal, [number hidden], 6) exited non-zero on 'SIP/9992-00001f33' -- Executing [h@from-internal:1] Macro("SIP/9992-00001f33", "hangupcall") in new stack -- Executing [s@macro-hangupcall:1] GotoIf("SIP/9992-00001f33", "1?theend") in new stack -- Goto (macro-hangupcall,s,3) -- Executing [s@macro-hangupcall:3] ExecIf("SIP/9992-00001f33", "0?Set(CDR(recordingfile)=)") in new stack -- Executing [s@macro-hangupcall:4] Hangup("SIP/9992-00001f33", "") in new stack == Spawn extension (macro-hangupcall, s, 4) exited non-zero on 'SIP/9992-00001f33' in macro 'hangupcall' == Spawn extension (from-internal, h, 1) exited non-zero on 'SIP/9992-00001f33'
Can anyone help me with this? Thanks in advance!!
Posts: 7
Participants: 3