<p>Not sure if it's a good idea or not, but would it be possible to write some code that would periodically perform a mysql_ping on each kamailio child running? Maybe a better option is to lower the amount of childs to make sure the connection is used more frequently? Or if there's already a core setting to make the usage of the childs more round-robin?</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br>Reply to this email directly or <a href="https://github.com/kamailio/kamailio/issues/406#issuecomment-163005295">view it on GitHub</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/AF36ZSZuXRrTjzpfLlJrMnRA47IOTKxUks5pNzMRgaJpZM4Gmb_R.gif" width="1" /></p>
<div itemscope itemtype="http://schema.org/EmailMessage">
<div itemprop="action" itemscope itemtype="http://schema.org/ViewAction">
  <link itemprop="url" href="https://github.com/kamailio/kamailio/issues/406#issuecomment-163005295"></link>
  <meta itemprop="name" content="View Issue"></meta>
</div>
<meta itemprop="description" content="View this Issue on GitHub"></meta>
</div>