| 本帖最後由 角色 於 2014-12-20 23:31 編輯 
 1. Load the Asterisk-GUI
 2. cd asterisk-gui複製代碼svn checkout http://svn.digium.com/svn/asterisk-gui/trunk asterisk-gui
3. It gives複製代碼./configure --prefix=/opt/asterisk-13
4.Edit Makefile as below:複製代碼configure: creating ./config.status
config.status: creating makeopts
               .$$$$$$$$=..
            .$7$7..          .7$7:.
          .$:.                 ,$7.7
        .$7.     7$$           .$77
     ..$.       $$$            .$$7
    ..7$   .?.   $$$   .?.       7$$.
   $.$.   .$$7. $$7 .7$$.      .$$.
 .777.   .$$$77$$77$$$7.      $$,
 $$~      .7$$$$$$$7.       .$$.
.$7          .7$$$$7:          ?$$.
$$          ?7$$$$$I        .$$7
$$       .7$$$$$$$$      :$$.
$$       $$$7$$$$$$    .$$.
$$        $$   7$$7  .$$    .$$.
$$             $$7         .$$.
7$$7            7$$        7$$
 $$$                        $$
  $$7.                       $  (TM)
   $$$$.           .7$$$  $
     $$$$$$7$$$$$.$$$
       $$$$$$$$.
configure: Package configured for:
configure: OS type  : linux-gnu
configure: Host CPU : x86_64
 # 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
 7. Install複製代碼[/opt/source/asterisk-gui] # make
 +------- Asterisk-GUI Build Complete -------+
 + Asterisk-GUI has successfully been built, +
 + and can be installed by running:          +
 +                                           +
 +               make install                +
 +-------------------------------------------+
[/opt/source/asterisk-gui] #
 make install
 
 8. It gives
 9. Edit /opt/asterisk-13/etc/asterisk/manager.http複製代碼scripts/takebackup  -->  /opt/asterisk-13/var/lib/asterisk/scripts/
 +---- Asterisk GUI Installation Complete ---+
 +                                           +
 +    YOU MUST READ THE SECURITY DOCUMENT    +
 +                                           +
 + Asterisk-GUI has successfully been        +
 + installed.                                +
 +                                           +
 +-------------------------------------------+
 +                                           +
 +          BEFORE THE GUI WILL WORK         +
 +                                           +
 + Before the GUI will run, you must perform +
 + some modifications to the Asterisk        +
 + configuration files in accordance with    +
 + the README file.  When done, you can      +
 + check your changes by doing:              +
 +                                           +
 +               make checkconfig            +
 +                                           +
 +-------------------------------------------+
[/opt/source/asterisk-gui] #
 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
 |