Read Like Application But To Limit Allowed Digits
Hi,
Using the the Read Application you can limit how many digits the user can input but not what is accepted. With stream_file in an agi you can set the allowed numbers. Is there any application in the dial plan which will allow me to set what numbers the user can enter? For example it may be 1 for yes and 2 for now. I don’t want a gotoif after to see if they entered anything
One thought on - Read Like Application But To Limit Allowed Digits
The solution you don’t want to use (testing the result of Read) is what I
personally use.
same => n(PROMPT),Read(RESPONSE,playback_or_callback,1,,3,8)
same => n,GotoIf($[“${RESPONSE}” = “1”]?RETURN,1)
same => n,GotoIf($[“${RESPONSE}” = “2”]?PLAY,1:PROMPT)