<p>In <a href="https://github.com/kamailio/kamailio/pull/390#discussion_r44553486">modules/rtpengine/rtpengine_hash.h</a>:</p>
<pre style='color:#555'>> +    str callid;                             // call callid
> +  struct rtpp_node *node;                 // call selected node
> +
> +  struct rtpengine_hash_entry *next;      // call next
> +};
> +
> +/* table */
> +struct rtpengine_hash_table {
> +  struct rtpengine_hash_entry **entry_list;       // hastable
> +  unsigned int total;                             // total number of entries in the hashtable
> +};
> +
> +
> +int rtpengine_hash_table_init(int size);
> +int rtpengine_hash_table_destroy();
> +int rtpengine_hash_table_insert(void *key, void *value);
</pre>
<p>I don't think there's a good reason to use void pointers here, since the types are known and using void pointers prevents the compiler from catching type errors.</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#r44553486">view it on GitHub</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/AF36ZdAKDo70OUmycusleASmnTGGZuiOks5pE2aGgaJpZM4GcraR.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#r44553486"></link>
  <meta itemprop="name" content="View Pull Request"></meta>
</div>
<meta itemprop="description" content="View this Pull Request on GitHub"></meta>
</div>