<p></p>
<p dir="auto"><a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/shaneqld/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/shaneqld">@shaneqld</a>: thanks for tracking it and troubleshooting details!</p>
<p dir="auto">If <code class="notranslate">dlg_db_mode = DB_MODE_NONE</code> is done on <code class="notranslate">PROC_MAIN</code>, then on <code class="notranslate">PROC_POSTCHILDINIT</code> is not restored, I don't see how that could happen. Therefore it should better be:</p>
<pre class="notranslate"><code class="notranslate">if (dlg_db_mode==DB_MODE_SHUTDOWN && rank!=PROC_MAIN && rank!=PROC_POSTCHILDINIT)
                dlg_db_mode = DB_MODE_NONE;
</code></pre>

<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-1217598050">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/ABO7UZOFFLM7ELW3OLLG7JTVZSJPBANCNFSM56X6PQSQ">unsubscribe</a>.<br />You are receiving this because you are subscribed to this thread.<img src="https://github.com/notifications/beacon/ABO7UZLKFPTFEYPHK257DPLVZSJPBA5CNFSM56X6PQS2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOJCJREYQ.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/c1217598050</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-1217598050",
"url": "https://github.com/kamailio/kamailio/pull/3221#issuecomment-1217598050",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>