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()

Get Asterisk: The Future of Telephony now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.