<p>Hello Joel,</p>
<p>these two topics (dialog expiration and send BYE) are handled individually.</p>
<p>Two proxies with this cfg:</p>
<p>modparam("dialog", "db_mode", 0)<br>
modparam("dialog", "db_update_period", 10)<br>
modparam("dialog", "enable_dmq", 1)<br>
modparam("dialog", "default_timeout", 60);<br>
modparam("dialog", "send_bye", 1)</p>
<ul>
<li>proxy1 restarted after call established - it will get the dialog data from proxy2, with a different timeout value set internally:</li>
</ul>
<blockquote>
<p>root@proxy-1:/etc/kamailio# kamcmd dlg.list |egrep "_ts|timeout"<br>
start_ts: 1570005344<br>
init_ts: 1570005344<br>
end_ts: 0<br>
timeout: 1570005404<br>
root@proxy-1:/etc/kamailio# /etc/init.d/kamailio restart<br>
[ ok ] Restarting kamailio (via systemctl): kamailio.service.<br>
root@proxy-1:/etc/kamailio# kamcmd dlg.list |egrep "_ts|timeout"<br>
start_ts: 1570005344<br>
init_ts: 1570005344<br>
end_ts: 0<br>
timeout: 1570005415</p>
</blockquote>
<ul>
<li>but call will be expired on time (from proxy2):</li>
</ul>
<blockquote>
<p>10:35:44.137            pjsua_app.c  .....Call 1 state changed to CONFIRMED<br>
root@proxy-1:/etc/kamailio# date<br>
Wed Oct  2 10:36:46 CEST 2019<br>
root@proxy-1:/etc/kamailio# kamcmd dlg.list |egrep "_ts|timeout"<br>
root@proxy-1:/etc/kamailio#</p>
</blockquote>
<ul>
<li>if proxy2 is stopped <em>after</em> proxy1 was restarted, call will be expired later (from proxy1):</li>
</ul>
<blockquote>
<p>10:43:09.950            pjsua_app.c  .....Call 2 state changed to CONFIRMED<br>
root@proxy-1:/etc/kamailio# date; kamcmd dlg.list |egrep "_ts|timeout"<br>
Wed Oct  2 10:44:12 CEST 2019<br>
start_ts: 1570005789<br>
init_ts: 1570005789<br>
end_ts: 0<br>
timeout: 1570005860<br>
root@proxy-1:/etc/kamailio# date; kamcmd dlg.list |egrep "_ts|timeout"<br>
Wed Oct  2 10:44:30 CEST 2019</p>
</blockquote>
<ul>
<li>
<p>proxy2 will not send a timeout for a dialog that does not belong to him</p>
</li>
<li>
<p>proxy1 (after a restart) will not send a BYE at timeout, this might be related to the socket:</p>
</li>
</ul>
<blockquote>
<p>root@proxy-1:/etc/kamailio# date; kamcmd dlg.list | grep socket<br>
Wed Oct  2 10:54:49 CEST 2019<br>
socket: udp:116.203.XXX.XX:5060<br>
socket: udp:116.203.XXX.XX:5060<br>
root@proxy-1:/etc/kamailio# /etc/init.d/kamailio restart<br>
[ ok ] Restarting kamailio (via systemctl): kamailio.service.<br>
root@proxy-1:/etc/kamailio# date; kamcmd dlg.list | grep socket<br>
Wed Oct  2 10:54:56 CEST 2019<br>
socket:<br>
socket:</p>
</blockquote>
<p>There should be a new issue created for the last topic.</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=ABO7UZKDZIKQWVIOEMY3XBTQMRPLVA5CNFSM4I3IQ34KYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEAEB7WA#issuecomment-537403352">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/ABO7UZJXU4NYNGI3V7PS7U3QMRPLVANCNFSM4I3IQ34A">mute the thread</a>.<img src="https://github.com/notifications/beacon/ABO7UZKSXM3QGMN6ADDBT5TQMRPLVA5CNFSM4I3IQ34KYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEAEB7WA.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=ABO7UZKDZIKQWVIOEMY3XBTQMRPLVA5CNFSM4I3IQ34KYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEAEB7WA#issuecomment-537403352",
"url": "https://github.com/kamailio/kamailio/issues/2080?email_source=notifications\u0026email_token=ABO7UZKDZIKQWVIOEMY3XBTQMRPLVA5CNFSM4I3IQ34KYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEAEB7WA#issuecomment-537403352",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>