Browse code

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)

Juha Heinanen authored on 19/12/2013 14:21:25
Showing 1 changed files
... ...
@@ -894,7 +894,7 @@ int tr_eval_uri(struct sip_msg *msg, tr_param_t *tp, int subtype,
894 894
 			val->ri = _tr_parsed_uri.port_no;
895 895
 			break;
896 896
 		case TR_URI_PARAMS:
897
-			val->rs = (_tr_parsed_uri.params.s)?_tr_parsed_uri.params:_tr_empty;
897
+			val->rs = (_tr_parsed_uri.sip_params.s)?_tr_parsed_uri.sip_params:_tr_empty;
898 898
 			break;
899 899
 		case TR_URI_PARAM:
900 900
 			if(tp==NULL)
... ...
@@ -902,7 +902,7 @@ int tr_eval_uri(struct sip_msg *msg, tr_param_t *tp, int subtype,
902 902
 				LM_ERR("param invalid parameters\n");
903 903
 				return -1;
904 904
 			}
905
-			if(_tr_parsed_uri.params.len<=0)
905
+			if(_tr_parsed_uri.sip_params.len<=0)
906 906
 			{
907 907
 				val->rs = _tr_empty;
908 908
 				val->flags = PV_VAL_STR;
... ...
@@ -912,7 +912,7 @@ int tr_eval_uri(struct sip_msg *msg, tr_param_t *tp, int subtype,
912 912
 
913 913
 			if(_tr_uri_params == NULL)
914 914
 			{
915
-				sv = _tr_parsed_uri.params;
915
+				sv = _tr_parsed_uri.sip_params;
916 916
 				if (parse_params(&sv, CLASS_ANY, &phooks, &_tr_uri_params)<0)
917 917
 					return -1;
918 918
 			}