Description
Congestion([timeout])
Sends a signal to inform the channel of congestion. This command waits for the user to hang up unless the optional timeout has been specified; it does not continue execution of further commands.
On a SIP channel it will signal “503 Service Unavailable” to the endpoint.
Note that this command does not actually play a congestion tone to the user, not does it do “early audio”. If you wish to do that, call Playtones(congestion) before calling this command.
new in asterisk 1.2: Now this app supports an optional ‘timeout’ argument. If the optional timeout is specified, the calling channel will be hung up after the specified number of seconds. Otherwise, this application will wait until the calling channel hangs up.
Example
exten => s,1,Answer ; can’t Playtones unless we answer first
exten => s,n,Playtones(congestion) ; send the audio sequence that humans understand means “congestion”
exten => s,n,Congestion(10) ; signal the other end of congestion. Wait for hangup.
exten => s,n,HangUp
See also
- Asterisk cmd Busy
- CONGESTION
- indications.conf: Configuration file of various sounds
- Asterisk cmd Playtones
Asterisk | Applications | Functions | Variables | Expressions | Asterisk FAQ