Hi,
I’m trying to resolve an issue I have with an inbound SIP provider who sets the callerid in an unusual way. I’m planning on ‘fixing’ the callerid in a custom context in extensions_custom.conf and then continue normal processing.
My call flow looks like this by default when a call comes in:
[2022-09-14 11:50:28] VERBOSE[17679][C-000000a4] pbx.c: Executing [[email protected]:1] Set("SIP/sipgate-out-00000168", "GROUP()=OUT_2") in new stack
[2022-09-14 11:50:28] VERBOSE[17679][C-000000a4] pbx.c: Executing [[email protected]:2] Goto("SIP/sipgate-out-00000168", "from-trunk,xxx_myuserid,1") in new stack
[2022-09-14 11:50:28] VERBOSE[17679][C-000000a4] pbx_builtins.c: Goto (from-trunk,xxx_myuserid,1)
So I can see the called context is “from-trunk-sip-sipgate-out” and in that context I see:
[from-trunk-sip-sipgate-out]
include => from-trunk-sip-sipgate-out-custom
exten => _.,1,Set(GROUP()=OUT_2)
exten => _.,n,Goto(from-trunk,${EXTEN},1)
So that means I can use extensions_custom.conf to create a context named “from-trunk-sip-sipgate-out-custom” which I’ve done, and for now added a Noop to check it gets called:
[from-trunk-sip-sipgate-out-custom]
exten => _.,1,NoOp(CUST: from-trunk-sip-sipgate-out-custom by Andy)
But this never appears in the logs, it seems not to switch to this custom context at all, the logs from asterisk are exactly as shown earlier, no additional switch to the custom context. The custom context definitely gets loaded as this is in the logs when a reload/apply is carried out:
[2022-09-14 11:35:41] VERBOSE[15819] pbx.c: Including context 'from-trunk-sip-sipgate-out-custom' in context 'from-trunk-sip-sipgate-out'
[2022-09-14 11:35:41] VERBOSE[15819] pbx.c: Registered extension context 'from-trunk-sip-sipgate-out-custom'; registrar: pbx_config
[2022-09-14 11:35:41] VERBOSE[15819] pbx.c: Added extension '_.' priority 1 to from-trunk-sip-sipgate-out-custom
So why isn’t it getting called? Is it being bypassed because it’s not a more specific match or something?
Please help!
Thanks,
Andy