Hi,
I’m starting with Asterisk.
I want to use the AMI, but when I try to connect to Asterisk this message appear at the CLI:
Connect attempt from ‘127.0.0.1’ unable to authenticate
This is my configuration file:
manager.conf
[general]
enabled = yes
port = 5038
bindaddr = 0.0.0.0
[myUser]
secret = myUserPass
read = system,call,log,verbose,command,agent,config,user
write = system,call,log,verbose,command,agent,config,user
displayconnects = yes
And this is the what I’m doing to connect to the asterisk, I’m using Python to connect to asterisk:
#!/usr/bin/python
import socket
socket_s=socket.socket()
socket_s.connect((“127.0.0.1”,5038))
message='Action: Login\nUsername: steps\nSecret: steps3100\nEvents: off\n’
socket_s.send(message)
receivedMessage=socket_s.recv(1024)