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: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of AstGrp
Sent: Tuesday, January 20, 2004 8:45 PM
To: [EMAIL PROTECTED]
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: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] 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
[EMAIL PROTECTED]
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
[EMAIL PROTECTED]
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
[EMAIL PROTECTED]
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

Reply via email to