asterisk manager.conf helper script
Tzafrir Cohen
tzafrir.cohen@xorcom.com
Wed, 04 May 2005 01:31:07 +0300
Hi
I'm trying to figure out the best way to install several packages that
will need access to the asterisk manager port. Access to the port is
generally controlled by the file /etc/asterisk/manager.conf . It has a
[general] section that allows a global enable/disable as well as setting
the interface and port.
In addition, there are optional sections where one can define access
passwords and the permissions they allow.
Ideally I'd like packages to install sections in that file with a new
random password (thus the uer will not need to provide a password). They
will have to remove the section when they're done and to also easily
know what the password is.
This seems to call for a separate file per package, or for a script to
merge such files to a complete manager.conf. Without the requirement for
a random password set at install-time it would be satisfied by applying
the glob-insclude patch and adding the following to manager.conf:
#include "manager.d/*.conf"
Paackages that currently need this: I have two, that are not in Debian
(destar and op-panel). But this should be useful to every package that
access the manager API from the same host as the PBX and is run by root,
by the asterisk user or by a dedicated user.
--
Tzafrir Cohen icq#16849755 +972-50-7952406
tzafrir.cohen@xorcom.com http://www.xorcom.com