Hello,
I am trying to connect to Asterisk AMI through telnet to execute AMI tags.
I can successfully conect to AMI Call Manager through telnet. But, whenever i try to excute
the Tags (Ex., Action: Login) after some time the Telnet Session will terminate with the message
“Connection closed by foreign host.” attached is the screenshot.I am connecting to AMI using
telnet on localhost.
My manager.conf file and http.conf are very simple as below.
manager.conf
[general]
enabled = yes
webenabled = yes
bindaddr = 127.0.0.1
[hello]
secret=world
http.conf
[general]
enabled = yes
bindaddr = 127.0.0.1
I also modified the manager.conf and http.conf following the suggetion mentioned in the following thread but the result are the same. Every time i exceute the tags telnet throughs “Connection closed by foreign host.”
However, AMI works fine with HTTP Connection. But, i need to connect to AMI through TCP as i need this feature for performing conference with AMI using ConfBridge.
Looking forward for possible solution and suggestions.
Thanks & Regards,
Anand