Page 451 - Asterisk™: The Future of Telephony
P. 451
Writes an arbitrary queue event to the queue log. The queuename parameter specifies
the name of the queue. The uniqueid parameter specifies the unique identifier for the
channel. The member parameter specifies which queue member the event pertains to.
The event and additionalinfo parameters may be set to arbitrary data, as needed.
; Write an arbitary event to the queue log
exten => 123,1,QueueLog(myqueue,${UNIQUEID},Agent/123,MyTestEvent)
See Also
Queue()
Random() Conditionally branches, based upon a probability
Random([probability]:[[context,]extension,]priority)
This application has been deprecated in favor of:
GotoIf($[${RAND(1,100)} > num]?label)
Conditionally jumps to the specified priority (and optional extension and context),
based on the specified probability. probability should be an integer between 1 and
100. The application will jump to the specified destination priority percent of the time.
; choose a random number over and over again
exten => 123,1,SayNumber(${RAND(1|10)})
exten => 123,n,Goto(1)
See Also
RAND
Read() Reads DTMF digits from the caller and assigns the result to a variable
Read(variable[,filename[,maxdigits[,option[,attempts[,timeout]]]]])
Reads a #-terminated string of digits from the user in to the given variable.
Other arguments include:
filename
Specifies the file to play before reading digits.
maxdigits
Sets the maximum acceptable number of digits. If this argument is specified, the
application stops reading after maxdigits have been entered (without requiring the
Random() | 423