[asterisk-users] Tell apart between network disruption and asterisk restart via AMI

2012-10-19 Thread Alex Villací­s Lasso
I have a program that connects to the Asterisk Manager Interface through port 5038 on a remote machine. Suppose I get a TCP disconnection on my program. The program will then attempt to reconnect to the AMI and will eventually succeed. Is there a way to check whether the disconnection was caused

Re: [asterisk-users] Tell apart between network disruption and asterisk restart via AMI

2012-10-19 Thread Jim Dickenson
From AMI you can get uptime. If the uptime is short likely Asterisk restarted. -- Jim Dickenson mailto:dicken...@cfmc.com CfMC http://www.cfmc.com/ On Oct 19, 2012, at 10:31 AM, Alex Villací­s Lasso wrote: I have a program that connects to the Asterisk Manager Interface through port 5038

Re: [asterisk-users] Tell apart between network disruption and asterisk restart via AMI

2012-10-19 Thread Christopher Harrington
On Fri, Oct 19, 2012 at 12:31 PM, Alex Villací­s Lasso a_villa...@palosanto.com wrote: I have a program that connects to the Asterisk Manager Interface through port 5038 on a remote machine. Suppose I get a TCP disconnection on my program. The program will then attempt to reconnect to the AMI