<p></p>
<p dir="auto">Hi <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/miconda/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/miconda">@miconda</a></p>
<blockquote>
<p dir="auto">If dlg_db_mode = DB_MODE_NONE is done on PROC_MAIN, then on PROC_POSTCHILDINIT is not restored, I don't see how that could happen.</p>
</blockquote>
<p dir="auto">It's restored as the value is reset at the start of <code class="notranslate">child_init()</code> as so:</p>
<div class="highlight highlight-source-c"><pre><span class="pl-k">static</span> <span class="pl-k">int</span> <span class="pl-en">child_init</span>(<span class="pl-k">int</span> rank)
{
        dlg_db_mode = dlg_db_mode_param;</pre></div>
<p dir="auto">Happy to update the PR if checking against both <code class="notranslate">PROC_MAIN</code> and <code class="notranslate">PROC_POSTCHILDINIT</code> is preferred.</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />Reply to this email directly, <a href="https://github.com/kamailio/kamailio/pull/3221#issuecomment-1217631509">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/ABO7UZLYL5QJ7VFLZT2L2OTVZSLJXANCNFSM56X6PQSQ">unsubscribe</a>.<br />You are receiving this because you are subscribed to this thread.<img src="https://github.com/notifications/beacon/ABO7UZNMSZ3UFF67CPMDSYLVZSLJZA5CNFSM56X6PQS2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOJCJZKFI.gif" height="1" width="1" alt="" /><span style="color: transparent; font-size: 0; display: none; visibility: hidden; overflow: hidden; opacity: 0; width: 0; height: 0; max-width: 0; max-height: 0; mso-hide: all">Message ID: <span><kamailio/kamailio/pull/3221/c1217631509</span><span>@</span><span>github</span><span>.</span><span>com></span></span></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/kamailio/kamailio/pull/3221#issuecomment-1217631509",
"url": "https://github.com/kamailio/kamailio/pull/3221#issuecomment-1217631509",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>