Module: kamailio Branch: master Commit: c446840e0004f8cb9208c2a6f68774c4c788e5a8 URL: https://github.com/kamailio/kamailio/commit/c446840e0004f8cb9208c2a6f68774c4c788e5a8
Author: lazedo <[email protected]> Committer: lazedo <[email protected]> Date: 2015-07-31T14:06:29+01:00 htable : fix $shtrecord(value) returned value $shtrecord(value) does not return correct value when it is an integer --- Modified: modules/htable/ht_var.c --- Diff: https://github.com/kamailio/kamailio/commit/c446840e0004f8cb9208c2a6f68774c4c788e5a8.diff Patch: https://github.com/kamailio/kamailio/commit/c446840e0004f8cb9208c2a6f68774c4c788e5a8.patch --- diff --git a/modules/htable/ht_var.c b/modules/htable/ht_var.c index 4bcc2b1..5eeafa3 100644 --- a/modules/htable/ht_var.c +++ b/modules/htable/ht_var.c @@ -393,13 +393,10 @@ int pv_get_ht_expired_cell(struct sip_msg *msg, pv_param_t *param, strncmp(param->pvn.u.isname.name.s.s, "value", 5) == 0) { if(ht_expired_cell->flags&AVP_VAL_STR) { - res->rs = ht_expired_cell->value.s; - res->flags = PV_VAL_STR; + return pv_get_strval(msg, param, res, &ht_expired_cell->value.s); } else { - res->ri = ht_expired_cell->value.n; - res->flags = PV_VAL_INT|PV_TYPE_INT; + return pv_get_sintval(msg, param, res, ht_expired_cell->value.n); } - return 0; } if (res->rs.s == NULL) _______________________________________________ sr-dev mailing list [email protected] http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-dev
