Page 405 - Asterisk™: The Future of Telephony
P. 405
exten => 123,1,Playback(im-sorry)
exten => 123,2,Playtones(busy)
exten => 123,3,Busy()
See Also
Congestion(), Progress(), Playtones(), Hangup()
ChangeMonitor() Changes the monitoring filename of a channel
ChangeMonitor(filename_base)
Changes the name of the recorded file created by monitoring a channel with the
Monitor() application. This application has no effect if the channel is not monitored.
The argument filename_base is the new filename base to use for monitoring the chan-
nel.
; start recording this channel with a basename of 'sample'
exten => 123,1,Monitor(sample)
; change the filename base to 'example'
exten => 123,2,ChangeMonitor(example)
See Also
Monitor(), StopMonitor(), MixMonitor()
ChanIsAvail() Finds out if a specified channel is currently available
ChanIsAvail(technology1/resource1[&technology2/resource2...][,option])
Checks to see if any of the requested channels are available. This application also sets
the following channel variables:
AVAILCHAN
The name of the available channel, including the call session number used to per-
form the test
AVAILORIGCHAN
The canonical channel name that was used to create the channel—that is, the
channel name without any session number
AVAILSTATUS
The status code for the channel
If the option s (which stands for “state”) is specified, Asterisk will consider the channel
unavailable whenever it is in use, even if it can take another call.
If the j option is specified, and none of the requested channels are available, the new
priority will be n+101 (where n is the current priority), if that priority exists.
; check both Zap/1 and Zap/2 to see if they're available
exten => 123,1,ChanIsAvail(Zap/1&Zap/2)
ChangeMonitor() | 377