返回列表 發帖

Installation of Asterisk-GUI on Asterisk 13.x.x

We may make use of the information in [1] to install Asterisk-GUI on Asterisk 13.x.x.

References:
[1] http://www.telecom-cafe.com/foru ... hlight=Asterisk-GUI

本帖最後由 角色 於 2014-12-20 23:31 編輯

1. Load the Asterisk-GUI
  1. svn checkout http://svn.digium.com/svn/asterisk-gui/trunk asterisk-gui
複製代碼
2. cd asterisk-gui
  1. ./configure --prefix=/opt/asterisk-13
複製代碼
3. It gives
  1. configure: creating ./config.status
  2. config.status: creating makeopts

  3.                .$$$$$$$$=..
  4.             .$7$7..          .7$7:.
  5.           .$:.                 ,$7.7
  6.         .$7.     7$$           .$77
  7.      ..$.       $$$            .$$7
  8.     ..7$   .?.   $$$   .?.       7$$.
  9.    $.$.   .$$7. $$7 .7$$.      .$$.
  10. .777.   .$$$77$$77$$$7.      $$,
  11. $$~      .7$$$$$$$7.       .$$.
  12. .$7          .7$$$$7:          ?$$.
  13. $$          ?7$$$$$I        .$$7
  14. $$       .7$$$$$$$$      :$$.
  15. $$       $$$7$$$$$$    .$$.
  16. $$        $$   7$$7  .$$    .$$.
  17. $$             $$7         .$$.
  18. 7$$7            7$$        7$$
  19. $$$                        $$
  20.   $$7.                       $  (TM)
  21.    $$$$.           .7$$$  $
  22.      $$$$$$7$$$$$.$$$
  23.        $$$$$$$$.

  24. configure: Package configured for:
  25. configure: OS type  : linux-gnu
  26. configure: Host CPU : x86_64
複製代碼
4.Edit Makefile as below:

# even though we could use '-include makeopts' here, use a wildcard
# lookup anyway, so that make won't try to build makeopts if it doesn't
# exist (other rules will force it to be built if needed)
#ifneq ($(wildcard makeopts),)
  include makeopts
#endif

DESTDIR=/opt/asterisk-13

5. Change

From:
ASTETCDIR=/opt/etc/asterisk

To:
ASTETCDIR=/opt/asterisk-13/etc/asterisk

6. Make it, it gives
  1. [/opt/source/asterisk-gui] # make
  2. +------- Asterisk-GUI Build Complete -------+
  3. + Asterisk-GUI has successfully been built, +
  4. + and can be installed by running:          +
  5. +                                           +
  6. +               make install                +
  7. +-------------------------------------------+
  8. [/opt/source/asterisk-gui] #
複製代碼
7. Install

make install

8. It gives
  1. scripts/takebackup  -->  /opt/asterisk-13/var/lib/asterisk/scripts/

  2. +---- Asterisk GUI Installation Complete ---+
  3. +                                           +
  4. +    YOU MUST READ THE SECURITY DOCUMENT    +
  5. +                                           +
  6. + Asterisk-GUI has successfully been        +
  7. + installed.                                +
  8. +                                           +
  9. +-------------------------------------------+
  10. +                                           +
  11. +          BEFORE THE GUI WILL WORK         +
  12. +                                           +
  13. + Before the GUI will run, you must perform +
  14. + some modifications to the Asterisk        +
  15. + configuration files in accordance with    +
  16. + the README file.  When done, you can      +
  17. + check your changes by doing:              +
  18. +                                           +
  19. +               make checkconfig            +
  20. +                                           +
  21. +-------------------------------------------+
  22. [/opt/source/asterisk-gui] #
複製代碼
9. Edit /opt/asterisk-13/etc/asterisk/manager.http

Change

from:
[general]
enabled = no
;webenabled = yes

to:
[general]
enabled = yes
webenabled = no

add:
[admin]
secret=admin
read=system,call,log,verbose,agent,user,config,dtmf,reporting,cdr,dialplan
write=system,call,agent,user,config,command,reporting,originate


10.

vi /opt/asterisk-13/etc/asterisk/http.conf

[general]
enabled=yes
bindaddr=0.0.0.0
prefix=asterisk
enablestatic=yes


11. make checkconfig

[/opt/source/asterisk-gui] # make checkconfig
--- 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: OK
* Checking if HTTP static support is enabled: OK
* Checking if manager is enabled: OK
* Checking if manager over HTTP is enabled: OK
--- Everything looks good ---
* GUI should be available at http://QS:8088/asterisk/static/config/index.html

* Note: If you have bindaddr=127.0.0.1 in /opt/asterisk-13/etc/asterisk/http.conf
   you will only be able to visit it from the local machine.

   Example: http://localhost:8088/asterisk/static/config/index.html

* The login and password should be an entry from /opt/asterisk-13/etc/asterisk/manager.conf
   which has 'config' permission in read and write.  For example:

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

--- Good luck! ---
[/opt/source/asterisk-gui] #


12. Restart asterisk


13. Using a browser to run the following

http://10.0.88.6:8088/asterisk/static/config/index.html

14. Stop the asterisk and then restart

15 loading ...., Checking write permission for gui folder (problem)

16 Following the previous post [1] to correct the scripts for Asterisk-GUI

TOP

本帖最後由 角色 於 2014-12-20 23:35 編輯

Using the following path to start the Asterisk-GUI
  1. http://10.0.88.6:8088/asterisk/static/config/index.html
複製代碼
using login name=admin and password=admin, it gives

1196.gif

TOP

返回列表