[Asterisk-Users] Enter Pin followed by Pound key

AstGrp astgrp at cwkb.com
Tue Jan 20 18:45:15 MST 2004


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



More information about the asterisk-users mailing list