login | register
Tue 02 of Dec, 2008 [02:49 UTC]

voip-info.org

Discuss [0] History

Asterisk cmd Congestion

Created by: oej,Last modification on Fri 12 of Oct, 2007 [07:08 UTC] by chandave

Synopsis

Indicate congestion and wait for hangup

Description

 Congestion()

Sends a signal to inform the channel of congestion. This command waits for the user to hang up; it does not continue execution of further commands.

Note that this command does not actually play a congestion tone to the user. 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,2,Playtones(congestion) ; send the audio sequence that humans understand means "congestion"
exten => s,3,Congestion            ; signal the other end of congestion. Wait for hangup.


Return code

Always returns -1.

See also



Asterisk | Applications | Functions | Variables | Expressions | Asterisk FAQ


Comments