Browse Source

*** empty log message ***

Bogdan-Andrei Iancu 23 năm trước cách đây
mục cha
commit
c6beb39aef
2 tập tin đã thay đổi với 8 bổ sung21 xóa
  1. 5 18
      modules/tm/t_funcs.c
  2. 3 3
      test/th-uri.cfg

+ 5 - 18
modules/tm/t_funcs.c

@@ -303,28 +303,15 @@ int t_put_on_wait(  struct cell  *Trans  )
 	DBG("DEBUG: t_put_on_wait: stopping timers (FR and RETR)\n");
 	reset_retr_timers(hash_table,Trans) ;
 
+#ifdef SILENT_FR
+	if (Trans->nr_of_outgoings>1)
+#endif
+	{
 	/* cancel pending client transactions, if any */
 	for( i=0 ; i<Trans->nr_of_outgoings ; i++ )
 		if ( Trans->uac[i].rpl_received && Trans->uac[i].status<200 )
 			t_build_and_send_CANCEL(Trans , i);
-
-
-	/* we don't need outbound requests anymore -- let's save
-	   memory and junk them right now!
-	*/
-/*
-	shm_lock();
-	for ( i =0 ; i<Trans->nr_of_outgoings;  i++ )
-	{
-		if ( rb=Trans->outbound_request[i] )
-		{
-			if (rb->retr_buffer) shm_free_unsafe( rb->retr_buffer );
-			Trans->outbound_request[i] = NULL;
-			shm_free_unsafe( rb );
-		}
 	}
-	shm_unlock();
-*/
 
 	/* adds to Wait list*/
 	set_timer( hash_table, &(Trans->wait_tl), WT_TIMER_LIST );
@@ -712,7 +699,7 @@ inline void final_response_handler( void *attr)
 	if ( r_buf->my_T->uac[r_buf->branch].status<200
 #ifdef SILENT_FR
 	&& (r_buf->my_T->nr_of_outgoings>1)
-	/*should be fork==yes, but we don't have forking yet - bogdan */
+	/* fork==yes  - bogdan */
 #endif
 	)
 	{

+ 3 - 3
test/th-uri.cfg

@@ -62,11 +62,11 @@ route{
 	};
 */
 	t_clear_forks();
-	if (method=="INVITE")
+/*	if (method=="INVITE")
 	{
 		#t_fork_to("195.37.78.143","5060");
-		t_fork_to("195.37.78.246","5060");
+		#t_fork_to("195.37.78.246","5060");
 	};
-	
+*/	
 	t_relay();
 }