Page 465 - Asterisk™: The Future of Telephony
P. 465
For more information on shared line appearances, see the doc/sla.pdf file in the Asterisk
source.
exten => 123,1,SLATrunk(line2)
See Also
SLAStation(), sla.conf
SoftHangup() Performs a soft hangup of the requested channel
SoftHangup(technology/resource,options)
Hangs up the requested channel. The options argument may contain the letter a, which
causes all channels on the specified device to be hung up (currently, the options argu-
ment may contain only a).
; 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()
StackPop() Removes last address from Gosub() stack
StackPop()
Removes the last address from the Gosub() stack. This is frequently used when handling
error conditions within Gosub() routines when it is no longer appropriate to return
control of the dialplan back to where the Gosub() routine was called from.
exten => s,1,Read(input,get-input)
exten => s,n,Gosub(validate,1)
exten => s,n,Dial(SIP/${input})
; Ensure that input is between 400 and 499
exten => validate,1,GotoIf($[ ${input} > 499 ]?error,1)
exten => validate,n,GotoIf($[ ${input} < 400 ]?error,1)
exten => validate,n,Return
exten => error,1,StackPop()
exten => error,2,Goto(s,1)
See Also
Return(), Gosub()
StartMusicOnHold() Starts music on hold
StartMusicOnHold([class])
SoftHangup() | 437