[asterisk-users] Hangup extensions via CLI?

Danny Nicholas danny at debsinc.com
Tue Feb 17 08:57:51 CST 2009


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-bounces at lists.digium.com
[mailto:asterisk-users-bounces at lists.digium.com] On Behalf Of Tzafrir Cohen
Sent: Sunday, February 15, 2009 11:26 PM
To: asterisk-users at 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.cohen at xorcom.com
+972-50-7952406           mailto:tzafrir.cohen at xorcom.com
http://www.xorcom.com  iax:guest at 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




More information about the asterisk-users mailing list