<p>Daniel,</p>
<p>Thinking about it further, I would rather replace this block:<br>
<code>if(ostate==DLG_STATE_CONFIRMED && sval==DLG_STATE_DELETED) {</code><br>
by this one:<br>
<code>if(sval==DLG_STATE_DELETED) {</code></p>
<p>Because if a dialog is changed to deleted state from a state < 4, it stays in the dialog memory for no reason. I think it would be cleaner to reset the timestamps each time the state is set to 5, whatever the old state was.</p>
<p>What is your opinion about this?</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/pull/2111?email_source=notifications&email_token=ABO7UZKQNTPEQ3NV6XO2TXLQZC22ZA5CNFSM4JFA62PKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEHCC6OI#issuecomment-566505273">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/ABO7UZKKZ22LEUUIAMPOFXDQZC22ZANCNFSM4JFA62PA">unsubscribe</a>.<img src="https://github.com/notifications/beacon/ABO7UZI7OFRTB24WWLEPOO3QZC22ZA5CNFSM4JFA62PKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEHCC6OI.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/pull/2111?email_source=notifications\u0026email_token=ABO7UZKQNTPEQ3NV6XO2TXLQZC22ZA5CNFSM4JFA62PKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEHCC6OI#issuecomment-566505273",
"url": "https://github.com/kamailio/kamailio/pull/2111?email_source=notifications\u0026email_token=ABO7UZKQNTPEQ3NV6XO2TXLQZC22ZA5CNFSM4JFA62PKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEHCC6OI#issuecomment-566505273",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>