[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 ___ -- 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
Re: [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 ___ -- 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
Re: [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-boun...@lists.digium.com [mailto:asterisk-users-boun...@lists.digium.com] On Behalf Of Bharath B. Reddy Bynagari Sent: Monday, August 31, 2009 8:27 AM To: asterisk-users@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 ___ -- 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
Re: [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-boun...@lists.digium.com [mailto:asterisk-users-boun...@lists.digium.com] On Behalf Of Bharath B. Reddy Bynagari Sent: Monday, August 31, 2009 8:27 AM To: asterisk-users@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 ___ -- 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
Re: [asterisk-users] How to stop IVR once system receives DTMF?
This is correct. You can build a pretty large voice menu using Background(file1file2file3file4) stacked up with the knowledge that the user can skip all of it by pressing a key. _ From: asterisk-users-boun...@lists.digium.com [mailto:asterisk-users-boun...@lists.digium.com] On Behalf Of Cary Fitch Sent: Monday, August 31, 2009 8:49 AM To: 'Asterisk Users Mailing List - Non-Commercial Discussion' Subject: Re: [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-boun...@lists.digium.com [mailto:asterisk-users-boun...@lists.digium.com] On Behalf Of Bharath B. Reddy Bynagari Sent: Monday, August 31, 2009 8:27 AM To: asterisk-users@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 ___ -- 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
Re: [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 ___ -- 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