Asterisk cmd Congestion

Indicate congestion and wait for hangup



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.


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 | Applications | Functions | Variables | Expressions | Asterisk FAQ

Created by: oej, Last modification: Tue 24 of Aug, 2010 (09:37) by JustRumours
Please update this page with new information, just login and click on the "Edit" or "Discussion" tab. Get a free login here: Register Thanks! - Find us on Google+