Module: sip-router
Branch: 4.0
Commit: bd7eaa50b6f24a6404294d66e5ab91fcb04be3da
URL:
http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=bd7eaa5…
Author: Juha Heinanen <jh(a)tutpro.com>
Committer: Juha Heinanen <jh(a)tutpro.com>
Date: Thu Dec 19 16:21:25 2013 +0200
modules/pv: fixed params and param transformation
- params need to be taken from sip_params field of sip_uri struct
(cherry picked from commit e54b3ec673cb32664a1e8de2e591190f22216724)
---
modules/pv/pv_trans.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/modules/pv/pv_trans.c b/modules/pv/pv_trans.c
index 8f54cd0..482ce41 100644
--- a/modules/pv/pv_trans.c
+++ b/modules/pv/pv_trans.c
@@ -894,7 +894,7 @@ int tr_eval_uri(struct sip_msg *msg, tr_param_t *tp, int subtype,
val->ri = _tr_parsed_uri.port_no;
break;
case TR_URI_PARAMS:
- val->rs = (_tr_parsed_uri.params.s)?_tr_parsed_uri.params:_tr_empty;
+ val->rs = (_tr_parsed_uri.sip_params.s)?_tr_parsed_uri.sip_params:_tr_empty;
break;
case TR_URI_PARAM:
if(tp==NULL)
@@ -902,7 +902,7 @@ int tr_eval_uri(struct sip_msg *msg, tr_param_t *tp, int subtype,
LM_ERR("param invalid parameters\n");
return -1;
}
- if(_tr_parsed_uri.params.len<=0)
+ if(_tr_parsed_uri.sip_params.len<=0)
{
val->rs = _tr_empty;
val->flags = PV_VAL_STR;
@@ -912,7 +912,7 @@ int tr_eval_uri(struct sip_msg *msg, tr_param_t *tp, int subtype,
if(_tr_uri_params == NULL)
{
- sv = _tr_parsed_uri.params;
+ sv = _tr_parsed_uri.sip_params;
if (parse_params(&sv, CLASS_ANY, &phooks, &_tr_uri_params)<0)
return -1;
}