[asterisk-users] {s} - extension

Andres Jimenez gandresin at gmail.com
Wed Mar 5 05:35:27 CST 2008


On Wed, Mar 5, 2008 at 10:12 AM, Daniel Suleyman <danikpro at gmail.com> wrote:

>  but when I use next construction(As I understand it is used to allow
>  to process any extension dialed by user)
>
>  exten => s,1,Answer;
>  exten => s,2,Playback(hello-world,skip);
>  exten => s,3,Hangup;

AFAIK, "s" extension is used in analogue PSTN incoming calls, as the
call itself doesn't contain the extension (public telephone number) it
tries to reach.

If want to catch "any" extension dialed by the user you should use
something like this:

  exten => _.,1,Answer;
  exten => _.,2,Playback(hello-world,skip);
  exten => _.,3,Hangup;

In any case, I cannot understand why you would like to use it.
You should define your extensions and use the invalid extension (i) to
catch calls sent to any number not detailed in the dialplan.

-- 
Andres Jimenez

GPG : http://www.andresin.com/gpg/gandresin@gmail.com.asc



More information about the asterisk-users mailing list