Sfoglia il codice sorgente

support for loose_routing in branches was missing, fixed.

Jan Janak 22 anni fa
parent
commit
d399b7aa49
1 ha cambiato i file con 3 aggiunte e 1 eliminazioni
  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();
 	init_branch_iterator();
 	while((current_uri.s=next_branch( &current_uri.len))) {
 	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;
 		/* pick some of the errors in case things go wrong;
 		   note that picking lowest error is just as good as
 		   note that picking lowest error is just as good as
 		   any other algorithm which picks any other negative
 		   any other algorithm which picks any other negative