我正在尝试为我的星号服务器安装/配置asterisk-gui(第一次,我是星号上的新手)。
我已经运行了所有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 Call Manager / 1.1响应:错误消息:请求中缺少操作
问题2
当我将行bindport=5038
插入http.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 :(得分: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和port。
[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链接有帮助。
有效!!!