We have a context that evaluates the caller ID, changes it and then needs to continue with other contexts which are included.
When I use a single priority for setting the caller ID it works, but when it’s across multiple priorities, it then doesn’t continue with the dial plan.
Working config:
exten => _X.,1,ExecIf($["${CALLERID(num)}" = “310”]?Set(CALLERID(num)=789):Set(CALLERID(num)=456))
Failing config:
exten => _X.,1,NoOp(Rewrite CallerID)
same => n,Verbose(Rewriting CALLERID for ${CALLERID(num)})
same => n,ExecIf($["${CALLERID(num)}" = “310”]?Set(CALLERID(num)=789):Set(CALLERID(num)=456))
This is the complete extension configuration:
[from-client]
exten => _X.,1,ExecIf($["${CALLERID(num)}" = “310”]?Set(CALLERID(num)=789):Set(CALLERID(num)=456))
include => ext-other
[ext-other]
exten => _123,1,Macro(dial-provider,${EXTEN})
This is what shows up in the log:
– Executing [123@from-client:1] ExecIf(“SIP/techops-linsrv3-00000bfe”, “0?Set(CALLERID(num)=789):Set(CALLERID(num)=456)”) in new stack
– Auto fallthrough, channel ‘SIP/client-00000bfe’ status is ‘UNKNOWN’
I noticed similar behaviour in other sections, does anyone have any clues?