Asterisk test connection to AMI by telnet
AMI is enabled in asterisk manager.conf
Check from asterisk console
myaster*CLI> manager show settings
Global Settings:
----------------
Manager (AMI): Yes
Web Manager (AMI/HTTP): No
TCP Bindaddress: 127.0.0.1:5038
HTTP Timeout (seconds): 60
--- skipped ---
Connect by telnet
$ telnet localhost 5038
Trying ::1...
Connected to localhost.
Escape character is '^]'.
Asterisk Call Manager/2.10.5
Input
Press ENTER twice!
Valid result is