Module: kamailio
Branch: 5.2
Commit: e05a3f30986244d1a1bdbefda63278416b8aa2af
URL:
https://github.com/kamailio/kamailio/commit/e05a3f30986244d1a1bdbefda632784…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2019-05-05T08:08:43+02:00
htable: fix export of kemi sht_reset()
- GH #1941
(cherry picked from commit 5b9fb55b6697bf3cd16727110a4b4bcb8350357d)
---
Modified: src/modules/htable/htable.c
---
Diff:
https://github.com/kamailio/kamailio/commit/e05a3f30986244d1a1bdbefda632784…
Patch:
https://github.com/kamailio/kamailio/commit/e05a3f30986244d1a1bdbefda632784…
---
diff --git a/src/modules/htable/htable.c b/src/modules/htable/htable.c
index b35397f752..e48d1d4415 100644
--- a/src/modules/htable/htable.c
+++ b/src/modules/htable/htable.c
@@ -677,6 +677,11 @@ static int ht_reset_by_name(str *hname)
}
+static int ki_ht_reset_by_name(sip_msg_t* msg, str *hname)
+{
+ return ht_reset_by_name(hname);
+}
+
static int ht_reset(struct sip_msg* msg, char* htname, char* foo)
{
str sname;
@@ -1611,7 +1616,7 @@ static sr_kemi_t sr_kemi_htable_exports[] = {
SR_KEMIP_NONE, SR_KEMIP_NONE, SR_KEMIP_NONE }
},
{ str_init("htable"), str_init("sht_reset"),
- SR_KEMIP_INT, ht_reset_by_name,
+ SR_KEMIP_INT, ki_ht_reset_by_name,
{ SR_KEMIP_STR, SR_KEMIP_NONE, SR_KEMIP_NONE,
SR_KEMIP_NONE, SR_KEMIP_NONE, SR_KEMIP_NONE }
},