DISA Not Setting CID

Trying to setup DISA for client to be able to make calls from mobile phone appear with office CID. I believe I have configured properly, but the CID is always the Outbound Route CID. If I leave the Outbound Route CID blank, it uses the Trunk CID, then though both are set to NOT override extension CID.

Here is my DISA setup:

image

Here’s my Outbound Route:
image

And this is what happens: (7100 is the tech prefix)

-- Executing [7274106404@disa-dial:1] NoOp("SIP/ada-in-000000b0", "called 7274106404 in from-internal by ID: 1") in new stack
-- Executing [7274106404@disa-dial:2] Dial("SIP/ada-in-000000b0", "Local/7274106404@from-internal,300,THg") in new stack
-- Called Local/7274106404@from-internal
-- Executing [7274106404@from-internal:1] Macro("Local/7274106404@from-internal-00000053;2", "user-callerid,LIMIT") in new stack
-- Executing [s@macro-user-callerid:1] Set("Local/7274106404@from-internal-00000053;2", "TOUCH_MONITOR=1564101472.359") in new stack
-- Executing [s@macro-user-callerid:2] Set("Local/7274106404@from-internal-00000053;2", "AMPUSER=7276696000") in new stack
-- Executing [s@macro-user-callerid:3] GotoIf("Local/7274106404@from-internal-00000053;2", "0?report") in new stack
-- Executing [s@macro-user-callerid:4] ExecIf("Local/7274106404@from-internal-00000053;2", "0?Set(REALCALLERIDNUM=7276696000)") in new stack
-- Executing [s@macro-user-callerid:5] Set("Local/7274106404@from-internal-00000053;2", "AMPUSER=") in new stack
-- Executing [s@macro-user-callerid:6] GotoIf("Local/7274106404@from-internal-00000053;2", "0?limit") in new stack
-- Executing [s@macro-user-callerid:7] Set("Local/7274106404@from-internal-00000053;2", "AMPUSERCIDNAME=") in new stack
-- Executing [s@macro-user-callerid:8] ExecIf("Local/7274106404@from-internal-00000053;2", "0?Set(__CIDMASQUERADING=TRUE)") in new stack
-- Executing [s@macro-user-callerid:9] GotoIf("Local/7274106404@from-internal-00000053;2", "1?report") in new stack
-- Goto (macro-user-callerid,s,17)
-- Executing [s@macro-user-callerid:17] NoOp("Local/7274106404@from-internal-00000053;2", "Macro Depth is 1") in new stack
-- Executing [s@macro-user-callerid:18] GotoIf("Local/7274106404@from-internal-00000053;2", "1?report2:macroerror") in new stack
-- Goto (macro-user-callerid,s,19)
-- Executing [s@macro-user-callerid:19] GotoIf("Local/7274106404@from-internal-00000053;2", "1?continue") in new stack
-- Goto (macro-user-callerid,s,38)
-- Executing [s@macro-user-callerid:38] Set("Local/7274106404@from-internal-00000053;2", "CALLERID(number)=7276696000") in new stack
-- Executing [s@macro-user-callerid:39] Set("Local/7274106404@from-internal-00000053;2", "CALLERID(name)=HEALINGTCH") in new stack
-- Executing [s@macro-user-callerid:40] GotoIf("Local/7274106404@from-internal-00000053;2", "0?cnum") in new stack
-- Executing [s@macro-user-callerid:41] Set("Local/7274106404@from-internal-00000053;2", "CDR(cnam)=HEALINGTCH") in new stack
-- Executing [s@macro-user-callerid:42] Set("Local/7274106404@from-internal-00000053;2", "CDR(cnum)=7276696000") in new stack
-- Executing [s@macro-user-callerid:43] Set("Local/7274106404@from-internal-00000053;2", "CHANNEL(language)=en") in new stack
-- Executing [7274106404@from-internal:2] Set("Local/7274106404@from-internal-00000053;2", "ROUTEUSER=") in new stack
-- Executing [7274106404@from-internal:3] Set("Local/7274106404@from-internal-00000053;2", "ROUTEUSER=") in new stack
-- Executing [7274106404@from-internal:4] GotoIf("Local/7274106404@from-internal-00000053;2", "1?notblind") in new stack
-- Goto (from-internal,7274106404,7)
-- Executing [7274106404@from-internal:7] GotoIf("Local/7274106404@from-internal-00000053;2", "0?,7274106404,2:outbound-allroutes,7274106404,2") in new stack
-- Goto (outbound-allroutes,7274106404,2)
-- Executing [7274106404@outbound-allroutes:2] Gosub("Local/7274106404@from-internal-00000053;2", "sub-record-check,s,1(out,7274106404,dontcare)") in new stack
-- Executing [s@sub-record-check:1] GotoIf("Local/7274106404@from-internal-00000053;2", "0?initialized") in new stack
-- Executing [s@sub-record-check:2] Set("Local/7274106404@from-internal-00000053;2", "__REC_STATUS=INITIALIZED") in new stack
-- Executing [s@sub-record-check:3] Set("Local/7274106404@from-internal-00000053;2", "NOW=1564101472") in new stack
-- Executing [s@sub-record-check:4] Set("Local/7274106404@from-internal-00000053;2", "__DAY=25") in new stack
-- Executing [s@sub-record-check:5] Set("Local/7274106404@from-internal-00000053;2", "__MONTH=07") in new stack
-- Executing [s@sub-record-check:6] Set("Local/7274106404@from-internal-00000053;2", "__YEAR=2019") in new stack
-- Executing [s@sub-record-check:7] Set("Local/7274106404@from-internal-00000053;2", "__TIMESTR=20190725-203752") in new stack
-- Executing [s@sub-record-check:8] Set("Local/7274106404@from-internal-00000053;2", "__FROMEXTEN=7276696000") in new stack
-- Executing [s@sub-record-check:9] Set("Local/7274106404@from-internal-00000053;2", "__MON_FMT=wav") in new stack
-- Executing [s@sub-record-check:10] NoOp("Local/7274106404@from-internal-00000053;2", "Recordings initialized") in new stack
-- Executing [s@sub-record-check:11] ExecIf("Local/7274106404@from-internal-00000053;2", "0?Set(ARG3=dontcare)") in new stack
-- Executing [s@sub-record-check:12] Set("Local/7274106404@from-internal-00000053;2", "REC_POLICY_MODE_SAVE=") in new stack
-- Executing [s@sub-record-check:13] ExecIf("Local/7274106404@from-internal-00000053;2", "0?Set(REC_STATUS=NO)") in new stack
-- Executing [s@sub-record-check:14] GotoIf("Local/7274106404@from-internal-00000053;2", "3?checkaction") in new stack
-- Goto (sub-record-check,s,17)
-- Executing [s@sub-record-check:17] GotoIf("Local/7274106404@from-internal-00000053;2", "1?sub-record-check,out,1") in new stack
-- Goto (sub-record-check,out,1)
-- Executing [out@sub-record-check:1] NoOp("Local/7274106404@from-internal-00000053;2", "Outbound Recording Check from 7276696000 to 7274106404") in new stack
-- Executing [out@sub-record-check:2] Set("Local/7274106404@from-internal-00000053;2", "RECMODE=") in new stack
-- Executing [out@sub-record-check:3] ExecIf("Local/7274106404@from-internal-00000053;2", "1?Goto(routewins)") in new stack
-- Goto (sub-record-check,out,7)
-- Executing [out@sub-record-check:7] Gosub("Local/7274106404@from-internal-00000053;2", "recordcheck,1(dontcare,out,7274106404)") in new stack
-- Executing [recordcheck@sub-record-check:1] NoOp("Local/7274106404@from-internal-00000053;2", "Starting recording check against dontcare") in new stack
-- Executing [recordcheck@sub-record-check:2] Goto("Local/7274106404@from-internal-00000053;2", "dontcare") in new stack
-- Goto (sub-record-check,recordcheck,3)
-- Executing [recordcheck@sub-record-check:3] Return("Local/7274106404@from-internal-00000053;2", "") in new stack
-- Executing [out@sub-record-check:8] Return("Local/7274106404@from-internal-00000053;2", "") in new stack
-- Executing [7274106404@outbound-allroutes:3] ExecIf("Local/7274106404@from-internal-00000053;2", "0 ?Set(CDR(accountcode)=)") in new stack
-- Executing [7274106404@outbound-allroutes:4] Set("Local/7274106404@from-internal-00000053;2", "MOHCLASS=default") in new stack
-- Executing [7274106404@outbound-allroutes:5] ExecIf("Local/7274106404@from-internal-00000053;2", "1?Set(TRUNKCIDOVERRIDE=7277248006)") in new stack
-- Executing [7274106404@outbound-allroutes:6] Set("Local/7274106404@from-internal-00000053;2", "_NODEST=") in new stack
-- Executing [7274106404@outbound-allroutes:7] Macro("Local/7274106404@from-internal-00000053;2", "dialout-trunk,2,71007274106404,,off") in new stack
-- Executing [s@macro-dialout-trunk:1] Set("Local/7274106404@from-internal-00000053;2", "DIAL_TRUNK=2") in new stack
-- Executing [s@macro-dialout-trunk:2] ExecIf("Local/7274106404@from-internal-00000053;2", "1?Set(DIAL_OPTIONS=trWwH)") in new stack
-- Executing [s@macro-dialout-trunk:3] GosubIf("Local/7274106404@from-internal-00000053;2", "0?sub-pincheck,s,1()") in new stack
-- Executing [s@macro-dialout-trunk:4] ExecIf("Local/7274106404@from-internal-00000053;2", "0?Set(CALLERID(num)=)") in new stack
-- Executing [s@macro-dialout-trunk:5] GotoIf("Local/7274106404@from-internal-00000053;2", "0?disabletrunk,1") in new stack
-- Executing [s@macro-dialout-trunk:6] Set("Local/7274106404@from-internal-00000053;2", "DIAL_NUMBER=71007274106404") in new stack
-- Executing [s@macro-dialout-trunk:7] Set("Local/7274106404@from-internal-00000053;2", "DIAL_TRUNK_OPTIONS=trWwH") in new stack
-- Executing [s@macro-dialout-trunk:8] Set("Local/7274106404@from-internal-00000053;2", "OUTBOUND_GROUP=OUT_2") in new stack
-- Executing [s@macro-dialout-trunk:9] Set("Local/7274106404@from-internal-00000053;2", "DIAL_TRUNK_OPTIONS=T") in new stack
-- Executing [s@macro-dialout-trunk:10] GotoIf("Local/7274106404@from-internal-00000053;2", "1?nomax") in new stack
-- Goto (macro-dialout-trunk,s,12)
-- Executing [s@macro-dialout-trunk:12] GotoIf("Local/7274106404@from-internal-00000053;2", "0?skipoutcid") in new stack
-- Executing [s@macro-dialout-trunk:13] Macro("Local/7274106404@from-internal-00000053;2", "outbound-callerid,2") in new stack
-- Executing [s@macro-outbound-callerid:1] NoOp("Local/7274106404@from-internal-00000053;2", "7276696000") in new stack
-- Executing [s@macro-outbound-callerid:2] NoOp("Local/7274106404@from-internal-00000053;2", "FALSE") in new stack
-- Executing [s@macro-outbound-callerid:3] NoOp("Local/7274106404@from-internal-00000053;2", "off") in new stack
-- Executing [s@macro-outbound-callerid:4] ExecIf("Local/7274106404@from-internal-00000053;2", "1?Set(CALLERPRES(name-pres)=allowed_not_screened)") in new stack
-- Executing [s@macro-outbound-callerid:5] ExecIf("Local/7274106404@from-internal-00000053;2", "1?Set(CALLERPRES(num-pres)=allowed_not_screened)") in new stack
-- Executing [s@macro-outbound-callerid:6] ExecIf("Local/7274106404@from-internal-00000053;2", "0?Set(REALCALLERIDNUM=7276696000)") in new stack
-- Executing [s@macro-outbound-callerid:7] ExecIf("Local/7274106404@from-internal-00000053;2", "0?Set(AMPUSER=7276696000)") in new stack
-- Executing [s@macro-outbound-callerid:8] GotoIf("Local/7274106404@from-internal-00000053;2", "1?normcid") in new stack
-- Goto (macro-outbound-callerid,s,12)
-- Executing [s@macro-outbound-callerid:12] Set("Local/7274106404@from-internal-00000053;2", "USEROUTCID=") in new stack
-- Executing [s@macro-outbound-callerid:13] Set("Local/7274106404@from-internal-00000053;2", "EMERGENCYCID=") in new stack
-- Executing [s@macro-outbound-callerid:14] Set("Local/7274106404@from-internal-00000053;2", "TRUNKOUTCID=7278001067") in new stack
-- Executing [s@macro-outbound-callerid:15] GotoIf("Local/7274106404@from-internal-00000053;2", "1?trunkcid") in new stack
-- Goto (macro-outbound-callerid,s,21)
-- Executing [s@macro-outbound-callerid:21] ExecIf("Local/7274106404@from-internal-00000053;2", "1?Set(CALLERID(all)=7278001067)") in new stack
-- Executing [s@macro-outbound-callerid:22] ExecIf("Local/7274106404@from-internal-00000053;2", "0?Set(CALLERID(all)=)") in new stack
-- Executing [s@macro-outbound-callerid:23] ExecIf("Local/7274106404@from-internal-00000053;2", "1?Set(CALLERID(all)=7277248006)") in new stack
-- Executing [s@macro-outbound-callerid:24] ExecIf("Local/7274106404@from-internal-00000053;2", "0?Set(CALLERPRES(name-pres)=prohib_passed_screen)") in new stack
-- Executing [s@macro-outbound-callerid:25] ExecIf("Local/7274106404@from-internal-00000053;2", "0?Set(CALLERPRES(num-pres)=prohib_passed_screen)") in new stack
-- Executing [s@macro-outbound-callerid:26] Set("Local/7274106404@from-internal-00000053;2", "CDR(outbound_cnum)=7277248006") in new stack
-- Executing [s@macro-outbound-callerid:27] Set("Local/7274106404@from-internal-00000053;2", "CDR(outbound_cnam)=") in new stack
-- Executing [s@macro-dialout-trunk:14] GosubIf("Local/7274106404@from-internal-00000053;2", "0?sub-flp-2,s,1()") in new stack
-- Executing [s@macro-dialout-trunk:15] Set("Local/7274106404@from-internal-00000053;2", "OUTNUM=71007274106404") in new stack
-- Executing [s@macro-dialout-trunk:16] Set("Local/7274106404@from-internal-00000053;2", "custom=SIP/TelnyxOutbound") in new stack
-- Executing [s@macro-dialout-trunk:17] ExecIf("Local/7274106404@from-internal-00000053;2", "0?Set(DIAL_TRUNK_OPTIONS=M(setmusic^default)T)") in new stack
-- Executing [s@macro-dialout-trunk:18] ExecIf("Local/7274106404@from-internal-00000053;2", "0?Set(DIAL_TRUNK_OPTIONS=TM(confirm))") in new stack
-- Executing [s@macro-dialout-trunk:19] Macro("Local/7274106404@from-internal-00000053;2", "dialout-trunk-predial-hook,") in new stack
-- Executing [s@macro-dialout-trunk-predial-hook:1] MacroExit("Local/7274106404@from-internal-00000053;2", "") in new stack
-- Executing [s@macro-dialout-trunk:20] GotoIf("Local/7274106404@from-internal-00000053;2", "0?bypass,1") in new stack
-- Executing [s@macro-dialout-trunk:21] ExecIf("Local/7274106404@from-internal-00000053;2", "0?Set(CONNECTEDLINE(num,i)=71007274106404)") in new stack
-- Executing [s@macro-dialout-trunk:22] ExecIf("Local/7274106404@from-internal-00000053;2", "0?Set(CONNECTEDLINE(name,i)=CID:7277248006)") in new stack
-- Executing [s@macro-dialout-trunk:23] ExecIf("Local/7274106404@from-internal-00000053;2", "0?Set(CONNECTEDLINE(name,i)=CID:(Hidden)7277248006)") in new stack
-- Executing [s@macro-dialout-trunk:24] GotoIf("Local/7274106404@from-internal-00000053;2", "0?customtrunk") in new stack
-- Executing [s@macro-dialout-trunk:25] Dial("Local/7274106404@from-internal-00000053;2", "SIP/TelnyxOutbound/71007274106404,300,Tb(func-apply-sipheaders^s^1,(2))") in new stack

At macro-user-callerid:23 it sets the CID to the Outbound route CID no matter what I do with Caller ID Override in DISA setup. If I delete the Outbound Route CID, it uses Trunk CID.

I have been messing with this 4 hours now. Found noting applicable. The setting Caller ID Override doesn’t exist in the DISA wiki.

I could try to “brute force” it with a custom context (I think), but that would be an maintenance pain with more DISA configs, and this should just work. :slight_smile: Does any have a clue what I’m missing here?

Thanks!

Seems like a bug [How To] Get Caller ID Override working with DISA

Bug reports: issues.freepbx.org

1 Like

Yes, it is definitely a bug - great workaround by @jgiebler in [How To] Get Caller ID Override working with DISA, the post @PitzKey referenced above. Tested and working on 14.0.13.4 and 13.0.197.

@jerryriggin Thank you sir! I’m glad I posted. I really thought I might be the only person struggling. I guess not :slight_smile:

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.