Module: sip-router
Branch: master
Commit: e54b3ec673cb32664a1e8de2e591190f22216724
URL:
http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=e54b3ec…
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
---
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 738efca..7c75deb 100644
--- a/modules/pv/pv_trans.c
+++ b/modules/pv/pv_trans.c
@@ -1025,7 +1025,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)
@@ -1033,7 +1033,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;
@@ -1043,7 +1043,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;
}