B.120. SoftHangup()

Hangs up the specified channel.
SoftHangup(technology/resource[,options])
Hangs up the specified channel. Returns 0. Allowed options include a, which hangs up all channels on the specified device, not just a single resource.
; hang up all channels using Zap/4:
exten => 123,1,SoftHangup(Zap/4,a)
exten => 123,n,Wait(2)
exten => 123,n,Dial(Zap/4/6045551538)

Note

Internal help for this application in Asterisk 1.4:
  -= Info about application 'SoftHangup' =- 

[Synopsis]
Soft Hangup Application

[Description]
  SoftHangup(Technology/resource|options)
Hangs up the requested channel.  If there are no channels to hangup,
the application will report it.
- 'options' may contain the following letter:
     'a' : hang up all channels on a specified device instead of a single resource
diff output to internal help in Asterisk 1.2:
- none -