Module: kamailio Branch: master Commit: 5b9fb55b6697bf3cd16727110a4b4bcb8350357d URL: https://github.com/kamailio/kamailio/commit/5b9fb55b6697bf3cd16727110a4b4bcb...
Author: Daniel-Constantin Mierla miconda@gmail.com Committer: Daniel-Constantin Mierla miconda@gmail.com Date: 2019-05-05T08:04:55+02:00
htable: fix export of kemi sht_reset()
- GH #1941
---
Modified: src/modules/htable/htable.c
---
Diff: https://github.com/kamailio/kamailio/commit/5b9fb55b6697bf3cd16727110a4b4bcb... Patch: https://github.com/kamailio/kamailio/commit/5b9fb55b6697bf3cd16727110a4b4bcb...
---
diff --git a/src/modules/htable/htable.c b/src/modules/htable/htable.c index 7997865f4d..1320330f35 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; @@ -1635,7 +1640,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 } },