本帖最後由 角色 於 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#
複製代碼 |