Try to connect to Asterisk AMI using telnet, if that doesn’t work then use the netstat application to ensure Asterisk is listening on the port. If telnet does work then the problem is outside of Asterisk.
When you said try to connect to Asterisk AMI using telnet, do you mean I should login to my Asterisk server using Putty? I have not used telnet before or let me say I have no experience in it workaround. Although in my manager.conf file the port is set to 5038 which I found to be default and never changed it. Please be more lenient with me Thank you.
How do I connect it in the Asterisk server, I only run the command “module reload manager” which says it is reload successfully. Is there a command to connect on the Asterisk server?
It appears to be listening. You see nothing on the Asterisk console about a connection? And as I asked before - was the telnet on the Asterisk system, or remote?
When I did the telnet, it says connected. So I tried to run “Asterisk Call Manager”. I took a long time to give the error “Connection closed by foreign host”
Check your python config for a max execution timeout. I ran into this with a php script that would disconnect every 60 seconds. I didn’t notice because it was an upstart job.
When you telnet in, you have to run action: login {enter}, then username: user {enter}, then secret: password {enter}{enter}.
If you want to see the connects and disconnects, add this to the general section of manager.conf…
displayconnects = yes
I have done manager reload before now but it didnt fix it
I am using an Python Asterisk Manager and it has been working fine, suddenly it just stopped. I checked the config.py file but I can’t see anything on max execution time there.
Please after I do the telnet command and it says connected. Which command do I use for logging in?
I already have “displayconnects = yes” in my manager.conf file