Browse code

support for loose_routing in branches was missing, fixed.

Jan Janak authored on 01/04/2003 11:59:08
Showing 1 changed files
... ...
@@ -423,7 +423,9 @@ int t_forward_nonack( struct cell *t, struct sip_msg* p_msg ,
423 423
 
424 424
 	init_branch_iterator();
425 425
 	while((current_uri.s=next_branch( &current_uri.len))) {
426
-		branch_ret=add_uac( t, p_msg, &current_uri, 0, proxy, proto);
426
+		branch_ret=add_uac( t, p_msg, &current_uri, 
427
+				    (p_msg->dst_uri.len) ? (&p_msg->dst_uri) : &current_uri, 
428
+				    proxy, proto);
427 429
 		/* pick some of the errors in case things go wrong;
428 430
 		   note that picking lowest error is just as good as
429 431
 		   any other algorithm which picks any other negative