<p>Sorry, this patch is not enough, my test failed in the end .</p>
<p>Something else seems unexpected, <code>tps_redis_end_dialog</code>  is called on the reception of the ACK, not the BYE.</p>
<pre><code>Feb 12 17:04:40 [15693]:  4(23) NOTICE: <script>: [MAIN][INVITE][845153977_116759869123] from[+12063389971] to[+12013673277]
Feb 12 17:04:40 [15693]:  4(23) NOTICE: topos_redis [topos_redis_storage.c:282]: tps_redis_insert_dialog(): expire[10800] set on dialog record for [d:z:atpsh-5c62fc9a-17-1] with argc 3
Feb 12 17:04:40 [15693]:  4(23) NOTICE: topos_redis [topos_redis_storage.c:521]: tps_redis_insert_branch(): expire[10800] set on branch record for [b:x:z9hG4bKeff7.3c177f0a8f8f8c3bac4a8895164a6cc4.0] with argc 3
Feb 12 17:04:40 [15693]: 13(32) NOTICE: <script>: [MAIN_REPLY][100][845153977_116759869123]
Feb 12 17:04:40 [15693]: 13(32) NOTICE: topos_redis [topos_redis_storage.c:393]: tps_redis_insert_invite_branch(): expire[10800] set on branch record for [b:x:INVITE:845153977_116759869123:eX.x-jGaUpMKHWbyYAb-NpuBVO9iQJjQ] with argc 3
Feb 12 17:04:40 [15693]: 13(32) NOTICE: <script>: [MAIN_REPLY][180][845153977_116759869123]
Feb 12 17:04:40 [15693]: 13(32) NOTICE: topos_redis [topos_redis_storage.c:393]: tps_redis_insert_invite_branch(): expire[10800] set on branch record for [b:x:INVITE:845153977_116759869123:eX.x-jGaUpMKHWbyYAb-NpuBVO9iQJjQ] with argc 3
Feb 12 17:04:45 [15693]: 13(32) NOTICE: <script>: [MAIN_REPLY][200][845153977_116759869123]
Feb 12 17:04:45 [15693]:  1(20) NOTICE: <script>: [MAIN][ACK][845153977_116759869123] from[+12063389971] to[+12013673277]
Feb 12 17:04:45 [15693]:  1(20) NOTICE: topos_redis [topos_redis_storage.c:521]: tps_redis_insert_branch(): expire[10800] set on branch record for [b:x:z9hG4bKeff7.7e29bc1bbf5aa3b6de562e08981be91e.0] with argc 3
Feb 12 17:04:45 [15693]:  1(20) NOTICE: topos_redis [topos_redis_storage.c:1417]: tps_redis_end_dialog(): expire[180] set on branch record for [d:z:atpsh-5c62fc9a-17-1] with argc 3
</code></pre>

<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/1848#issuecomment-462851076">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AF36ZSm24he2vax3RWZHITohvICbABEjks5vMvgigaJpZM4a0o_2">mute the thread</a>.<img src="https://github.com/notifications/beacon/AF36ZfCyRUtPgQYOiZQR5QEfUf6xkClsks5vMvgigaJpZM4a0o_2.gif" height="1" width="1" alt="" /></p>
<script type="application/json" data-scope="inboxmarkup">{"api_version":"1.0","publisher":{"api_key":"05dde50f1d1a384dd78767c55493e4bb","name":"GitHub"},"entity":{"external_key":"github/kamailio/kamailio","title":"kamailio/kamailio","subtitle":"GitHub repository","main_image_url":"https://github.githubassets.com/images/email/message_cards/header.png","avatar_image_url":"https://github.githubassets.com/images/email/message_cards/avatar.png","action":{"name":"Open in GitHub","url":"https://github.com/kamailio/kamailio"}},"updates":{"snippets":[{"icon":"PERSON","message":"@jchavanton in #1848: Sorry, this patch is not enough, my test failed in the end .\r\n\r\nSomething else seems unexpected, `tps_redis_end_dialog`  is called on the reception of the ACK, not the BYE.\r\n\r\n\r\n```\r\nFeb 12 17:04:40 [15693]:  4(23) NOTICE: \u003cscript\u003e: [MAIN][INVITE][845153977_116759869123] from[+12063389971] to[+12013673277]\r\nFeb 12 17:04:40 [15693]:  4(23) NOTICE: topos_redis [topos_redis_storage.c:282]: tps_redis_insert_dialog(): expire[10800] set on dialog record for [d:z:atpsh-5c62fc9a-17-1] with argc 3\r\nFeb 12 17:04:40 [15693]:  4(23) NOTICE: topos_redis [topos_redis_storage.c:521]: tps_redis_insert_branch(): expire[10800] set on branch record for [b:x:z9hG4bKeff7.3c177f0a8f8f8c3bac4a8895164a6cc4.0] with argc 3\r\nFeb 12 17:04:40 [15693]: 13(32) NOTICE: \u003cscript\u003e: [MAIN_REPLY][100][845153977_116759869123]\r\nFeb 12 17:04:40 [15693]: 13(32) NOTICE: topos_redis [topos_redis_storage.c:393]: tps_redis_insert_invite_branch(): expire[10800] set on branch record for [b:x:INVITE:845153977_116759869123:eX.x-jGaUpMKHWbyYAb-NpuBVO9iQJjQ] with argc 3\r\nFeb 12 17:04:40 [15693]: 13(32) NOTICE: \u003cscript\u003e: [MAIN_REPLY][180][845153977_116759869123]\r\nFeb 12 17:04:40 [15693]: 13(32) NOTICE: topos_redis [topos_redis_storage.c:393]: tps_redis_insert_invite_branch(): expire[10800] set on branch record for [b:x:INVITE:845153977_116759869123:eX.x-jGaUpMKHWbyYAb-NpuBVO9iQJjQ] with argc 3\r\nFeb 12 17:04:45 [15693]: 13(32) NOTICE: \u003cscript\u003e: [MAIN_REPLY][200][845153977_116759869123]\r\nFeb 12 17:04:45 [15693]:  1(20) NOTICE: \u003cscript\u003e: [MAIN][ACK][845153977_116759869123] from[+12063389971] to[+12013673277]\r\nFeb 12 17:04:45 [15693]:  1(20) NOTICE: topos_redis [topos_redis_storage.c:521]: tps_redis_insert_branch(): expire[10800] set on branch record for [b:x:z9hG4bKeff7.7e29bc1bbf5aa3b6de562e08981be91e.0] with argc 3\r\nFeb 12 17:04:45 [15693]:  1(20) NOTICE: topos_redis [topos_redis_storage.c:1417]: tps_redis_end_dialog(): expire[180] set on branch record for [d:z:atpsh-5c62fc9a-17-1] with argc 3\r\n```"}],"action":{"name":"View Issue","url":"https://github.com/kamailio/kamailio/issues/1848#issuecomment-462851076"}}}</script>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/kamailio/kamailio/issues/1848#issuecomment-462851076",
"url": "https://github.com/kamailio/kamailio/issues/1848#issuecomment-462851076",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>