2013-06-03 23 views
0

我試圖爲我的星號服務器(第一次,我是星號上的新手)安裝/配置asterisk-guiAsterisk Call Manager/1.1響應:錯誤消息:請求中缺少動作

我已經運行了所有make腳本,並且make checkconfig返回ok。

--- 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://siddharth-desktop: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 = mysecret4942 
    read = system,call,log,verbose,command,agent,config 
    write = system,call,log,verbose,command,agent,config 

--- Good luck! --- 

內容/etc/asterisk/http.conf的

[general] 
enabled=yes 
enablestatic=yes 
bindaddr=127.0.0.1 

/etc/asterisk/manager.conf內容

[general] 
enabled=yes 
webenabled=yes 
[admin] 
    secret=<MYPASSWORD> 
    read=system,call,log,verbose,command,agent,config,read,write,originate 
    write=system,call,log,verbose,command,agent,config,read,write,originate 

port=5038 
bindaddr=127.0.0.1 

問題1

當我在Chrome上使用127.0.0.1:5038/asterisk/static/config/index.html,我收到錯誤

Asterisk的呼叫管理器/ 1.1響應:錯誤消息:請求

問題2

缺少動作當我插入行bindport=5038到的http.conf。我得到一個錯誤

未找到

所請求的URL不在此服務器上找到。

可能的問題領域

  • 用戶名:jsiddharth(如manager.conf不建議管理員),這是什麼問題?
  • 當我加載sudo asterisk -c時出現錯誤。有些模塊有問題嗎?我知道chan_mobile沒有加載,但是這不會影響gui的權利?

登錄

[Jun 3 23:23:58] NOTICE[5250]: cdr.c:1582 do_reload: CDR simple logging enabled. 
    [Jun 3 23:23:58] NOTICE[5250]: loader.c:1176 load_modules: 179 modules will be loaded. 
.[Jun 3 23:23:58] NOTICE[5250]: res_smdi.c:1418 load_module: No SMDI interfaces are available to listen on, not starting SMDI listener. 
......[Jun 3 23:23:58] WARNING[5250]: loader.c:418 load_dynamic_module: Error loading module 'res_crypto': /usr/lib/asterisk/modules/res_crypto.so: cannot open shared object file: No such file or directory 
[Jun 3 23:23:58] WARNING[5250]: loader.c:894 load_resource: Module 'res_crypto' could not be loaded. 
[Jun 3 23:23:58] WARNING[5250]: loader.c:481 load_dynamic_module: Error loading module 'chan_iax2.so': /usr/lib/asterisk/modules/chan_iax2.so: undefined symbol: ast_aes_set_encrypt_key 
[Jun 3 23:23:58] WARNING[5250]: loader.c:894 load_resource: Module 'chan_iax2.so' could not be loaded. 
[Jun 3 23:23:58] WARNING[5250]: loader.c:418 load_dynamic_module: Error loading module 'res_crypto': /usr/lib/asterisk/modules/res_crypto.so: cannot open shared object file: No such file or directory 
[Jun 3 23:23:58] WARNING[5250]: loader.c:894 load_resource: Module 'res_crypto' could not be loaded. 
[Jun 3 23:23:58] WARNING[5250]: loader.c:481 load_dynamic_module: Error loading module 'func_aes.so': /usr/lib/asterisk/modules/func_aes.so: undefined symbol: ast_aes_set_encrypt_key 
[Jun 3 23:23:58] WARNING[5250]: loader.c:894 load_resource: Module 'func_aes.so' could not be loaded. 
.......[Jun 3 23:23:58] ERROR[5250]: chan_mobile.c:4537 load_module: No Bluetooth devices found. Not loading module. 
.[Jun 3 23:23:58] NOTICE[5250]: chan_skinny.c:7260 config_load: Configuring skinny from skinny.conf 
......................................................[Jun 3 23:23:58] NOTICE[5250]: pbx_ael.c:164 pbx_load_module: Starting AEL load process. 
[Jun 3 23:23:58] NOTICE[5250]: pbx_ael.c:177 pbx_load_module: AEL load process: parsed config file name '/etc/asterisk/extensions.ael'. 
[Jun 3 23:23:58] NOTICE[5250]: pbx_ael.c:180 pbx_load_module: AEL load process: checked config file name '/etc/asterisk/extensions.ael'. 
[Jun 3 23:23:58] NOTICE[5250]: pbx_ael.c:187 pbx_load_module: AEL load process: compiled config file name '/etc/asterisk/extensions.ael'. 
[Jun 3 23:23:58] NOTICE[5250]: pbx_ael.c:192 pbx_load_module: AEL load process: merged config file name '/etc/asterisk/extensions.ael'. 
[Jun 3 23:23:58] NOTICE[5250]: pbx_ael.c:195 pbx_load_module: AEL load process: verified config file name '/etc/asterisk/extensions.ael'. 
......................................................................... -- Invalid license key! 
.. == Aliased CLI command 'hangup request' to 'channel request hangup' 
    == Aliased CLI command 'originate' to 'channel originate' 
    == Aliased CLI command 'help' to 'core show help' 
    == Aliased CLI command 'pri intense debug span' to 'pri set debug 2 span' 
    == Aliased CLI command 'reload' to 'module reload' 
.............................. ] 
Asterisk Ready. 
+0

爲什麼downvote? – Siddharth

回答

2

由於隱蔽它:),問題是我是指向了錯誤的道路。

http://-local_host-:5038/asterisk/static/config/index.html 

這裏asterisk參照設定在http.conf

;前綴=星號

有人發表了評論。所以正確的路徑應該是

http://-local_host-:5038/static/config/index.html 

然而沒有工作。所以在一個瘋狂的預感中,我完全從http.conf中移除了端口和bindaddr,並且只在manager.conf中設置了ip和端口。

[general] 
enabled=yes 
enablestatic=yes 
#bindaddr=0.0.0.0 # allow GUI to be accessible from all IP addresses. 
bindaddr=127.0.0.1 # require access from the machine Asterisk is running on 
bindport=5039 

,改變了路徑(不asterisk前綴和端口號改變)

http://-local_host-:5039/static/config/index.html 

This鏈接幫助。

它的工作!