Summary:ASTERISK-00178: Proposed feature: app_input
Reporter:oliver (oliver)Labels:
Date Opened:2003-08-26 17:09:59Date Closed:2004-09-25 02:20:09
Versions:Frequency of
Description:app_input would accept a sequence of digits from the caller and store those in a variable, given in it's argument.  It should also (optionally) accept a terminator-digit in it's argument, which, if set, gets used as the terminator for the input from the caller.

I understand this could probably be done already, using an AGI or context, but I think there would be a lot of uses for a simple application to do it.
Comments:By: John Todd (jtodd) 2003-10-16 04:11:08

Oliver - have you found any takers who might be interested in developing this app?

By: Tilghman Lesher (tilghman) 2003-10-17 16:02:08

No need for a separate application; you can do this all from the dialplan:

exten => s,1,SetVar(inputreturn=default|s|4)
exten => s,2,SetVar(inputvar=myvarname)
exten => s,3,Goto(input,s,1)
exten => s,4,DoSomethingElse

exten => s,1,Background(EnterNumber)
exten => _X.,1,SetVar(${inputvar}=${EXTEN})
exten => _X.,2,Goto(${inputreturn})

By: oliver (oliver) 2003-11-21 17:03:34.000-0600


The requested functionality has since been implemented in "app_read".  That means this ticket can be closed.  :-)



By: Brian West (bkw918) 2003-11-22 13:49:29.000-0600

app_read check cvs it was added recently.  Also app_readdigits.c is in the bug tracker also.