Browse Source

support for loose_routing in branches was missing, fixed.

Jan Janak 22 years ago
parent
commit
d399b7aa49
1 changed files with 3 additions and 1 deletions
  1. 3 1
      modules/tm/t_fwd.c

+ 3 - 1
modules/tm/t_fwd.c

@@ -423,7 +423,9 @@ int t_forward_nonack( struct cell *t, struct sip_msg* p_msg ,
 
 	init_branch_iterator();
 	while((current_uri.s=next_branch( &current_uri.len))) {
-		branch_ret=add_uac( t, p_msg, &current_uri, 0, proxy, proto);
+		branch_ret=add_uac( t, p_msg, &current_uri, 
+				    (p_msg->dst_uri.len) ? (&p_msg->dst_uri) : &current_uri, 
+				    proxy, proto);
 		/* pick some of the errors in case things go wrong;
 		   note that picking lowest error is just as good as
 		   any other algorithm which picks any other negative