<div>I am running asterisk 1.8.7.1 with multiple resources and asterisk connect back and forth to each one until one available is found.</div><div><br></div><div>I have:</div><div><br></div><div><div>pre-connect => yes</div>
<div>sanitysql => select 1</div></div><div><br></div><div>Maybe your configuration lacks the sanitysql so asterisk can't detect when disconnected. I am using mysql.</div><div><br></div><div>Leandro</div><div><br><div class="gmail_quote">
2012/3/20 Noah Engelberth <span dir="ltr"><<a href="mailto:Noah@directlinkcomputers.com">Noah@directlinkcomputers.com</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div lang="EN-US" link="blue" vlink="purple">
<div>
<p class="MsoNormal">I’ve got an Asterisk 10.1.2 server using res_odbc to make a connection to a MSSQL server on a different machine for a timeclock extension we have running. The connection works just fine until Asterisk’s network path to the MSSQL server
gets disrupted (for whatever reason), and then all future attempts to contact the MSSQL server cause the timeclock call to hang, until Asterisk is completely restarted. Trying to module unload/load res_odbc.so crashes Asterisk. I’ve been using the following
config, and tried with preconnect both on and off:<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">[timeclock]<u></u><u></u></p>
<p class="MsoNormal">enabled => yes<u></u><u></u></p>
<p class="MsoNormal">dsn => timeclock<u></u><u></u></p>
<p class="MsoNormal">username => notauser<u></u><u></u></p>
<p class="MsoNormal">password => stealme<u></u><u></u></p>
<p class="MsoNormal">pooling => no<u></u><u></u></p>
<p class="MsoNormal">limit => 1<u></u><u></u></p>
<p class="MsoNormal">pre-connect => no<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">Any suggestions on where to try digging in to this?<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">Thank you,<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">Noah Engelberth<u></u><u></u></p>
<p class="MsoNormal">MetaLINK Technologies<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
</div>
<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></blockquote></div><br></div>