فهرست منبع

tm: free path if set first time in a branch route

Daniel-Constantin Mierla 14 سال پیش
والد
کامیت
7b612d999e
1فایلهای تغییر یافته به همراه4 افزوده شده و 0 حذف شده
  1. 4 0
      modules/tm/t_fwd.c

+ 4 - 0
modules/tm/t_fwd.c

@@ -374,6 +374,10 @@ static int prepare_new_uac( struct cell *t, struct sip_msg *i_req,
 			   ignored) */
 			next_hop=&i_req->dst_uri;
 		}
+		/* no path vector initially, but now is set after branch route and
+		 * callbacks execution */
+		if(i_req->path_vec.s!=0 && free_path==0)
+			free_path=1;
 	}else{
 		/* no branch route and no TMCB_REQUEST_FWDED callback => set
 		   msg uri and path to the new values (if needed) */