[How To] Get Caller ID Override working with DISA

Thanks for the quick replay @lgaetz

So to confirm I understand correctly…
Instead of putting things in [from-internal-custom] I should put them in a custom context and then at the end of the custom context, go to the [from-internal] context.

This is because [from-internal-custom] does not get appended to the dial plan for [from-internal] but instead replaces it.

Is the above restatement correct?

Based on that understanding…
To properly do the DISA Caller ID override, we should instead create a custom context and in the DISA menu, specify that context as the context to use.

Example below. Can you confirm I am understanding correctly?

[extension_custom.conf]

[from-internal-FixDISACallerID]
; DISA Caller ID settings are flipped in interface. Fixing with below override
exten => _.,1,NoOp(CUSTOM: Use Custom CID for DISA Call. This is a fix for broken GUI setting)
exten => _.,n,ExecIf($["${CALLERID(number)}" != ""]?Set(KEEPCID=TRUE):Set(KEEPCID=FALSE))
exten => _.,n,NoOp(KEEPCID VALUE: ${KEEPCID})
exten => _.,n,GoTo(from-internal,${EXTEN},1)

and in the DISA menu set the context to use: from-internal-FixDISACallerID

2 Likes