Asterisk manager disconnected frequently

Hi,

We are running Asterisk 1.4.42 on a Ubuntu server, we integrated a third party call reporting software. The connect gets lost while the third party software is retrieving the call data from the asterisk server. This happens particularly when a call is made on the asterisk server. The manager connection is restored on the third party software after few seconds. This is happening randomly whereby most of the call data is missed due to the disconnection

/etc/asterisk/manager.conf is having the setting as below
[AMI_USERNAME]
secret = AMI_PASSWORD
deny = 0.0.0.0/0.0.0.0
permit = 127.0.0.1/255.255.255.255
permit = Third party software IP address
read = call
write =

Please advice how to fix this issue.

Regards
Siva

What error message to you get?

Subject to the answer to the above, I would try increasing writetimeout.

Why are you using AMI to do bulk transfers?

1 Like

Thanks for the response,

We are getting error as “host lost” in the third party software and in the asterisk CLI when we use " show manager connected" command we found the connection to the third party software IP was disconnected for few seconds.

The below logs is taken in the asterisk CLI , whereby the connection to the third party IP has been disconnected when we made a call,

ianCLI> show manager connected
Username IP Address
amt123 85.xxx.xxx.xxx
admin 127.0.0.1
ian
CLI> show manager connected
Username IP Address
admin 127.0.0.1
ian*CLI> show manager connected
Username IP Address
amt123 85.xxx.xxx.xxx
admin 127.0.0.1

Thanks in advance
Regards
Siva

You don’t have enough verbosity set to see anything useful in the logs. I’m trying to work out whether the connection is dropped because the third party software is not reading fast enough or because the third party software initiated the connection release, itself.

A savior!! Still helpful after 3 years.

Highly appreciated.