فهرست منبع

- fixed typo when testing for has_noisy_ctimer
- noisy_ctimer enabled for transactions with external value
of FR_INV_TIMER

Jan Janak 20 سال پیش
والد
کامیت
47168939de
2فایلهای تغییر یافته به همراه2 افزوده شده و 1 حذف شده
  1. 1 0
      modules/tm/t_reply.c
  2. 1 1
      modules/tm/timer.c

+ 1 - 0
modules/tm/t_reply.c

@@ -1319,6 +1319,7 @@ int reply_received( struct sip_msg  *p_msg )
 				DBG("reply_received: FR_INV_TIMER = %d\n", timer);
 				DBG("reply_received: FR_INV_TIMER = %d\n", timer);
 				set_timer( & uac->request.fr_timer,
 				set_timer( & uac->request.fr_timer,
 					   FR_INV_TIMER_LIST, &timer );
 					   FR_INV_TIMER_LIST, &timer );
+				t->flags |= T_NOISY_CTIMER_FLAG;
 			} else {
 			} else {
 				set_timer( & uac->request.fr_timer,
 				set_timer( & uac->request.fr_timer,
 					   FR_INV_TIMER_LIST, 0 );
 					   FR_INV_TIMER_LIST, 0 );

+ 1 - 1
modules/tm/timer.c

@@ -390,7 +390,7 @@ inline static void final_response_handler( struct timer_link *fr_tl )
 		/* don't go silent if disallowed globally ... */
 		/* don't go silent if disallowed globally ... */
 		&& noisy_ctimer==0
 		&& noisy_ctimer==0
 		/* ... or for this particular transaction */
 		/* ... or for this particular transaction */
-		&& has_noisy_ctimer(t);
+		&& has_noisy_ctimer(t) == 0;
 	if (silent) {
 	if (silent) {
 		UNLOCK_REPLIES(t);
 		UNLOCK_REPLIES(t);
 		DBG("DEBUG: final_response_handler: transaction silently dropped (%p)\n",t);
 		DBG("DEBUG: final_response_handler: transaction silently dropped (%p)\n",t);