Browse Source

- silent final response timeout disabled when FAILURE callbacks are
registered

Bogdan-Andrei Iancu 21 years ago
parent
commit
be1ec8d034
1 changed files with 4 additions and 2 deletions
  1. 4 2
      modules/tm/timer.c

+ 4 - 2
modules/tm/timer.c

@@ -379,9 +379,11 @@ inline static void final_response_handler( void *attr)
 		&& t->is_invite
 		/* parallel forking does not allow silent state discarding */
 		&& t->nr_of_outgoings==1
-		/* on_no_reply handler not installed -- serial forking could occur 
-		   otherwise */
+		/* on_negativ reply handler not installed -- serial forking 
+		 * could occur otherwise */
 		&& t->on_negative==0
+		/* the same for FAILURE callbacks */
+		&& (t->tmcb_hl.reg_types&(TMCB_ON_FAILURE_RO|TMCB_ON_FAILURE))==0
 		/* something received -- we will not be silent on error */
 		&& t->uac[r_buf->branch].last_received>0
 		/* don't go silent if disallowed globally ... */