[Asterisk-Users] s / i extension difficulty
Maxim Vexler
hq4ever at gmail.com
Mon Jul 3 00:50:33 MST 2006
On 6/29/06, Tyler Retzlaff <rtr at softelsystems.com.au> wrote:
> I'm having some difficulty with s extensions. For some reason they
> don't seem to be matching anything.
>
> The documentation says that The "s" extension is used when there is
> no known called number in the context used.
> I must be misinterpreting what this means. I take this to mean that
> if the extension dialed does not match any other
> extension defined in the context then the s extension is used.
>
> So I have.
>
> [incoming-sip]
> exten => s,1,Answer
> exten => s,n,Playback(enter-ext-of-person)
> exten => s,n,Hangup
>
> exten => 522,1,Answer
> exten => 522,n,Playback(enter-ext-of-person)
> exten => 522,n,Hangup
>
> If I dial 522 I get the incoming-sip context I hear the playback as
> expected.
> If I dial 523 (an extension that isn't matched) I just get a 404 not
> found, but I expected to get the playback.
>
> How is the s extension matched? (asterisk 1.2.9.1)
> Have I misinterpreted how the s extension is matched?
>
> Thanks
>
> Tyler
> _______________________________________________
> --Bandwidth and Colocation provided by Easynews.com --
>
> Asterisk-Users mailing list
> To UNSUBSCRIBE or update options visit:
> http://lists.digium.com/mailman/listinfo/asterisk-users
>
You might want to check pattern matching :
http://www.voip-info.org/wiki/index.php?page=Asterisk+Dialplan+Patterns
--
Cheers,
Maxim Vexler
"Free as in Freedom" - Do u GNU ?
More information about the asterisk-users
mailing list