[Asterisk-Users] SUMMARY: Enter Pin followed by Pound key
Gary Franczyk
gary at de-scribe.com
Wed Jan 21 06:20:14 MST 2004
That looks like my solution. The get_data already accepts the pound key as
an "enter" button to complete the entry.
Thanks
Gary F.
-----Original Message-----
From: asterisk-users-admin at lists.digium.com
[mailto:asterisk-users-admin at lists.digium.com]On Behalf Of AstGrp
Sent: Tuesday, January 20, 2004 8:45 PM
To: asterisk-users at lists.digium.com
Subject: RE: [Asterisk-Users] Enter Pin followed by Pound key
This has worked for me....
my $empid = $AGI->get_data('employee',-1,5);
It is set to accept 5 digits but hitting pound before the fifth digit
works to satisfy.
-gcc
-----Original Message-----
From: asterisk-users-admin at lists.digium.com
[mailto:asterisk-users-admin at lists.digium.com] On Behalf Of Gary
Franczyk
Posted At: Tuesday, January 20, 2004 11:52 AM
Posted To: Asterisk User Group
Conversation: [Asterisk-Users] Enter Pin followed by Pound key
Subject: [Asterisk-Users] Enter Pin followed by Pound key
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?
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.
Thanks
Gary Franczyk
_______________________________________________
Asterisk-Users mailing list
Asterisk-Users at lists.digium.com
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users
_______________________________________________
Asterisk-Users mailing list
Asterisk-Users at lists.digium.com
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users
More information about the asterisk-users
mailing list