<p>I think the patch is not ok. With the new parameter you skip execution of init_dlg_db() function in mod_init(). But that function does more than loading values from database, like testing table version and registering the timer function for DB_MODE_DELAYED. In this form, the patch breaks that db mode.</p>

<p>I guess that the db_skip_load has to be tested inside the init_dlg_db() and skip execution of:</p>

<pre><code>    if( (load_dialog_info_from_db(dlg_hash_size, fetch_num_rows) ) !=0 ){
        LM_ERR("unable to load the dialog data\n");
        return -1;
    }
    if( (load_dialog_vars_from_db(fetch_num_rows) ) !=0 ){
        LM_ERR("unable to load the dialog data\n");
        return -1;
    }
</code></pre>

<p>For the new patch, do not forget to format the commit message as per guidelines at:</p>

<ul>
<li><a href="http://www.kamailio.org/wiki/devel/github-contributions">http://www.kamailio.org/wiki/devel/github-contributions</a></li>
</ul>

<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/pull/302#issuecomment-134561805">view it on GitHub</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/AF36ZQNq1VhVrr8kvO5O2KX756EKm7Ihks5orE0DgaJpZM4FxrHH.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/pull/302#issuecomment-134561805"></link>
  <meta itemprop="name" content="View Pull Request"></meta>
</div>
<meta itemprop="description" content="View this Pull Request on GitHub"></meta>
</div>