[asterisk-users] force channel hangup

Tzafrir Cohen tzafrir.cohen at xorcom.com
Fri Nov 28 17:10:23 CST 2008


On Fri, Nov 28, 2008 at 04:42:01PM -0600, Danny Nicholas wrote:
> Right you are, Alex.  How about (CLI) Zap restart?  I was thinking zap
> destroy channel 1, but that just kills the channel until you do a zap
> restart.  That being said, this is an option
> 
> exten => _911,1,System('/usr/sbin/asterisk -rx "zap restart"')
> exten => _911,2,System('/usr/sbin/asterisk -rx "zap restart"')

This will disconnect all existing Zap calls.

BTW: As of Asterisk 1.4.22 / 1.6.0 'dahdi restart' actually works as
promised and you don't need to run it twice. 

> Second instance is to start the line that was in use during first restart
> exten => _911,3,Dial(Zap/1/ww911,60)
> exten => _911,3,Hangup()

-- 
               Tzafrir Cohen
icq#16849755              jabber:tzafrir.cohen at xorcom.com
+972-50-7952406           mailto:tzafrir.cohen at xorcom.com
http://www.xorcom.com  iax:guest at local.xorcom.com/tzafrir



More information about the asterisk-users mailing list