+}
+
+int rtpengine_hash_table_insert(void *key, void *value) {
+ struct rtpengine_hash_entry *entry, *last_entry;
+ struct rtpengine_hash_entry *new_entry = (struct rtpengine_hash_entry *) value;
+ unsigned int hash_index;
+
+ // check rtpengine hashtable
+ if (!rtpengine_hash_table) {
+ LM_ERR("NULL rtpengine_hash_table");
+ return 0;
+ }
+
+ // get entry list
+ hash_index = str_hash(key);
+ entry = rtpengine_hash_table->entry_list[hash_index];
Nevermind, I see there's an empty list head. Retracted.
---
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/pull/390/files#r44548209