<p>Tried this:</p>

<pre><code>modparam("rtimer", "timer", "name=test;interval=10;mode=1;"); # Tried both mode=1 and mode=0
modparam("rtimer", "exec", "timer=test;route=99");
route[99] {
    xlog("rtimer sql");
    sql_query("common", "select 1", "ra_test"); 
    sql_result_free("ra_test");
}
</code></pre>

<p>The rtimer SQL queries looks good from the debug output, still getting SSL errors on other queries on the same process though.</p>

<p>If I disable the SSL options (ssl-key, ssl-ca, ssl-cert, etc) in my.cnf (in the group), there are no sql warnings anymore and looks like all queries are fine.</p>

<p>As the <code>timer</code> process can successfully connect with the SQL using SSL when Kamailio starts up, can this be related somehow to that the API forgets the SSL settings along the way and cannot use them when trying to reconnect/re-establish the connection?</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-180295655">view it on GitHub</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/AF36ZWECFxnZbzRL9BRSNUVgQ_IBauEBks5phHesgaJpZM4Gmb_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-180295655"></link>
  <meta itemprop="name" content="View Issue"></meta>
</div>
<meta itemprop="description" content="View this Issue on GitHub"></meta>
</div>