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: [email protected]
[mailto:[email protected]] On Behalf Of Bharath B.
Reddy Bynagari
Sent: Monday, August 31, 2009 8:27 AM
To: [email protected]
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