1 May 2008 18 Comments

Setting up asterisk-gui on Ubuntu

Tonight I had a go at installing Digium’s asterisk-gui. I followed some instructions from Asterisk Guru, but then had to apply a fix at the end because the static-http folder was in the wrong place.

Installation Instructions

Download the asterisk-gui source code from SVN:

mkdir -p ~/downloads/asterisk-gui
cd ~/downloads/asterisk-gui
svn checkout http://svn.digium.com/svn/asterisk-gui/trunk .

Compile the source code:

./configure
./make
./make install

Backup your asterisk config:

cp -r /etc/asterisk /etc/asterisk.backup

Install the sample settings if you wish (this adds things like a list of VOIP providers to use as a PSTN gateway).

./make samples

Edit /etc/asterisk/manager.conf to enable the web management interface and to add a user:

enabled = yes
webenabled = yes
[administrator]
secret = YoUrPaSwOrD
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:

./make checkconfig

I then had to do an additional step to link the static http scripts folder to inside /usr/share/asterisk as it seems asterisk was looking in here instead of /var/lib/asterisk/

sudo ln -s /var/lib/asterisk/static-http/ /usr/share/asterisk/

After that you should be able to login to the control panel at http://127.0.0.1:8088/asterisk/static/config/cfgbasic.html (replacing the IP address with whichever one you chose).

18 Responses to “Setting up asterisk-gui on Ubuntu”

  1. Robert Ndlovu 29 July 2008 at 6:51 am #

    paul I followed your notes and this is what got

    Not Found

    Nothing to see here. Move along.
    Asterisk Server

    Am running edubuntu

  2. Steve Godfrey 3 September 2008 at 9:02 pm #

    Thanks for the instructions. Unfortunately the URL is broken

    steve@M:~/downloads/asterisk-gui$ svn checkout http://svn.digium.com/svn/asterisk-gui/trunk .
    svn: URL \’http://svn.digium.com/svn/asterisk-gui/trunk\’ doesn\’t exist

  3. Paul Maunders 3 September 2008 at 10:30 pm #

    Hmm… it looks like they have removed the trunk. You could try a different repository url such as:
    http://svn.digium.com/svn/asterisk-gui/branches/2.0/

  4. Fred Young 24 October 2008 at 1:13 am #

    I don’t have the ’svn’ command on my system. What package would I install to get it?

  5. Paul Maunders 25 October 2008 at 9:25 pm #

    To install the svn command, simply install the subversion package…

    sudo apt-get install subversion

  6. Scott Mutterer 28 October 2008 at 2:15 am #

    I am stumped as to how to get the HTTP service running. I am running a port scan from my mac and though make checkconfig says all is fine, no ports on my new ubuntu server are listing. Running Asterisk 1.6.01 and installed GUI 2.0. Anyone have any thoughts?

  7. Shailen Karur 10 February 2009 at 11:25 pm #

    I too get a 404 page:


    Not Found

    Nothing to see here. Move along.
    Asterisk Server

    This is after I restarted the asterisk server with an attached console

    Using Ubuntu 8.04 64 bit, asterisk 1.4.17

  8. Sigmaz 13 February 2009 at 12:08 am #

    Same problem here.. I have reinstalled several times assumingI did somthing wrong..

    I keep getting nothing to see here too..

    WTF.

    thats with 1.4x and 1.6x
    Please help

  9. dias 19 February 2009 at 8:45 am #

    i have success install asterisk and asterisk gui (asterisk-1.6.0.5 and asterisk-gui-2-1), and succes for access it via web but i cannot login with error:

    Verifying Dialplan contexts needed for gui

    I running on slackware 12.1

    thank’s

    dias

  10. eli 11 March 2009 at 4:52 am #

    figured out the lame ‘nothing to see error’
    create a symbolic link to /usr/share/asterisk/static-http

  11. Ashley 16 March 2009 at 12:36 pm #

    Eli,

    Where did you put your symbolic link to?

    Ashley

  12. Tja 20 April 2009 at 5:45 pm #

    On ubuntu it seems to be an empty folder that blocks the creation of the symbolic link. I run this three command to remove the folder (since its empty), create the link and restart asterisk.

    rm -rf /usr/share/asterisk/static-http/
    ln -s /var/lib/asterisk/static-http/ /usr/share/asterisk/
    /etc/init.d/asterisk restart

  13. catface 11 July 2009 at 10:38 pm #

    Tja, nice, thank you, good commands. Fixed the timeout and 404 errors for me perfectly :)

  14. sam 20 July 2009 at 10:23 am #

    “install” file is not created,
    when i tried “make install” , there is no file install… ??? pls help

  15. Eberx 31 July 2009 at 6:15 am #

    how do i define location of static-http folder ?

  16. Pierre Brico 20 August 2009 at 1:52 pm #

    Hello.

    Thanks for your procedure. I just would like to add that after finishing the procedure, I always had the messge “Checking write permission for gui folder” and the system hangs.
    Searching a little with command “strace” I found that the origin of the problem was that the directory /var/lib/asterisk/static-http was owned by root and that the user asterix could not write in. Fixing it solves my issue.

    Pierre

  17. schneemie 6 January 2010 at 4:59 pm #

    Thanks Tja

    rm -rf /usr/share/asterisk/static-http/
    ln -s /var/lib/asterisk/static-http/ /usr/share/asterisk/
    /etc/init.d/asterisk restart

  18. Vlad 14 January 2010 at 4:05 am #

    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


Leave a Reply