[sr-dev] git:master:f64da295: htable: set expires for kemi htable.sht_setxs()
Daniel-Constantin Mierla
miconda at gmail.com
Fri May 3 10:41:10 CEST 2019
Module: kamailio
Branch: master
Commit: f64da295f6c3cfa3e340616fcc12564ae2689746
URL: https://github.com/kamailio/kamailio/commit/f64da295f6c3cfa3e340616fcc12564ae2689746
Author: Daniel-Constantin Mierla <miconda at gmail.com>
Committer: Daniel-Constantin Mierla <miconda at gmail.com>
Date: 2019-05-03T10:39:22+02:00
htable: set expires for kemi htable.sht_setxs()
- GH #1943
---
Modified: src/modules/htable/htable.c
---
Diff: https://github.com/kamailio/kamailio/commit/f64da295f6c3cfa3e340616fcc12564ae2689746.diff
Patch: https://github.com/kamailio/kamailio/commit/f64da295f6c3cfa3e340616fcc12564ae2689746.patch
---
diff --git a/src/modules/htable/htable.c b/src/modules/htable/htable.c
index 4d70d6e317..7997865f4d 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;
More information about the sr-dev
mailing list