<div dir="ltr">thanks for the reply</div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Nov 12, 2014 at 8:03 PM, Matthew Jordan <span dir="ltr"><<a href="mailto:mjordan@digium.com" target="_blank">mjordan@digium.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">On Tue, Nov 11, 2014 at 1:43 PM, Israel Gottlieb <<a href="mailto:isrlgb@gmail.com">isrlgb@gmail.com</a>> wrote:<br>
> well it should but this morning my database hosted at a remote location was<br>
> down due to conditions at the remote site<br>
><br>
> the question isnt if it should happen or not<br>
><br>
> the questions is there a way for me to know that the odbc query retruned<br>
> empty because of a connection timeout?<br>
><br>
> in curl i could get that info is there a way also for odbc?<br>
><br>
<br>
</span>To just answer your question:<br>
<br>
No, there is no channel variable for this, nor anything in Asterisk<br>
that does this automatically.<br>
<br>
You would need to have something else monitoring your databases, and<br>
use it to inform Asterisk of the failure.<br>
<span class="HOEnZb"><font color="#888888"><br>
--<br>
Matthew Jordan<br>
Digium, Inc. | Engineering Manager<br>
445 Jan Davis Drive NW - Huntsville, AL 35806 - USA<br>
Check us out at: <a href="http://digium.com" target="_blank">http://digium.com</a> & <a href="http://asterisk.org" target="_blank">http://asterisk.org</a><br>
</font></span><div class="HOEnZb"><div class="h5"><br>
--<br>
_____________________________________________________________________<br>
-- Bandwidth and Colocation Provided by <a href="http://www.api-digital.com" target="_blank">http://www.api-digital.com</a> --<br>
New to Asterisk? Join us for a live introductory webinar every Thurs:<br>
<a href="http://www.asterisk.org/hello" target="_blank">http://www.asterisk.org/hello</a><br>
<br>
asterisk-users mailing list<br>
To UNSUBSCRIBE or update options visit:<br>
<a href="http://lists.digium.com/mailman/listinfo/asterisk-users" target="_blank">http://lists.digium.com/mailman/listinfo/asterisk-users</a><br>
</div></div></blockquote></div><br></div>