I have pjsip endpoint with callerid=<sergio> 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.

--
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

Check out the new Asterisk community forum at: https://community.asterisk.org/

New to Asterisk? Start here:
     https://wiki.asterisk.org/wiki/display/AST/Getting+Started

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
  http://lists.digium.com/mailman/listinfo/asterisk-users

Reply via email to