| 本帖最後由 角色 於 2013-10-6 00:53 編輯 
 Installation of Asterisk-GUI
 
 1. Change directory to /usr/src/asterisk.
 .
 2. Get the source of Asterisk-GUI from the source code
 .複製代碼wget http://downloads.asterisk.org/pub/telephony/asterisk-gui/asterisk-gui-2.1.0-rc1.tar.gz
.
 3. Unzip and untar
 .複製代碼tar xvf ./asterisk-gui-2.1.0-rc1.tar.gz
.
 4. Change directory to asterisk-gui-2.1.0-rc1
 .複製代碼cd asterisk-gui-2.1.0-rc1/
.
 5. Configure the Asteris-GUI.
 .
 It gives
 .複製代碼               .$=..
            .$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 : armv6l
root@raspberrypi:/usr/src/asterisk/asterisk-gui-2.1.0-rc1#
.
 6. Make.
 .
 It gives
 .複製代碼root@raspberrypi:/usr/src/asterisk/asterisk-gui-2.1.0-rc1# make
 +------- Asterisk-GUI Build Complete -------+
 + Asterisk-GUI has successfully been built, +
 + and can be installed by running:          +
 +                                           +
 +               make install                +
 +-------------------------------------------+
root@raspberrypi:/usr/src/asterisk/asterisk-gui-2.1.0-rc1#
.
 7. make install
 .複製代碼make install
[code].
.
It gives
[code]
 +---- 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            +
 +                                           +
 +-------------------------------------------+
root@raspberrypi:/usr/src/asterisk/asterisk-gui-2.1.0-rc1
.
 8. Change directory.
 .
 9. Edit /etc/asterisk/manager.conf
 .複製代碼[general]
enabled = yes
webenabled = yes
port = 8088
bindaddr = 0.0.0.0
[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. Edit /etc/asterisk/http.conf
 .複製代碼[general]
redirect = / /asterisk/static/config/index.html
enabled=yes
bindaddr=0.0.0.0
prefix=asterisk
enablestatic=yes
.
 11. Change directory
 .複製代碼cd /usr/src/asterisk/asterisk-gui-2.1.0-rc1
.
 12. Check whether the previous modification works
 複製代碼root@raspberrypi:/usr/src/asterisk/asterisk-gui-2.1.0-rc1# 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://raspberrypi:8088/asterisk/static/config/index.html
 * Note: If you have bindaddr=127.0.0.1 in /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 /etc/asterisk/manager.conf
   which has 'config' permission in read and write.  For example:
    [admin]
    secret = mysecret3152
    read = system,call,log,verbose,command,agent,config
    write = system,call,log,verbose,command,agent,config
 --- Good luck! ---
root@raspberrypi:/usr/src/asterisk/asterisk-gui-2.1.0-rc1#
 |