Asterisk PIN based dialing
Asterisk PIN based dialing As an Asterisk administrator, I often have clients requesting the ability to have users enter a PIN before dialing. This is useful on factory floors where users roam between different phones, but still need to be held accountable for their calls. Apart from just authenticating the user, the dialplan also has to ensure that the account code is correctly assigned in the CDR. To this end Asterisk provides the AUTHENTICATE dialplan application. Authenticate has many different options that makes it very versatile, but what I have found most useful is to use the file function. This allows you to create a file with account codes and MD5 password hashes. The file needs to be structured as follows: accountcode:passwordmd5 When using the file mode, the account code will be written into the CDR logs. For example: vim /etc/asterisk/pins.conf You may use a different file/location 500:8c8a58fa97c205ff222de3685497742c 501:c460dc0f18fc309ac07306a4a55d2fd6 502:d91caca74114d81...