Hello, I am trying to log AMI for get details about queue etc. But I can’t login it.
This is my manager.conf code
root@dms:/etc/asterisk# cat manager.conf
[general]
enabled=yes
port=5038
bindaddr=0.0.0.0
displayconnects=yes ;only effects 1.6+
[admin]
secret = abc123
deny=0.0.0.0/0.0.0.0
permit=127.0.0.1/255.255.255.0
read = system,call,log,verbose,command,agent,user,originate
write = system,call,log,verbose,command,agent,user,originate
This is my port listen status
root@dms:/etc/asterisk# netstat -lna | grep 5038
tcp 0 0 0.0.0.0:5038 0.0.0.0:* LISTEN
This is my telnet status from I did it from server which has to install the asterisk
root@dms:~# telnet localhost 5038
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
Asterisk Call Manager/7.0.1
Action: login
Username: testuser
Secret: 12345678
Connection closed by foreign host.
How fix this issue? I can’t connect AMI. because it give connection closed by foreign host error. how fix this???
jcolp
2
If your manager.conf is the entire file… then there is no “testuser” account. There is only “admin”.
Sorry, There was a my mistake, this is new file configurations
This is my manager.conf code
root@dms:/etc/asterisk# cat manager.conf
[general]
enabled=yes
port=5038
bindaddr=0.0.0.0
displayconnects=yes ;only effects 1.6+
[admin]
secret = abc123
deny=0.0.0.0/0.0.0.0
permit=127.0.0.1/255.255.255.0
read = system,call,log,verbose,command,agent,user,originate
write = system,call,log,verbose,command,agent,user,originate
This is my port listen status
root@dms:/etc/asterisk# netstat -lna | grep 5038
tcp 0 0 0.0.0.0:5038 0.0.0.0:* LISTEN
This is my telnet status from I did it from server which has to install the asterisk
root@dms:/etc/asterisk# telnet localhost 5038
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
Asterisk Call Manager/9.0.0
Action: login
Username: admin
Secret: abc123
Connection closed by foreign host.
How fix this issue? I can’t connect AMI. because it give connection closed by foreign host error. how fix this???
You don’t appear to have terminated the request. You need two newlines at the end of a request.
system
Closed
5
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.