Explorar el Código

- ACK forking hack is not needed anymore since we have proper Route based
ACK routing. The code would not even compile.

Jan Janak hace 20 años
padre
commit
9a7cd11e43
Se han modificado 2 ficheros con 0 adiciones y 35 borrados
  1. 0 9
      modules/tm/config.h
  2. 0 26
      modules/tm/t_funcs.c

+ 0 - 9
modules/tm/config.h

@@ -80,15 +80,6 @@
 #define CANCEL_DONE "ok -- no more pending branches"
 #define CANCELED "Request canceled"
 
-/* Acknowledgment forking hack -- that is good for phones
-   which send ACKs to the same outbound proxy; if forking is
-   enabled, the proxy wouldn't know to which branch to forward;
-   without forking, it could forward to other branch than from
-   which a reply came back, resulting in UAS never seeing it;
-   this hack has not been tested yet
-*/
-#undef ACK_FORKING_HACK
-
 /* to-tag separator for stateful processing */
 #define TM_TAG_SEPARATOR '-'
 

+ 0 - 26
modules/tm/t_funcs.c

@@ -214,10 +214,6 @@ int t_relay_to( struct sip_msg  *p_msg , struct proxy_l *proxy, int proto,
 	int reply_ret;
 	/* struct hdr_field *hdr; */
 	struct cell *t;
-#ifdef ACK_FORKING_HACK
-	str ack_uri;
-	str backup_uri;
-#endif
 
 	ret=0;
 
@@ -254,31 +250,9 @@ int t_relay_to( struct sip_msg  *p_msg , struct proxy_l *proxy, int proto,
 			ret=forward_request( p_msg , proxy, proto) ;
 			free_proxy( proxy );	
 			pkg_free( proxy );
-#ifdef ACK_FORKING_HACK
-			backup_uri=p_msg->new_uri;
-			init_branch_iterator();
-			while((ack_uri.s=next_branch(&ack_uri.len))) {
-				p_msg->new_uri=ack_uri;
-				proxy=uri2proxy(GET_NEXT_HOP(p_msg), proto);
-				if (proxy==0) continue;
-				forward_request(p_msg, proxy, proxy->proto); /* ok, uri2proxy*/
-				free_proxy( proxy );	
-				pkg_free( proxy );
-			}
-			p_msg->new_uri=backup_uri;
-#endif
 		} else {
 			proto=get_proto(proto, proxy->proto);
 			ret=forward_request( p_msg , proxy, proto ) ;
-#ifdef ACK_FORKING_HACK
-			backup_uri=p_msg->new_uri;
-			init_branch_iterator();
-			while((ack_uri.s=next_branch(&ack_uri.len))) {
-				p_msg->new_uri=ack_uri;
-				forward_request(p_msg, proxy, proto);
-			}
-			p_msg->new_uri=backup_uri;
-#endif
 		}
 		goto done;
 	}