Ok isn't this replacing a "western hack" with a "bridge hack"? The "init 0" and "init 6" probably aren't going to work anyway since (1) asterisk has to be running as root and (2) the path in * is limited if even existent, so the init command would work unless you had a copy or symlink in the asterisk directory.
-----Original Message----- From: asterisk-users-boun...@lists.digium.com [mailto:asterisk-users-boun...@lists.digium.com] On Behalf Of Tzafrir Cohen Sent: Sunday, February 15, 2009 11:26 PM To: asterisk-users@lists.digium.com Subject: Re: [asterisk-users] Hangup extensions via CLI? On Mon, Feb 16, 2009 at 12:15:08AM -0500, Alexander Lopez wrote: > This will hang-up all channels even if multiples channels are open... > > > Exten => _86XXXX,1,system("init 0") > > Use with Caution.? Only if Asterisk is running as root. Which is not recommended, anyway. And besides, I think you meant: Exten => _86XXXX,1,system("init 6") as we want to leave the extension available afterwards. -- Tzafrir Cohen icq#16849755 jabber:tzafrir.co...@xorcom.com +972-50-7952406 mailto:tzafrir.co...@xorcom.com http://www.xorcom.com iax:gu...@local.xorcom.com/tzafrir _______________________________________________ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users _______________________________________________ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users