<p>When records are replicated, is expected to be same kind of config, so both proxies should have same dialog lifetime/expire value, otherwise they are not like a single node behaviour. Replication is mainly for redundancy, not scalability.</p>
<p>Dialog is not working with database only, it has the records in memory and works with those. There are functions that you can load the dialog records from database if they are not found in memory when processing a specific SIP message.</p>
<p>Now, given the purpose of redundancy/high-availability, the proxy 2 should expire the dialog, because it doesn't know if the proxy 1 is still alive.</p>
<p>If the replication is for another purpose, like active calls limit, then it might be good to set a flag for it to say do not send BYEs on expiration or other operations that can be a conflict.</p>
<p>There are also options to replicate only profiles, not all dialogs, so by that one can have distributed calls limit.</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=ABO7UZKGDNMTQIT5FGINO23QMGPA5A5CNFSM4I3IQ34KYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD74TY5Q#issuecomment-536427638">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/ABO7UZMCE7MYU2WLJ6JGBJ3QMGPA5ANCNFSM4I3IQ34A">mute the thread</a>.<img src="https://github.com/notifications/beacon/ABO7UZLLHCFYOXIO3W5EBNDQMGPA5A5CNFSM4I3IQ34KYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD74TY5Q.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=ABO7UZKGDNMTQIT5FGINO23QMGPA5A5CNFSM4I3IQ34KYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD74TY5Q#issuecomment-536427638",
"url": "https://github.com/kamailio/kamailio/issues/2080?email_source=notifications\u0026email_token=ABO7UZKGDNMTQIT5FGINO23QMGPA5A5CNFSM4I3IQ34KYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD74TY5Q#issuecomment-536427638",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>