[asterisk-users] Hangup extensions via CLI?
Tzafrir Cohen
tzafrir.cohen at xorcom.com
Tue Feb 17 10:04:06 CST 2009
On Tue, Feb 17, 2009 at 08:57:51AM -0600, Danny Nicholas wrote:
> 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
I have already mentioned that this is a requirement.
> (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.
# tr '\0' '\n' </proc/`cat /var/run/asterisk/asterisk.pid`/environ | grep ^PATH=
PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
Init scripts tend to set the path explicitly.
So those are just poor excuses for not using that fine hangup method.
--
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