You could use the Read App
(Read(variable[|filename][|maxdigits][|option])) in a dialplan to request
the user enter their code.
Then use AGI to launch an executeable script which is passed the variable
from the Read command, using this scripts native code to connect into the DB
and check if the password is correct, if not you can use AGI to have a
message played back to the user then hangup on them.

my 2 cents worth.....

Steve


-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of Bartosz
Wegrzyn - asterisk
Sent: Thursday, April 07, 2005 11:41 AM
To: [email protected]
Subject: [Asterisk-Users] Can asterisk get code for cmd Authenticate
fromDatabase


Hello,

I would like to store the account code for the user in mysql database.
Is the any way to retrieve that value and set for Authenticate cmd.
Is there any interface for asterisk to access database data?

Thanks

Bart,

_______________________________________________
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