Enabling the trixbox / Asterisk mini-HTTP server

Mindwatering Incorporated

Author: Tripp W Black

Created: 07/09/2010 at 12:50 AM

 

Category:
VOIP
Asterisk, Trixbox

To use the Asterisk Manager (AJAM), you need to enable the Asterisk mini-HTTP server.
(This is completely different from the one already running on ports 80 and 443 for the trixbox management and user web interfaces.)

1. If using trixbox, the /etc/asterisk/http.conf already exists and just needs to be edited.
(Otherwise cp from /usr/src/asterisk/configs/http.conf.)

2. Edit the http.conf file:
# cd /etc/asterisk
# vi http.conf

Remove the semi-colon ";" comment in front of the enabled=yes line.
Change the bindaddr line to your IP, such as bindaddress=192.168.2.10.
Remove the semi-colon comment in front of the prefix=asterisk line.
Remove the semi-colon comment in front of the uploads = /var/lib/asterisk/uploads/.

3. Make the new asterisk uploads folder:
# mkdir /var/lib/asterisk/uploads
# chown asterisk:asterisk /var/lib/asterisk/uploads

4. Restart the trixbox services:
# amportal restart.

(This is did not work for us. Instead we rebooted.)
# init 6

4. Confirm you updated the http.conf file by issuing:
# asterisk -rx "http show status"

Confirm the Prefix path, that the server is enabled, and that it's bound to the correct IP.

5. Edit iptables if running and allow port 8088 access.

6. Edit /etc/asterisk/manager.conf and add a new context for your plugin. Here's the config for noojee:

# vi /etc/asterisk/manager.conf

Add the following:
[noojee]
secret = YourVerySecurePasswordGoesHere
deny=0.0.0.0/0.0.0.0
permit=192.168.0.0/255.255.255.0
read = system,call,log,verbose,command,agent,user
write = system,call,log,verbose,command,agent,user

Under the [general] context header, add the following entry:
webenabled = yes

Save the file.

7. Now setup the client. For noojee, visit the noojee web site and install the Firefox plugin.


previous page