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