<p>Notice this <em>PR</em> is about dialplan (not dispatcher)...</p>

<p>`/*</p>

<ul>
<li>
<p>RPC command to reload dialplan table<br>
<em>/<br>
static void dialplan_rpc_reload(rpc_t</em> rpc, void* ctx)<br>
{<br>
if (dp_connect_db() < 0) {<br>
    LM_ERR("failed to reload rules fron database (db connect)\n");<br>
    rpc->fault(ctx, 500, "DB Connection Error");<br>
    return;<br>
}</p>

<p>if(dp_load_db() != 0){<br>
    LM_ERR("failed to reload rules fron database (db load)\n");<br>
    dp_disconnect_db();<br>
    rpc->fault(ctx, 500, "Dialplan Reload Failed");<br>
    return;<br>
}</p>

<p>dp_disconnect_db();<br>
return;<br>
}<br>
`</p>
</li>
</ul>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/kamailio/kamailio/pull/667#issuecomment-225144937">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe/AF36ZbtVAhVZG-qjHqjauNmymAAVO9cyks5qKTeTgaJpZM4IyyQx">mute the thread</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/AF36ZdlrxEt4h1JArV93pvlXv2zv-NZTks5qKTeTgaJpZM4IyyQx.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/667#issuecomment-225144937"></link>
  <meta itemprop="name" content="View Pull Request"></meta>
</div>
<meta itemprop="description" content="View this Pull Request on GitHub"></meta>
</div>