On Fri, Oct 19, 2012 at 12:31 PM, Alex Villacís Lasso <span dir="ltr"><<a href="mailto:a_villacis@palosanto.com" target="_blank">a_villacis@palosanto.com</a>></span> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
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 by a network disruption, or an Astersk restart/crash? In other words, is the Asterisk process I contacted now the same as the one I was connected before, or is it a different one? The reason I want to know is that I have a cache of information that is costly to parse (scales linearly with the number of extensions) and I want to know how to realize that the information is now stale.<br>
<br></blockquote><div><br></div><div>In the CLI, you can run `core show settings` which will tell you the startup time of the server.</div><div><br></div><div><br></div></div>-- <br>-Chris Harrington<br><div>ACSDi Office: 763.559.5800</div>
<div><div>Mobile Phone: 612.326.4248</div></div><div><br></div><br>