The idea is that the person connecting and dial anything he want and the script is deciding to proceed the call or to terminate it(I think it will be easy to manage extensions.conf - no need to create extensions).
You know {i} doesent work exten => 1,1,Answer; exten => 1,2,Playback(hello-world,skip); exten => 1,3,Hangup; exten => i,1,Answer; exten => i,2,Playback(welcome,skip); exten => i,3,Hangup; as I thought when i will dial wrong number it will play welcome message but asterisk promt -> Call from 7007 to extension 700786 rejected because extension not found. to Tzafrir Cohen in curent config i didnt set context in sip(unsing default) but it doesent matter if I set up context the same thing s and i doesn't work now dial plan show next Context 'default' created by 'pbx_config' ] '7007' => 1. Answer() [pbx_config] 2. Playback(hello-world|skip) [pbx_config] 3. Hangup() [pbx_config] 'i' => 1. Answer() [pbx_config] 2. Playback(welcome|skip) [pbx_config] 3. Hangup() [pbx_config] -= 2 extensions (6 priorities) in 1 context. =- 2008/3/5, Andres Jimenez <[EMAIL PROTECTED]>: > On Wed, Mar 5, 2008 at 10:12 AM, Daniel Suleyman <[EMAIL PROTECTED]> 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/[EMAIL PROTECTED] > > _______________________________________________ > -- Bandwidth and Colocation Provided by http://www.api-digital.com -- > > asterisk-users mailing list > To UNSUBSCRIBE or update options visit: > http://lists.digium.com/mailman/listinfo/asterisk-users > _______________________________________________ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users