O'Reilly logo

Asterisk: The Future of Telephony by Leif Madsen, Jared Smith, Jim Van Meggelen

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Name

SoftHangup() — Performs a soft hangup of the requested channel

Synopsis

    SoftHangup(technology/resource,options)

Hangs up the requested channel. Always returns 0. The options argument may contain the letter a, which causes all channels on the specified device to be hung up. Currently, the options argument may contain only one letter: a. Supplying the a argument causes all channels on the specified device to be hung up.

    ; hang up all calls using Zap/4 so we can use it
    exten => 123,1,SoftHangup(Zap/4,a)
    exten => 123,2,Wait(2)
    exten => 123,3,Dial(Zap/4/5551212)

See Also

Hangup()

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required