999 Dialer For Asterisk

If someone dials 999 from an extension this will hangup calls to get an outside line

;[emergency]

;checks to see if theres an outbound zapata channel availbe

exten => 999,1,ChanIsAvail(Zap/1)

;if there is, dial 999

exten => 999,2,Dial(${AVAILCHAN}/999)

;then hangup when finished

exten => 999,3,Hangup()

;or….. just hang up the call

exten => 999,102,SoftHangup(Zap/1-1)

;wait a second

exten => 999,103,Wait(1)

;start again

exten => 999,104,Goto(1)

Author: admin