Extension With Callerid Not Found In Context

Home » Asterisk Users » Extension With Callerid Not Found In Context
Asterisk Users 2 Comments

I have pjsip endpoint with callerid= context=localpeers which looks follow:

[localpeers]
exten => _.@_./sergio,1,Dial(Local/${EXTEN}@somecontext)
exten => _.@_.,1,NoOp()

And this works fine:

== Setting global variable ‘SIPDOMAIN’ to ‘DOMAIN’
— Executing [EXTEN@localpeers:1]
Dial(“PJSIP/pjsip_endpoint-0000000a”, “Local/EXTEN@somecontext”) in new stack

But this:

[localpeers]
exten => _.@_./sergio,1,Dial(Local/${EXTEN}@somecontext)

fails:

res_pjsip_session.c:2993 new_invite: Call from ‘pjsip_endpoint’
(TLS:IP:PORT) to extension ‘EXTEN’ rejected because extension not found in context ‘localpeers’.

Why do I need `exten => _.@_.,1,NoOp()` record?


sergio.

2 thoughts on - Extension With Callerid Not Found In Context