Read takes the Digits that they enter, and puts it into a variable. Then I can take that variable and put it into the dial() command.
exten => 877XXXXXXX,1,ANSWER exten => 877XXXXXXX,2,DigitTimeout,5 exten => 877XXXXXXX,3,ResponseTimeout,15 exten => 877XXXXXXX,4,Read(Secret,IVR/en_enter_destination,0) exten => 877XXXXXXX,5,dial(SIP/[EMAIL PROTECTED]) This is what I have. So When someone calls into the 877 DID, they hear "enter destination", then they can enter in the phone number they wish to call, press # to execute it, so they don't have to wait for the timeout, which is done by the read() cmd. And then it sends the call to my LD provider. On Sun, 7 Nov 2004 09:49:53 -0800 (PST), oi geli <[EMAIL PROTECTED]> wrote: > Mike, > > Please elaborate it little bit. I am having the same > problem. Are you using read() for the EXTEN variable? > if so, how? > > Thanks > > > > > I found it, read() does exactly what I need > > On Sun, 7 Nov 2004 06:09:51 -0800, Mike Roberts > <manipura at gmail.com> wrote: > > I'm trying to do this from PSTN -> DID -> * > > > > And yes, please spare me the lecture of security, I > already know. > > > > > > > > > > On Sun, 7 Nov 2004 09:01:57 -0500, Steve Totaro > > <asterisk at totarotechnologies.com> wrote: > > > > > > That would be implimented on the phone. > > > > > > Grandstream is like that but on the snom you press > OK. > > > > > > > > > > > > > > > ----- Original Message ----- > > > From: "Mike Roberts" <manipura at gmail.com> > > > To: <asterisk-users at lists.digium.com> > > > Sent: Sunday, November 07, 2004 7:08 AM > > > Subject: [Asterisk-Users] press # to execute > > > > > > >I have this. > > > > > > > > exten => 8,1,ANSWER > > > > exten => 8,2,DigitTimeout,5 > > > > exten => 8,3,ResponseTimeout,10 > > > > exten => 8,4,playback(IVR/en_enter_destination) > > > > > > > > exten => > _1XXXXXXX.,1,dial(SIP/[EMAIL PROTECTED]) > > > > > > > > Basicaly its like pressing 8 for long distance, > but more controled. > > > > But it has to wait until the timeout before it > starts to dial. Is there > > > > a way to make them press # when they are done > dialing the num > > > > in order to execute the _1XXXXXXX. I want to > turn the timeout up > > > > but don't want to have them waiting forever. I > also need to have a > > > > "exten => _011." in there as well. So it won't > have the same > > > > amount of digits everytime. > > > > _______________________________________________ > > > > Asterisk-Users mailing list > > > > Asterisk-Users at 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 > > > > > > > > > > > > __________________________________ > Do you Yahoo!? > Check out the new Yahoo! Front Page. > www.yahoo.com > > _______________________________________________ > > > Asterisk-Users mailing list > [EMAIL PROTECTED] > http://lists.digium.com/mailman/listinfo/asterisk-users > To UNSUBSCRIBE or update options visit: > http://lists.digium.com/mailman/listinfo/asterisk-users > _______________________________________________ Asterisk-Users mailing list [EMAIL PROTECTED] http://lists.digium.com/mailman/listinfo/asterisk-users To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
