How to prompt user to enter user id and password

Hello All,

I need to prompt user to enter his user id and password before he do queue login or queue logout…
my extension_custom.conf for queue login (*511) and logout(*501) are as follow:

exten => _*501,1,RemoveQueueMember(${EXTEN:3})
exten => _*501,n,Playback(agent-loggedoff)
exten => _*501,n,Hangup

exten => _*511,1,AddQueueMember(${EXTEN:3})
exten => _*511,2,Playback(agent-loginok)
exten => _*511,n,Hangup

please help

Thanks & Regards

The basic steps are to use the Read() application to get the user’s login ID.
Match the login ID to a password.
Use the Authenticate() application to accept the password. (You could use read() for this as well, but that would require more dialplan code)

There are several options for storing the login ID and passwords.

  1. hard coded in the dialplan code
  2. Store in the Asterisk DB
  3. Store in an ODBC database
  4. Store in an external file

I prefer to use the ODBC option because I can maintain the data through external programs.