[Asterisk-Users] Enter Pin followed by Pound key
Philipp von Klitzing
klitzing at pool.informatik.rwth-aachen.de
Tue Jan 20 12:31:22 MST 2004
Hi!
> Im trying to create a custom application via the AGI. I want to
> authenticate the users that dial in with a userid and pin. However, the
> number of digits in the PIN and userid are variable, and therefore I need to
> allow the user to "press enter" by hitting the pound key. How would I
> accomplish this in the AGI?
Did you look at the appliation Digit()? If you must use AGI then
EXEC Digit ...
might do it for you.
> stream_file doesnt seem to work, since it only allows one digit to be
> pressed.
> get_data seems to only allow a fixed number of digits to be entered.
Why not use either of those repetitively and check in your AGI script if
# was the digit, then accumlate what you have?
Cheers, Philipp
More information about the asterisk-users
mailing list