Module: kamailio
Branch: 5.2
Commit: 290eafbdd9423219defdfdc56bad9eeabc036b80
URL:
https://github.com/kamailio/kamailio/commit/290eafbdd9423219defdfdc56bad9ee…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2019-05-03T10:41:44+02:00
htable: set expires for kemi htable.sht_setxs()
- GH #1943
(cherry picked from commit f64da295f6c3cfa3e340616fcc12564ae2689746)
---
Modified: src/modules/htable/htable.c
---
Diff:
https://github.com/kamailio/kamailio/commit/290eafbdd9423219defdfdc56bad9ee…
Patch:
https://github.com/kamailio/kamailio/commit/290eafbdd9423219defdfdc56bad9ee…
---
diff --git a/src/modules/htable/htable.c b/src/modules/htable/htable.c
index 8c4cdea09b..b35397f752 100644
--- a/src/modules/htable/htable.c
+++ b/src/modules/htable/htable.c
@@ -1041,7 +1041,7 @@ static int ki_ht_setxs(sip_msg_t *msg, str *htname, str *itname, str
*itval,
}
}
isval.s = *itval;
- if(ht_set_cell(ht, itname, AVP_VAL_STR, &isval, 1)!=0) {
+ if(ht_set_cell_ex(ht, itname, AVP_VAL_STR, &isval, 1, exval)!=0) {
LM_ERR("cannot set hash table: %.*s key: %.*s\n", htname->len,
htname->s,
itname->len, itname->s);
return -1;