[asterisk-users] Read like Application but to limit allowed digits

John Kiniston johnkiniston at gmail.com
Mon Apr 8 15:00:58 CDT 2019

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)

On Mon, Apr 8, 2019 at 11:45 AM Dovid Bender <dovid at telecurve.com> wrote:

> 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
> > 2 etc.
> --
> _____________________________________________________________________
> -- Bandwidth and Colocation Provided by http://www.api-digital.com --
> Check out the new Asterisk community forum at:
> https://community.asterisk.org/
> New to Asterisk? Start here:
>       https://wiki.asterisk.org/wiki/display/AST/Getting+Started
> asterisk-users mailing list
> To UNSUBSCRIBE or update options visit:
>    http://lists.digium.com/mailman/listinfo/asterisk-users

A human being should be able to change a diaper, plan an invasion, butcher
a hog, conn a ship, design a building, write a sonnet, balance accounts,
build a wall, set a bone, comfort the dying, take orders, give orders,
cooperate, act alone, solve equations, analyze a new problem, pitch manure,
program a computer, cook a tasty meal, fight efficiently, die gallantly.
Specialization is for insects.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20190408/5c0823e2/attachment.html>

More information about the asterisk-users mailing list