Monday, 13 February 2012

Installing Asterisk GUI on Ubuntu 11.04





Installing Asterisk GUI on Ubuntu 11.04
Ok so this is a basic install of asterisk GUI for Ubuntu 11.04
What you'll need already is asterisk installed, as was covered in a different post
Right here goes:

Download the asterisk-gui source code from SVN:

Login as root:
sudo su root
mkdir -p ~/downloads/asterisk-gui
cd ~/downloads/asterisk-gui
svn checkout http://svn.digium.com/svn/asterisk-gui/trunk


Compile the source code:
cd trunk
./configure
make
make install

Backup your asterisk config:
cp -r /etc/asterisk /etc/asterisk.backup
Just in case we fuck it up!!

Sample settings install (quick setup for testing)
make samples

Edit /etc/asterisk/manager.conf to enable the web management interface and to add a user:
enabled = yes 
webenabled = yes 
[administrator] secret = what-ever-password-you-want 
read = system,call,log,verbose,command,agent,user,config 
write = system,call,log,verbose,command,agent,user,config 

Edit /etc/asterisk/http.conf to enable asterisk’s mini webserver.
If you are accessing from your local machine use 127.0.0.1 otherwise you might want to bind to a public ip, but be aware this is less secure.
enabled=yes 
enablestatic=yes 
bindaddr=127.0.0.1

Run make checkconfig to verify your configuration settings:
cd ~/downloads/asterisk-gui/trunk
make checkconfig


Create a folder in this place(if it doesnt exist) as asterisk looks for this as default and link it 
cd /usr/share/
mkdir asterisk sudo ln -s /var/lib/asterisk/static-http/ /usr/share/asterisk/
Fire up that sucker in a web-browser(persuming it's already running)
a Reload is also required 
asterisk -vvvvvr this gives the debugging output aswell
asterisk -r no debugging output
Most tutorials point to http://127.0.0.1:8088/asterisk/static/config/cfgbasic.html 
But for me it was: http://127.0.0.1:8088/cfgbasic.html
User name is what we defined in the asterisk-setup tutorial First time startup, it will ask for restart and update files automatically so a login is required again.
Once that is done then you should be looking at the GUI !







2 comments:

  1. hello i dont really understand what you were trying to say at the last part of the tutorial can u please elaborate.

    ReplyDelete
    Replies
    1. Ok so m grammar probably isn't the best-heres the steps at the end again but clearer. hope this helps!new steps are called NEW

      1.Create a folder in this place(if it doesnt exist) as asterisk looks for this as default and link it
      cd /usr/share/

      NEW 1.create a folder in /usr/share
      and then add a link
      mkdir asterisk sudo ln -s /var/lib/asterisk/static-http/ /usr/share/asterisk/


      2.Fire up that sucker in a web-browser(persuming it's already running)
      a Reload is also required
      asterisk -vvvvvr this gives the debugging output aswell
      asterisk -r no debugging output

      NEW 2.Reload asterisk using asterisk -vvvvvr (look for errors)

      3.Most tutorials point to http://127.0.0.1:8088/asterisk/static/config/cfgbasic.html
      But for me it was: http://127.0.0.1:8088/cfgbasic.html

      NEW 3.Open a browser and enter address http://127.0.0.1:8088/asterisk/static/config/cfgbasic.html or
      http://127.0.0.1:8088/cfgbasic.html


      4.User name is what we defined in the asterisk-setup tutorial First time startup, it will ask for restart and update files automatically so a login is required again.
      Once that is done then you should be looking at the GUI !

      NEW 4.enter username and password as defined earlier in this tutorial

      Delete