<p>In <a href="https://github.com/OpenSIPS/opensips/pull/781#discussion_r54102714">modules/dialog/dlg_db_handler.c</a>:</p>
<pre style='color:#555'>&gt; @@ -1176,8 +1178,8 @@ str* write_dialog_profiles( struct dlg_profile_link *links)
&gt;                  for( i=0 ; i&lt;link-&gt;value.len ; i++ )
&gt;                          if (link-&gt;value.s[i]==&#39;|&#39; || link-&gt;value.s[i]==&#39;#&#39;
&gt;                                          || link-&gt;value.s[i]==&#39;\\&#39;) l++;
&gt; -                if (link-&gt;profile-&gt;use_cached)
&gt; -                        l+=cached_marker.len;
&gt; +                if (link-&gt;profile-&gt;repl_type/*==(CACHEDB||PROTOBIN)*/)
</pre>
<p>Better check if the replication type is different than REPL_NONE.</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">&mdash;<br>Reply to this email directly or <a href="https://github.com/OpenSIPS/opensips/pull/781/files#r54102714">view it on GitHub</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/AFOcib4Ouw0yHFwX0fKJhEgyhqsoyRgXks5pnwjBgaJpZM4HRneZ.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/OpenSIPS/opensips/pull/781/files#r54102714"></link>
  <meta itemprop="name" content="View Pull Request"></meta>
</div>
<meta itemprop="description" content="View this Pull Request on GitHub"></meta>
</div>