Name
Authenticate() — Requires that the caller enter a correct password before continuing
Synopsis
Authenticate(password[,options[,maxdigits]])
Requires a caller to enter a given
password in order to continue execution of
the next priority in the dialplan. Authenticate() gives the caller three
chances to enter the password correctly. If the password is not
correctly entered after three tries, the channel is hung up.
If password begins with the / character, it is interpreted as a file
that contains a list of valid passwords (one per line). Passwords may
also be stored in the Asterisk database (AstDB); see the d option below.
The maxdigits parameter sets the
maximum number of digits that may be entered by the caller. It not
set, the application will accept an unlimited number of digits and
will wait for the caller to press the # key after entering his authentication
code.
A set of options may be provided,
consisting of one or more of the letters in the following list:
aSets the CDR field named
accountcodeand the channel variableACCOUNTCODEto the password that is entereddInterprets the path as the database key from the Asterisk database in which to find the password, not a literal file. When using a database key, the value associated with the key can be anything.
jSupports jumping to priority
n+101if authentication failsmInterprets the given path as a file that contains a list of account codes and password hashes delimited with
:(colon character), listed one per line in the file. When ...