Hi, I would like to create extension, so user will have to enter password, and later he will be prompt for a number to call. My config looks like this (ONLY THE PART OF): exten => 888,1,Ringing(), exten => 888,2,wait(2) exten => 888,3,Background,welcome exten => 888,4,Authenticate(1234|a) exten => 888,5,goto(plan,s,1) [plan] exten => s,1,Playback,pls-entr-num-uwish2-call exten => s,2,wait(10) exten => s,3,Dial(SIP/${EXTEN-1@Nikotel,60,Ttr) exten => s,4,Hangup The thing is that this is not working the exten => s,3,Dial(SIP/${EXTEN-1@Nikotel,60,Ttr) calls null number. How do I pass the number to s,3. Can I do a check if caller entered any numbers? Thanks Bart,
On Thu, 31 Mar 2005 02:11:46 -0600 (CST), Bartosz Wegrzyn - asterisk <junk@lexon.ws> wrote:> Hi, > > I would like to create extension, so user will have to enter password, and > later he will be prompt for a number to call.Did you look at DISA? This does almost exactly what you're looking for. http://www.voip-info.org/wiki-Asterisk+cmd+DISA Peter -- Peter Bowyer Email: peter@bowyer.org Tel: +44 1296 768003 VoIP: sip:peter@bowyer.org
On Mar 31, 2005, at 12:11 AM, Bartosz Wegrzyn - asterisk wrote:> Hi, > > I would like to create extension, so user will have to enter password, > and > later he will be prompt for a number to call. > My config looks like this (ONLY THE PART OF): > > exten => 888,1,Ringing(), > exten => 888,2,wait(2) > exten => 888,3,Background,welcome > exten => 888,4,Authenticate(1234|a) > exten => 888,5,goto(plan,s,1) > > [plan] > exten => s,1,Playback,pls-entr-num-uwish2-call > exten => s,2,wait(10) > exten => s,3,Dial(SIP/${EXTEN-1@Nikotel,60,Ttr) > exten => s,4,HangupMy understanding was that WAIT() does not listen for input.
> > On Mar 31, 2005, at 12:11 AM, Bartosz Wegrzyn - asterisk wrote: > >> Hi, >> >> I would like to create extension, so user will have to enter password, >> and >> later he will be prompt for a number to call. >> My config looks like this (ONLY THE PART OF): >> >> exten => 888,1,Ringing(), >> exten => 888,2,wait(2) >> exten => 888,3,Background,welcome >> exten => 888,4,Authenticate(1234|a) >> exten => 888,5,goto(plan,s,1) >> >> [plan] >> exten => s,1,Playback,pls-entr-num-uwish2-call >> exten => s,2,wait(10) >> exten => s,3,Dial(SIP/${EXTEN-1@Nikotel,60,Ttr) >> exten => s,4,Hangup > > My understanding was that WAIT() does not listen for input.You are right, if there is a wait it wont take any input. My bad. I will try without it. Thanks> > _______________________________________________ > Asterisk-Users mailing list > Asterisk-Users@lists.digium.com > http://lists.digium.com/mailman/listinfo/asterisk-users > To UNSUBSCRIBE or update options visit: > http://lists.digium.com/mailman/listinfo/asterisk-users >