Install Asterisk 1.4 and Asterisk GUI in CentOS 4 and CentOS 5
1. Preparing for installation
Installation of Asterisk 1.4 is slightly different than installing Asterisk 1.2. There are some slight changes in the installation and some packages is needed. Asterisk GUI is available for Asterisk 1.4 only and the installation package is avalabe in Digium's svn repository. To install Asterisk GUI you need to download the subversion package.
Do the command:
After installating the updates, you need to reboot to boot to your new kernel, just type the command below.
2. Downloading Asterisk and Zaptel
Download the latest asterisk-1.4, libpri-1.4 and zaptel-1.4 source from the Digium's download site: http://downloads.digium.com
wget http://downloads.digium.com/pub/zaptel/releases/zaptel-1.4.9.1.tar.gz
wget http://downloads.digium.com/pub/libpri/releases/libpri-1.4.3.tar.gz
Untar the Asterisk-1.4 and zaptel-1.4 source to /usr/src/
tar -zxvf libpri-1.4.3.tar.gz -C /usr/src/
tar -zxvf asterisk-1.4.18.tar.gz -C /usr/src/
3. Compiling and Installing
Installing Zaptel
After extracting the source, you can start now the installation of Asterisk, zaptel should be install first.
You go to the zaptel-1.4.xx directory in /usr/src/zaptel-1.4.xx and do the command:
Then continue the installation using the following commands.
make install
Libpri installation
cd libpri-1.2.3/
make
make install
Asterisk installation
cd asterisk-1.4.18/
./configure
make
make install
make samples
4. Getting Asterisk GUI
Alright, lets download the Asterisk GUI from Digium svn repository, to download the Asterisk GUI, go to the /usr/src/ directory and type this command:
5. Compiling Asterisk GUI
The source of Asterisk GUI is now downloaded in /usr/src/asterisk-gui/. Lets install Asterisk GUI.
make
make install
make samples
6. Configuration
There are two files you must configure in order for Asterisk GUI to run. These files are manager.conf and http.conf located in /etc/asterisk/. Lets start at manager.conf.
[general] displaysystemname = yes enabled = no webenabled = no
This is the default configuration of your manager.conf, to configure you must change the last two lines with = no with = yes.
[general] displaylastsystemname = yes enabled = yes webenabled =yes
The output must be like this.
Next we will add a new user to manager.conf
[username] secret = password read = system,call,log,verbose,command,agent,user,config write = system,call,log,verbose,command,agent,user,config
Lets configure the http.conf files, remember that this is the last configuration file we need to edit to be able to run the Asterisk GUI. Your http.conf should look exactly like this and you're done...
enabled=yes enablestatic=yes bindaddr=0.0.0.0
After that run "make checkconfig" in your asterisk-gui directory. This script will check if your GUI is correctly configured.
7. Loading ztdummy and startup scripts.
Lets load the ztdummy module and add ztdummy and Asterisk to /etc/rc.local. To load ztdummy module, type this command in the console.
modprobe ztdummy
And to add ztdummy and Asterisk in startup scripts, edit the file /etc/rc.local and add the following line:
modprobe zaptel modprobe ztdummy asterisk –g
To load your Asterisk GUI, run the command "asterisk -g" in the console and point your browser to http://your-server-ip:8088/asterisk/static/config/cfgbasic.html
After you logon, you can now configure your Asterisk PBX using a nice GUI interface.


Delicious
Digg
StumbleUpon
Furl
Facebook
Twitter
Google
Yahoo
Buzz Up!
LinkedIn
Technorati



Comments
Hi all.
Who know how to install asterisk-gui to another directory.
For instance, i have installed asterisk to my directory:
/usr/local/asteriskInstalled/.
And i want to install GUI to this folder. But after make install i see that it tries copy files to /var/lib/asterisk/… (static-http and others) instead of /usr/local/asteriskInstalled/var/lib/asterisk.
I tried use options: –prefix, –exec-prefix, env var PREFIX, but they take no effetc.
thx
darn, after using the branch svn that was in the README.txt file on the trunk, and running all those commands that pass, I finally hit the asterisk gui http url that is given and I like that other person above simply get...
Nothing to see here. Move along.
what is going on? how can all of the commands pass and I don't get the gui. Also, my manager.conf on ubuntu didn't have some of those properties in the file so I added them(where the instructions say change them :( ).
any ideas,
Dean
Hello,
Super post, Need to mark it on Digg
SonyaSunny
I configure the http. conf file, but when I run make checkconfig the result is: --- Checking Asterisk configuration to see if it will support the GUI ---
* Checking for http.conf: OK
* Checking for manager.conf: OK
* Checking if HTTP is enabled: FAILED
-- Please be sure you have 'enabled = yes'
-- in /etc/asterisk/http.conf
make: *** [checkconfig] Error 1
Can someone tell me why, i dont know what to do??
Try at svn checkconfig http://svn.digium.com/svn/asterisk-gui/branches/2.0 asterisk-gui
you will be guided to another link to get high GUI version
Perhaps i can supply some additional informations:
It is running on Debian system, Asterisk 1.4.
compilation of asterisk-gui passed succesfuly,
updating of mentioned files is done,
make checkconfig yelds no error.
I passed through the instalation succesfully (i hope), but when i want to go on the page, it returns:
Not found
Nothing to see here. Move along.
----------------------------------
Asterisk Server
it seems i can connect to asterisk apache (or whatever it is) but somehow there is nothing to display.
Any suggestions?
you will be guided to another link to get high GUI version
You need to read the README.txt file. It will tell you that the location of the asterisk-gui has changed and gives you the new location. Replace the http://svn.digium.com/svn/asterisk-gui/trunk in the svn command you used with the new location and you will be able to download the asterisk-gui.
svn checkout http://svn.digium.com/svn/asterisk-gui/trunk asterisk-gui
When I am trying to install asterisk GUI with the link above in my /usr/src directory a map asterisk-gui is created but nothing else is in this map than README.txt so i can not proceed with ./configure.Could someone help me please.
Have a nice day.
Post new comment