[asterisk-users] why doesn't s accept incoming call

2011-06-07 Thread sean darcy
Call from 'sip' to extension '+1xxxyyy' 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


--
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
  http://www.asterisk.org/hello

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


Re: [asterisk-users] why doesn't s accept incoming call

2011-06-07 Thread Doug Lytle

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 = +1xxxyyy,1,NoOp( this is the extension: ${EXTEN})
exten = +1xxxyyy,n,Answer()
exten = +1xxxyyy,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.


--
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
  http://www.asterisk.org/hello

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


Re: [asterisk-users] why doesn't s accept incoming call

2011-06-07 Thread Chad Wallace
On Tue, 07 Jun 2011 14:17:41 -0400
sean darcy seandar...@gmail.com wrote:

 Call from 'sip' to extension '+1xxxyyy' 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 ..


--
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
   http://www.asterisk.org/hello

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


Re: [asterisk-users] why doesn't s accept incoming call

2011-06-07 Thread Eric Wieling


 -Original Message-
 From: asterisk-users-boun...@lists.digium.com
 [mailto:asterisk-users-boun...@lists.digium.com] On Behalf Of
 sean darcy
 Sent: Tuesday, June 07, 2011 2:18 PM
 To: asterisk-users@lists.digium.com
 Subject: [asterisk-users] why doesn't s accept incoming call

 Call from 'sip' to extension '+1xxxyyy' 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)

--
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
   http://www.asterisk.org/hello

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