Page 403 - Asterisk™: The Future of Telephony
P. 403

a
                   Sets the CDR field named accountcode and the channel variable ACCOUNTCODE to the
                   password that is entered
               d
                   Interprets 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.
               j
                   Supports jumping to priority n+101 if authentication fails
               m
                   Interprets 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 one
                   of the passwords is matched, the channel will have its account code set to the
                   corresponding account code in the file.
               r
                   Removes the database key upon successful entry (valid with d only).

                   ; force the caller to enter the password before continuing,
                   ; and set the CDR field named 'accountcode' to the entered password
                   exten => 123,1,Answer()
                   exten => 123,n,Authenticate(1234,a)
                   exten => 123,n,Playback(pin-number-accepted)
                   exten => 123,n,SayDigits(${ACCOUNTCODE})
               See Also
               VMAuthenticate(), DISA(), Chapter 6


               Background()                             Plays a file while accepting touch-tone (DTMF) digits
               Background(filename1[&filename2...][,options[,language]])

               Plays the specified audio file(s) while waiting for the user to begin entering DTMF digits.
               Once the user begins to enter DTMF digits, the playback is terminated. Asterisk tries
               to find a matching extension in the destination context (or the current context if none
               is specified), and execution of the dialplan will continue at the matching extension as
               soon as an unambiguous match is found.
               The filename should be specified without a file extension, as Asterisk will automatically
               find the file format with the lowest translation cost.
               Valid options include one of the following:

               s
                   Causes the playback of the message to be skipped if the channel is not in the “up”
                   state (i.e., hasn’t yet been answered). If s is specified, the application will return
                   immediately should the channel not be off-hook.


                                                                          Background() | 375
   398   399   400   401   402   403   404   405   406   407   408