我试图通过命令 telnet 0.0.0.0 5038 捕获星号管理器(AMI)中的一些事件日志,如下图所示,但没有任何内容出现。
[root@localhost vagrant]# telnet 0.0.0.0 5038 Trying 0.0.0.0... Connected to 0.0.0.0. Escape character is '^]'. Asterisk Call Manager/1.3
在Asterisk CLI中,管理器的连接出现(图片如下)。
[root@localhost vagrant]# asterisk -vvvvvvvvvvvvvvvvr Asterisk 11.11.0, Copyright (C) 1999 - 2013 Digium, Inc. and others. Created by Mark Spencer Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details. This is free software, with components licensed under the GNU General Public License version 2 and other licenses; you are welcome to redistribute it under certain conditions. Type 'core show license' for details. ========================================================================= Connected to Asterisk 11.11.0 currently running on localhost (pid = 3896) localhost*CLI> == Manager 'teste' logged on from 192.168.56.101 == Manager 'teste' logged on from 192.168.56.101 == Manager 'teste' logged off from 192.168.56.101 == Manager 'teste' logged off from 192.168.56.101
我的netstat:
tcp 0 0 0.0.0.0:5038 0.0.0.0:* OUÇA 3896/asterisk
[general] enabled=yes webenabled=yes port=5038 bindaddr=0.0.0.0 debug=on authlimit=500000 [teste] secret=test123 read=all,system,call,log,verbose,command,agent,user,config write=all,system,call,log,verbose,command,agent,user,config writetimeout=9999 displayconnects=yes
答案 0 :(得分:0)
我的错:/我忘了登录telnet。
输入telnet:
action:login username:teste secret:teste123
......很高兴去。 :)
答案 1 :(得分:0)
telnet 127.0.0.1 5038
在这里, telnet:telnet应用程序的命令 127.0.0.1:星号的主机 5038:默认的ami端口 然后您可以看到ami命令行界面和安装的星号版本。.
键入以下内容以登录到您的AMI管理器会话
Action: login
Username:amiuname
Password: amilwd
在“ manager.conf”中显示了amiuname和amipwd。