Explorar o código

- Automatically enable noisy C timer when external timer value is set
through AVPs

Jan Janak %!s(int64=20) %!d(string=hai) anos
pai
achega
8ff4c8b5b8
Modificáronse 1 ficheiros con 4 adicións e 0 borrados
  1. 4 0
      modules/tm/t_funcs.h

+ 4 - 0
modules/tm/t_funcs.h

@@ -130,6 +130,10 @@ static void inline _set_fr_retr( struct retr_buf *rb, int retr )
 	if (!avp2timer(&timer, fr_timer_avp)) {
 		DBG("_set_fr_retr: FR_TIMER = %d\n", timer);
 		set_timer(&rb->fr_timer, FR_TIMER_LIST, &timer);
+		     /* Automatically enable noisy_ctimer for the
+		      * transaction
+		      */
+		rb->my_T->flags |= T_NOISY_CTIMER_FLAG;
 	} else {
 		set_timer(&rb->fr_timer, FR_TIMER_LIST, 0);
 	}