Call from 'sip' to extension '+1xxxyyyzzzz' rejected because extension not found in context 'out'. But [out] exten => s,1,NoOp( this is the extension: ${EXTEN}) exten => s,n,Answer() exten => s,n(weasels),PlayBack(weasels-eaten-phonesys) ........ If I set "s" to "_." it works. Shouldn't "s" work here? Is it because the extension includes a "+"? sean
sean darcy wrote:> Shouldn't "s" work here?S stands for start. Inbound calls via a provider, to your inbound context would match. For you example, it'd have to be: [out] exten => +1xxxyyyzzzz,1,NoOp( this is the extension: ${EXTEN}) exten => +1xxxyyyzzzz,n,Answer() exten => +1xxxyyyzzzz,n(weasels),PlayBack(weasels-eaten-phonesys) Doug -- Ben Franklin quote: "Those who would give up Essential Liberty to purchase a little Temporary Safety, deserve neither Liberty nor Safety."
On Tue, 07 Jun 2011 14:17:41 -0400 sean darcy <seandarcy2 at gmail.com> wrote:> Call from 'sip' to extension '+1xxxyyyzzzz' rejected because > extension not found in context 'out'. > > But > [out] > exten => s,1,NoOp( this is the extension: ${EXTEN}) > exten => s,n,Answer() > exten => s,n(weasels),PlayBack(weasels-eaten-phonesys) > ........ > > If I set "s" to "_." it works. > > Shouldn't "s" work here? Is it because the extension includes a "+"?"s" is only used when there is no extension. Using "_." poses a potential security risk, if you then use ${EXTEN} for a subsequent Dial. The best way to do it is to define your extensions exactly or based on some pattern that doesn't end with ".".
> -----Original Message----- > From: asterisk-users-bounces at lists.digium.com > [mailto:asterisk-users-bounces at lists.digium.com] On Behalf Of > sean darcy > Sent: Tuesday, June 07, 2011 2:18 PM > To: asterisk-users at lists.digium.com > Subject: [asterisk-users] why doesn't "s" accept incoming call > > Call from 'sip' to extension '+1xxxyyyzzzz' rejected because > extension > not found in context 'out'. > > But > [out] > exten => s,1,NoOp( this is the extension: ${EXTEN}) > exten => s,n,Answer() > exten => s,n(weasels),PlayBack(weasels-eaten-phonesys) > ........ > > If I set "s" to "_." it works. > > Shouldn't "s" work here? Is it because the extension includes a "+"?"s" is NOT a wildcard. "s" matches "empty extension", it does not match "all extensions". "s" is seldom used except in macros and with FXO ports (analog or CAS)