<p>Luis I found that in <code>presentity</code> table dialog event is stored with <code>expires</code> equal 0.<br>
Think if ecallmgr will set this value equal leg timeout then this will resolve this issue.</p>
<p>Could you also confirm that need add function to ecallmgr like <code>make_sure_dialog_is_removed_on_kamailio</code>?</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/1489#issuecomment-387991769">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AF36ZSEYfuI8_f3l8spD3Eo9ZYYKgEqkks5tw_0VgaJpZM4S7yny">mute the thread</a>.<img src="https://github.com/notifications/beacon/AF36ZRT8BNuESCsgeFwiwwoMQBjaVD5xks5tw_0VgaJpZM4S7yny.gif" height="1" width="1" alt="" /></p>
<div itemscope itemtype="http://schema.org/EmailMessage">
<div itemprop="action" itemscope itemtype="http://schema.org/ViewAction">
  <link itemprop="url" href="https://github.com/kamailio/kamailio/issues/1489#issuecomment-387991769"></link>
  <meta itemprop="name" content="View Issue"></meta>
</div>
<meta itemprop="description" content="View this Issue on GitHub"></meta>
</div>

<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://cloud.githubusercontent.com/assets/143418/17495839/a5054eac-5d88-11e6-95fc-7290892c7bb5.png","avatar_image_url":"https://cloud.githubusercontent.com/assets/143418/15842166/7c72db34-2c0b-11e6-9aed-b52498112777.png","action":{"name":"Open in GitHub","url":"https://github.com/kamailio/kamailio"}},"updates":{"snippets":[{"icon":"PERSON","message":"@sergey-safarov in #1489: Luis I found that in `presentity` table dialog event is stored with `expires` equal 0.\r\nThink if ecallmgr will set this value equal leg timeout then this will resolve this issue.\r\n\r\nCould you also confirm that need add function to ecallmgr like `make_sure_dialog_is_removed_on_kamailio`?"}],"action":{"name":"View Issue","url":"https://github.com/kamailio/kamailio/issues/1489#issuecomment-387991769"}}}</script>
<script type="application/ld+json">{"@type":"MessageCard","@context":"http://schema.org/extensions","hideOriginalBody":"false","originator":"37567f93-e2a7-4e2a-ad37-a9160fc62647","title":"Re: [kamailio/kamailio] kazoo: wrong BLF when used application/dialog-info+xml (#1489)","sections":[{"text":"","activityTitle":"**sergey-safarov**","activityImage":"https://cloud.githubusercontent.com/assets/143418/15842166/7c72db34-2c0b-11e6-9aed-b52498112777.png","activitySubtitle":"@sergey-safarov","facts":[]}],"potentialAction":[{"name":"Add a comment","@type":"ActionCard","inputs":[{"isMultiLine":true,"@type":"TextInput","id":"IssueComment","isRequired":false}],"actions":[{"name":"Comment","@type":"HttpPOST","target":"https://api.github.com","body":"{\"commandName\":\"IssueComment\",\"repositoryFullName\":\"kamailio/kamailio\",\"issueId\":1489,\"IssueComment\":\"{{IssueComment.value}}\"}"}]},{"name":"Close issue","@type":"HttpPOST","target":"https://api.github.com","body":"{\"commandName\":\"IssueClose\",\"repositoryFullName\":\"kamailio/kamailio\",\"issueId\":1489}"},{"targets":[{"os":"default","uri":"https://github.com/kamailio/kamailio/issues/1489#issuecomment-387991769"}],"@type":"OpenUri","name":"View on GitHub"},{"name":"Unsubscribe","@type":"HttpPOST","target":"https://api.github.com","body":"{\"commandName\":\"MuteNotification\",\"threadId\":317663730}"}],"themeColor":"26292E"}</script>