• Asterisk is a complete open source software-based IP PBX solution that runs on a variety of platforms. It supports VOIP in several protocols, and can seamlessly integrate with almost any standards-based telephony equipment using relatively inexpensive hardware.

    This guide is a quick-start set of notes that should help you get the Asterisk service up and running with the web-based graphical user interface. Much of this was taken from the various README files that come with the software download, but I thought it would be nice to have the directions all in one place so that I don’t have to search for them in the future. I did this on a new RHEL 5 install. I would imagine that the same procedure should work on most Linux distributions.

    Configuration and implementation of Asterisk is fairly complex and is beyond the scope of this document. I should also say this this guide does not include directions for installing and configuring other Asterisk related software that is required to integrate with telephony equipment.

    Enough disclaimers… Let’s get started.

    • Download the latest source package of Asterisk, untar it and CD into the newly created directory.
    • Run “make
    • Run “make install
    • Run”make samples” (Doing this will overwrite any existing config files you have, so don’t do it if you are upgrading or something like that)
    • Run “make config” (This creates the `/etc/rc.d/init.d/asterisk’ file so you can crontroll the
    • asterisk service with chkconfig and service.)

    You are now done installing Asterisk. Now let’s install the GUI.

    • Download the latest source package of the Asterisk GUI client, untar it and CD into the newly created directory.
    • Run “make
    • Run “make install
    • Run “make samples” This installs the sample configuration files. Again, don’t do this if you are upgrading because it will overwrite your existing files.

    Now let’s configure it.

    You need to edit a few Asterisk configuration files to enable the GUI

    1) In /etc/asterisk/http.conf:

            [general]
            enabled = yes
            enablestatic = yes
            bindaddr=xxx.xxx.xxx.xxx (The IP address of your Asterisk server)
    


    2) In /etc/asterisk/manager.conf

            [general]
            enabled = yes
            webenabled = yes
    


    3) Create an appropriate entry in manager.conf for the administrative user

            [admin]
            secret = YourFavoritePassword
            read = system,call,log,verbose,command,agent,config
            write = system,call,log,verbose,command,agent,config
    


    4) Run “make checkconfig

    Look for the following lines… They will tell you how to get to your GUI.

      * GUI should be available at
      * http://xxx.xxx.xxx.xxx:8088/asterisk/static/config/cfgbasic.html
    
      * Before using the GUI, Please visit the install page at
      * http://xxx.xxx.xxx.xxx:8088/asterisk/static/config/setup/install.html
    


    5) We should be all set Let’s start or restart asterisk:

    Run “/sbin/service asterisk restart

    6) Lastly, grab a web browser and go to your install page. It should look something like this:

    http://xxx.xxx.xxx.xxx:8088/asterisk/static/config/setup/install.html

    Configure it up and have fun with your new Asterisk server.

    This entry was posted on Wednesday, June 20th, 2007 at 11:43 am and is filed under Data and Technology. You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.
  • 4 Comments

    Take a look at some of the responses we've had to this article.

    1. Ryan
      Oct 30th
      Reply

      I have 2 questions

      1)

      In /etc/asterisk/http.conf:

      [general]
      enabled = yes
      enablestatic = yes
      bindaddr=xxx.xxx.xxx.xxx (The IP address of your Asterisk server)

      The ip address of asterisk server is determined by my ip address from ifconfig or?

      2)

      Run “make checkconfig“

      Look for the following lines… They will tell you how to get to your GUI.

      * GUI should be available at
      * http://xxx.xxx.xxx.xxx:8088/asterisk/static/config/cfgbasic.html

      * Before using the GUI, Please visit the install page at
      * http://xxx.xxx.xxx.xxx:8088/asterisk/static/config/setup/install.html

      I cant enter the localhost GUI, please entertain me on what factors affect me to enter the GUI

      • Oct 30th
        Reply

        1) Yes… Use the address you get from ifconfig.
        2) I’m not sure I understand your question. You will probably want to go to the address you entered in “bindaddr” rather than localhost or 127.0.0.1 or whatever you have been using. Secondly, lots of things can affect your ability to enter the GUI. Where are you getting stuck specifically?

    2. Ryan
      Nov 1st
      Reply

      I’m stuck at the part of installing GUI.

      In /etc/asterisk/http.conf:

      [general]
      enabled = yes
      enablestatic = yes
      bindaddr=xxx.xxx.xxx.xxx (The IP address of your Asterisk server)

      I have uncommented this part and changed bindaddr to my ifconfig’s ip address.

      when accessing from the url, it says

      Network Error (tcp_error)

      A communication error occurred: “Operation timed out”
      The Web Server may be down, too busy, or experiencing other problems preventing it from responding to requests. You may wish to try again at a later time.

      For assistance, contact your network support team.

      Please give me guidiance, thanks

    3. g
      Dec 13th
      Reply

      can i do shell_exec(“asterisk -r”) from php in apache ??seem like it’s not working.

  • Leave a Reply

    Let us know what you thought.

  • Name (required):

    Email (required):

    Website:

    Message:

Visitors have tagged this post: t (191) - asterisk gui manual (165) - asterisk quick start (163) - asterisknow howto (88) - asterisk manual (87) - asterisk rapidshare (81) - how to start asterisk (76) - how to start asterisk GUI (76) - asterisknow manual (74) - asterisk gui guide (74) - restart asterisk (61) - start asterisk (61) - start asterisk gui (60) - Asterisk GUI rpm (57) - asterisk quickstart (55) - asterisk rhel5 (46) - asterisk gui howto (41) - restart asterisk service (38) - asterisk-gui manual (37) - asterisk restart (36) - asterisk quick start guide (34) - Configuration Guide for Asterisk PBX (34) - starting asterisk gui (34) - asterisk-gui rpm (33) - asterisk start (31) - rapidshare asterisk (30) - rhel5 asterisk (28) - asterisk quick (28) - Configuration Guide for Asterisk PBX rapidshare (28) - asterisk (27) - asterisk quick guide (27) - asterisk gui user guide (27) - asterisk-gui download (26) - asterisk gui download (25) - asterisk rpm rhel5 (24) - asterisknow setup guide (23) - how to restart asterisk (22) - Asterisk GUI user manual (22) - download asterisk gui (21) - asterisknow guide (21) - asterisk rhel (21) - "Configuration Guide for Asterisk PBX " rapidshare (20) - manual asterisk gui (19) - Asterisk Configuration Guide (18) - start asterisk-gui (18) - asterisk now (18) - asterisknow quick start (18) - asterisk quick setup (18) - start asterisk server (17) - how to start asterisk service (17) - asterisk user guide (17) - asterisknow quickstart (17) - f (17) - asterisks now (17) - asterisk webservice (17) - how to start asterisk server (16) - asterisk gui start (16) - asterisknow configuration guide (16) - asterisk guide (15) - asterisk rpm download (15) - asterisk 8088 (15) - asterisk now guide (14) - howto start asterisk (14) - download asterisk-gui (14) - asterisknow restart (14) - "Asterisk Configuration Guide " rapidshare (13) - asterisk rhel5 rpm (13) - restart asterisk command (13) - restart asterisk gui (13) - asterisk-gui guide (13) - asterisk quick howto (12) - asterisk service restart (12) - configuration guide for asterisk pbx download (12) - restart asterisk server (11) - Asterisk Configuration Guide download (11) - asterisk quick configuration (11) - Asterisk now manual (11) - asterisk how to start (11) - asterisk on RHEL (11) - asterisknow start gui (11) - rhel 5 asterisk (10) - download asterisk RPM (10) - asterisk now gui (10) - asterisk-gui user guide (10) - Asterisk gui configuration guide (10) - command to start asterisk (10) - service asterisk restart (10) - Asterisk Configuration Guide rapidshare (10) - asterisk installation on red hat enterprise 5 (10) - download asterisk configuration guide (9) - start Asterisk Manager (9) - howto restart asterisk (9) - asterisk on rhel5 (9) - asterisk RHEL4 (9) - asterisk start gui (9) - Configuration Guide for Asterisk PBX pdf (9) - how to start asterisknow gui (9) - how to restart asterisk service (9) - asterisk user manual (9) - install asterisk on RHEL (9) - asterisk-gui howto (9) - manual asterisk-gui (9) - start asterisknow gui (9) - asterisk static agent (8) - start asterisk command (8) - quick asterisk (8) - asterisknow quick start guide (8) - asterisk restart service (8) - Asterisk RHEL 5 (8) - asterisknow restart asterisk (8) - how to start asteriskNOW (8) - rhel asterisk (8) - how to start asterisk manager (7) - asterisk gui guide (7) - quick setup asterisk (7) - "asterisk" rapidshare (7) - rapidshare asterisk configuration guide (7) - quick start asterisk (7) - reboot asterisk (7) - start asterisk web server (7) - asterisk for rhel5 (7) - asterisknow configuration (7) - asterisk gui configuration (7) - asterisk configuration guide pdf (7) - how to start with Asterisk (7) - asteriskgui manual (7) - how to install asterisk server on RHEL5 (7) - asterisk + RHEL (6) - asterisk gui mysql (6) - asterisknow installation guide (6) - rapidshare Configuration Guide for Asterisk PBX (6) - asterisk configuration on rhel4 (6) - start asterisk linux (6) - how to install asterisk on rhel (6) - asterisk-gui installation guide (6) - download Configuration Guide for Asterisk PBX (6) - manual asterisk (6) - manual for asterisk gui (6) - asterisknow rpm (6) - asterisk gui (5) - asterisk chkconfig (5) - asterisk quickstart guide (5) - asterisk@now configuration guide (5) - "asterisk now" config (5) - asterisk now configuration (5) - asterisk now quickstart (5) - asterisk solaris howto (5) - asterisk now quickstart guide (5) - asterisk gui client (5) - how to restart asterisk server (5) -