本帖最後由 角色 於 2013-9-15 10:16 編輯
Asterisk-GUI安装- ## Install Asterisk GUI
- cd /usr/src/asterisk
- svn checkout http://svn.digium.com/svn/asterisk-gui/branches/2.0/ gui
- cd gui
- ./configure
- make
- make install
複製代碼 下载source code,然后make,如果成功,大家可以看到:- .$=..
- .$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/gui#
複製代碼 make install- +---- 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 +
- + +
- +-------------------------------------------+
複製代碼 我们先用make checkconfig,看看在没有修改前是有什么messages?- root@raspberrypi:/usr/src/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: FAILED
- -- Please be sure you have 'enabled = yes'
- -- in /etc/asterisk/http.conf
- make: *** [checkconfig] Error 1
複製代碼 有error message,怎样去修改呢?然后修改 /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
複製代碼 edit /etc/asterisk/http.conf- [general]
- redirect = / /asterisk/static/config/index.html
- enabled=yes
- bindaddr=0.0.0.0
- prefix=asterisk
- enablestatic=yes
複製代碼 然后cd /usr/src/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://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 = mysecret3583
- read = system,call,log,verbose,command,agent,config
- write = system,call,log,verbose,command,agent,config
- --- Good luck! ---
- root@raspberrypi:/usr/src/asterisk/gui#
複製代碼 |