Asterisk GUI
From KlavoWiki
Jump to navigationJump to search
Installation
Download and Build
wget http://downloads.asterisk.org/pub/telephony/asterisk-gui/releases/asterisk-gui-2.0.4.tar.gz tar xvzf asterisk-gui-2.0.4.tar.gz cd asterisk-gui-2.0.4 make make install
Enable http
You need to edit Asterisk's http.conf file and make sure the following paramaters are set.
/etc/asterisk/http.conf
enabled=yes bindaddr=0.0.0.0 enablestatic=yes
Enable manager
Asterisk's manager file now needs to be enabled and configured. Make sure that the following paramaters are set.
/etc/asterisk/manager.conf
enabled = yes webenabled = yes [username] secret = password read = system,call,log,verbose,command,agent,config write = system,call,log,verbose,command,agent,config
Accessing
With the changes that you made above you should be able to access Asterisk using the GUI. Make sure that you have restarted Asterisk before trying.
http://<asteriskip>:8088/asterisk/static/config/cfgbasic.html http://<asteriskip>:8088/asterisk/static/config/cfgadvanced.html
Automated Installation Script
#!/bin/bash # Version of Asterisk GUI to Install # http://downloads.asterisk.org/pub/telephony/asterisk-gui/releases/ # http://www.klaverstyn.com.au/wiki/index.php?title=Asterisk_GUI AsteriskGUI="2.0.4" GUI_UName="admin" GUI_PWD="password" wget http://downloads.asterisk.org/pub/telephony/asterisk-gui/releases/asterisk-gui-$AsteriskGUI.tar.gz tar xvzf asterisk-gui-$AsteriskGUI.tar.gz cd asterisk-gui-$AsteriskGUI ./configure make make install sed -i.copy -e "s/;enabled=yes/enabled=yes/" -e "s/bindaddr=127.0.0.1/bindaddr=0.0.0.0/" -e "s/;enablestatic=yes/enablestatic=yes/" /etc/asterisk/http.conf sed -i.copy -e "s/enabled = no/enabled = yes/" -e "s/;webenabled = yes/webenabled = yes/" /etc/asterisk/manager.conf rm -f /etc/asterisk/http.conf.copy rm -f /etc/asterisk/manager.conf.copy echo "" >> /etc/asterisk/manager.conf echo "" >> /etc/asterisk/manager.conf echo "" >> /etc/asterisk/manager.conf echo "[$GUI_UName]" >> /etc/asterisk/manager.conf echo "secret = $GUI_PWD" >> /etc/asterisk/manager.conf echo "read = system,call,log,verbose,command,agent,config" >> /etc/asterisk/manager.conf echo "write = system,call,log,verbose,command,agent,config" >> /etc/asterisk/manager.conf echo "" >> /etc/asterisk/manager.conf echo "" >> /etc/asterisk/manager.conf cd .. # http://192.168.25.26:8088/asterisk/static/config/cfgbasic.html # http://192.168.25.26:8088/asterisk/static/config/cfgadvanced.html