Installing the Asterisk GUI
If you didn’t install AsteriskNOW, you need to download and install the Asterisk GUI files. Once the files are downloaded, you simply compile and install them as part of your Asterisk installation.
Note
You need Asterisk 1.4 or later in order use the Asterisk GUI.
You can get the latest version of the GUI files by checking them out of Digium’s Subversion repository.[131] If you have Subversion installed on your computer, you can downloaded the GUI code by using the following command:
#cd /usr/src# or wherever you prefer to download source code to #svn co http://svn.digium.com/svn/asterisk-gui/trunk asterisk-gui
Installing the GUI is simple as this:
#cd asterisk-gui#./configure#make#make install#make samples
After running the previous commands, the GUI files are installed and part of your Asterisk distribution.
Setting up http.conf and manager.conf
Configuring the Asterisk web server to process AJAM requests involves several simple steps. In the /etc/asterisk/http.conf file, add (or un-comment) the following:
[general]
enabled=yes
enablestatic=yes ; without this, you can only send AMI commands, not display
; html content
bindaddr=0.0.0.0 ; address you want the Asterisk HTTP server to respond on
bindport=8088 ; port you want the Asterisk HTTP server to respond on
prefix=asterisk ; will form part of the URI, similar to a directory nameNow that we’ve got httpd.conf set up, we can serve up content to a browser. To allow the web client to send commands to Asterisk, ...