Module: kamailio Branch: master Commit: 955463d6634202111594fd7867928ef64ac31010 URL: https://github.com/kamailio/kamailio/commit/955463d6634202111594fd7867928ef64ac31010
Author: Daniel-Constantin Mierla <[email protected]> Committer: Daniel-Constantin Mierla <[email protected]> Date: 2015-07-31T17:37:05+02:00 Merge pull request #272 from kamailio/lazedo-htable-patch-1 htable : fix $shtrecord(value) returned value --- Modified: modules/htable/ht_var.c --- Diff: https://github.com/kamailio/kamailio/commit/955463d6634202111594fd7867928ef64ac31010.diff Patch: https://github.com/kamailio/kamailio/commit/955463d6634202111594fd7867928ef64ac31010.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
