【问题标题】:Asterisk Call Manager/1.1 Response: Error Message: Missing action in requestAsterisk Call Manager/1.1 响应:错误消息:请求中缺少操作
【发布时间】:2013-08-21 13:14:40
【问题描述】:

我正在尝试为我的星号服务器安装/配置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 时。我收到一个错误

找不到

在此服务器上找不到请求的 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.

【问题讨论】:

    标签: asterisk


    【解决方案1】:

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

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

    这里asterisk指的是http.conf中的设置

    ;前缀=星号

    评论了。所以正确的路径其实应该是

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

    但没有奏效。于是,凭着疯狂的预感,我从 http.conf 中彻底删除了 port 和 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 链接帮助。

    成功了!!!

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2016-06-05
      相关资源
      最近更新 更多