<p>Maybe this is irrelevant, but I'd like to add another scenario (not sure if you have contemplated this one <a class="user-mention" data-hovercard-type="user" data-hovercard-url="/hovercards?user_id=6481937" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/henningw">@henningw</a>): replicating dialogs exclusively via DMQ (with no database at all).</p>
<ul>
<li>Proxy1 creates a dialog (let's call it <strong>dialogA</strong>) and replicates it via DMQ to Proxy2.</li>
<li>Proxy1 is restarted/crashes/something.</li>
<li>Proxy1 comes back up before <strong>dialogA</strong> has expired.</li>
<li>Proxy1 receives all dialogs from Proxy2 via DMQ (including <strong>dialogA</strong>).</li>
</ul>
<p>What would happen when expiration for the <strong>dialogA</strong> is due?</p>
<p>1- Would Proxy1 send the BYE and then "tell" via DMQ to Proxy2 to remove it from its memory?<br>
2- What if Proxy1 never came back up in time, would Proxy2 know that <strong>it</strong> should take care of sending out a BYE for that expired dialog?<br>
3- Would both Proxy1 and Proxy2 send a BYE and then tell the other proxy via DMQ to remove it? (this would be a race-condition I believe, and one would end up logging a <em>non-existent dialog</em> on syslog?)</p>
<p>I know the subject of this issue clearly talks about scenarios <strong>with</strong> a database, so if you believe this database-less scenario shouldn't be discussed here let me know and I can create a new issue.</p>

<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/issues/2080?email_source=notifications&email_token=ABO7UZP5SGPL7K2SZKUMQ7DQMPZGFA5CNFSM4I3IQ34KYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEADHO5I#issuecomment-537294709">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/ABO7UZPQ5UCCH56WBO4VXHTQMPZGFANCNFSM4I3IQ34A">mute the thread</a>.<img src="https://github.com/notifications/beacon/ABO7UZMSQAFHF2SJVQEXRYLQMPZGFA5CNFSM4I3IQ34KYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEADHO5I.gif" height="1" width="1" alt="" /></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/kamailio/kamailio/issues/2080?email_source=notifications\u0026email_token=ABO7UZP5SGPL7K2SZKUMQ7DQMPZGFA5CNFSM4I3IQ34KYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEADHO5I#issuecomment-537294709",
"url": "https://github.com/kamailio/kamailio/issues/2080?email_source=notifications\u0026email_token=ABO7UZP5SGPL7K2SZKUMQ7DQMPZGFA5CNFSM4I3IQ34KYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEADHO5I#issuecomment-537294709",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>