<p>In <a href="https://github.com/kamailio/kamailio/pull/390#discussion_r44556022">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 don't think immediately deleting the hash table entry on "delete" is a good idea as it may only be a single branch that has been deleted and a "delete" does not preclude the possibility of more commands (offer, answer, or something else) coming for the same call-ID. Perhaps resetting the expiry value for the entry to something small might be a better idea.</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#r44556022">view it on GitHub</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/AF36ZdPGNbyopfAmzaXA2Dct7oRNKKPwks5pE2swgaJpZM4GcraR.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#r44556022"></link>
  <meta itemprop="name" content="View Pull Request"></meta>
</div>
<meta itemprop="description" content="View this Pull Request on GitHub"></meta>
</div>