1

我正在尝试为我的星号服务器安装/配置星号-gui(第一次,我是星号的新手)。

我已经运行了所有的 make 脚本,并且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://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

当我127.0.0.1:5038/asterisk/static/config/index.html在 Chrome 上使用时,出现错误

Asterisk Call Manager/1.1 响应:错误消息:请求中缺少操作

问题 2

当我将该行插入bindport=5038http.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.
4

1 回答 1

3

它很神秘:),问题是我指向了错误的路径。

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

这个链接有帮助。

有效 !!!

于 2013-06-03T18:04:02.713 回答