Hello,
I have a trunk with callcentric. FreePBX creates by default:
[from-trunk-sip-callcentric]
include => from-trunk-sip-callcentric-custom
exten => _.,1,Set(GROUP()=OUT_4)
exten => _.,n,Goto(from-trunk,${EXTEN},1)
and I created:
[from-trunk-sip-callcentric-custom]
exten => _.,1,Set(Var_TO_DID=${CUT(CUT(SIP_HEADER(TO),@,1),:,2)})
exten => _.,n,NoOp(Received DID ${Var_TO_DID} EXTEN was ${EXTEN})
exten => _.,n,Set(EXTEN=${Var_TO_DID}
exten => _.,n,Set(CALLERID(num)=${IF($[(${LEN(${CALLERID(num)})} != 11) | (${CALLERID(num):0:1} != 1) ]?${CALLERID(num)}:${CALLERID(num):1})})
From everything I have read so far, the custom context will never be executed since the ‘from-trunk-sip-callcentric’ context uses _. as the extension pattern. I have tried using ‘s’ as the extension in my -custom context, but I get the same behavior–it is never executed.
I must be doing something wrong, because what is the point of including the -custom context if it will never be used?
Thanks.