Page 402 - Asterisk™: The Future of Telephony
P. 402
exten => 123,1,Answer(750)
exten => 123,n,Playback(tt-weasels)
See Also
Hangup()
AppendCDRUserField() Appends a value to the user field of the Call Detail Record
AppendCDRUserField(value)
Appends value to the user field of the Call Detail Record (CDR). The user field is often
used to store arbitrary data about the call, which may not be appropriate for any of the
other fields:
; set the user field to 'abcde'
exten => 123,1,SetCDRUserField(abcde)
; now append 'xyz'
exten => 123,1,AppendCDRUserField(xyz)
This application has been deprecated in favor of the CDR function.
exten => 123,1,Set(CDR(userfield)=${CDR(userfield)}12345)
See Also
SetCDRUserField(), ForkCDR(), NoCDR(), ResetCDR(), the CDR
Authenticate() Requires that the caller enter a correct password before continuing
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 pass-
word 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:
374 | Appendix B: Application Reference