Bharath B. Reddy Bynagari
2009-Aug-31 13:26 UTC
[asterisk-users] How to stop IVR once system receives DTMF?
Hi, We are trying to implement a complex business logic in Asterisk. Executing "Wait_For_Digit" command after playing IVR. We want to stop the IVR once we receive the digit. It is not recognizing the Digit until it completes the IVR. How can we stop the IVR once we receive the digit? Thanks BB -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20090831/7c304d66/attachment.htm
Danny Nicholas
2009-Aug-31 13:41 UTC
[asterisk-users] How to stop IVR once system receives DTMF?
Use read with one digit. If you want a specific digit, test for it like this exten => s,1(readacct),Read(digitacc,record/enteracct,1,skip,1,5]) exten => s,n,Gotoif($["${LEN(${digitacc})}" > "1"]?readacct) exten => s,n,Gotoif($["${digitacc}" != "5"]?readacct) This instance "loops" until 5 is pressed. _____ From: asterisk-users-bounces at lists.digium.com [mailto:asterisk-users-bounces at lists.digium.com] On Behalf Of Bharath B. Reddy Bynagari Sent: Monday, August 31, 2009 8:27 AM To: asterisk-users at lists.digium.com Subject: [asterisk-users] How to stop IVR once system receives DTMF? Hi, We are trying to implement a complex business logic in Asterisk. Executing "Wait_For_Digit" command after playing IVR. We want to stop the IVR once we receive the digit. It is not recognizing the Digit until it completes the IVR. How can we stop the IVR once we receive the digit? Thanks BB -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20090831/789af955/attachment.htm
Jose P. Espinal
2009-Aug-31 13:43 UTC
[asterisk-users] How to stop IVR once system receives DTMF?
Are you using Background(SomeSoundFile) ? or PlayBack(SomeSoundFile) ? Normally Background() will stop if the pressed digit(s) match any dialplan entry. Bharath B. Reddy Bynagari wrote:> Hi, > > > > We are trying to implement a complex business logic in Asterisk. > Executing ?Wait_For_Digit? command after playing IVR. We want to stop > the IVR once we receive the digit. It is not recognizing the Digit until > it completes the IVR. How can we stop the IVR once we receive the digit? > > > > Thanks > > BB > > > > > ------------------------------------------------------------------------ > > _______________________________________________ > -- Bandwidth and Colocation Provided by http://www.api-digital.com -- > > AstriCon 2009 - October 13 - 15 Phoenix, Arizona > Register Now: http://www.astricon.net > > asterisk-users mailing list > To UNSUBSCRIBE or update options visit: > http://lists.digium.com/mailman/listinfo/asterisk-users-- Jose P. Espinal http://www.eSlackware.com IRC: Khratos @ #asterisk / -doc / -bugs
Cary Fitch
2009-Aug-31 13:48 UTC
[asterisk-users] How to stop IVR once system receives DTMF?
I think the IVR audio must be playing in "Background" mode, not "Play" Mode. Try that. Background means play the sound and move on to the next instruction. Play means to play the sound and after it is over, move to the next instruction. Cary Fitch _____ From: asterisk-users-bounces at lists.digium.com [mailto:asterisk-users-bounces at lists.digium.com] On Behalf Of Bharath B. Reddy Bynagari Sent: Monday, August 31, 2009 8:27 AM To: asterisk-users at lists.digium.com Subject: [asterisk-users] How to stop IVR once system receives DTMF? Hi, We are trying to implement a complex business logic in Asterisk. Executing "Wait_For_Digit" command after playing IVR. We want to stop the IVR once we receive the digit. It is not recognizing the Digit until it completes the IVR. How can we stop the IVR once we receive the digit? Thanks BB -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20090831/3d378a46/attachment.htm
Tilghman Lesher
2009-Aug-31 15:43 UTC
[asterisk-users] How to stop IVR once system receives DTMF?
On Monday 31 August 2009 08:48:32 am Cary Fitch wrote:> I think the IVR audio must be playing in "Background" mode, not "Play" > Mode. > > Try that. Background means play the sound and move on to the next > instruction. Play means to play the sound and after it is over, move to the > next instruction.No, it does not. Background means to play the sound in the background, and wait for DTMF in the foreground. The only method in Asterisk for playing a soundfile and moving onto the next instruction is MOH. -- Tilghman