<p>In <a href="https://github.com/kamailio/kamailio/pull/390#discussion_r44639231">modules/rtpengine/rtpengine.c</a>:</p>
<pre style='color:#555'>>      }
>  
>    if (body_out)
>            *body_out = body;
>  
> +  if (op == OP_DELETE) {
> +          /* Delete the key<->value from the hashtable */
> +          if (!rtpengine_hash_table_remove(&callid)) {
</pre>
<p>I understand the problem that may appear in that case you said. However, I don't understand why resetting the expiry so something smaller would solve this. Proposals:<br>
1. reset the timer to the hash_entry_tout value<br>
2. also consider from-tag, to-tag, maybe via-branch id (add them in the hash table entry). Then match them all, when deleting the entry; thus the deletion can be done right-away.</p>

<p>I'd go for 2. What do you think?</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br>Reply to this email directly or <a href="https://github.com/kamailio/kamailio/pull/390/files#r44639231">view it on GitHub</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/AF36ZdILvfNp8XFNOtadi8XoJFfPD2hBks5pFFuXgaJpZM4GcraR.gif" width="1" /></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/pull/390/files#r44639231"></link>
  <meta itemprop="name" content="View Pull Request"></meta>
</div>
<meta itemprop="description" content="View this Pull Request on GitHub"></meta>
</div>