Asterisk cmd Congestion

Indicate congestion and wait for hangup

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

Indicate congestion and wait for hangup

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

Created by: oej, Last modification: Mon 23 of Aug, 2010 (23:37 UTC) 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+