Custom sip trunk context is unusable


I have a trunk with callcentric. FreePBX creates by default:

include => from-trunk-sip-callcentric-custom
exten => _.,1,Set(GROUP()=OUT_4)
exten => _.,n,Goto(from-trunk,${EXTEN},1)

and I created:

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?


I have the same problem, did you solved it?

Did you get this working ?, I have a simular issue :-

Oh dear - finger trouble ‘Similar’ :slight_smile: