Browse code

Increase failed_dlgs when a non-2xx final response has been received only.

Timo Reimann authored on 05/07/2010 15:52:12
Showing 1 changed files
... ...
@@ -397,6 +397,9 @@ static void dlg_onreply(struct cell* t, int type, struct tmcb_params *param)
397 397
 			unref_dlg(dlg,unref);
398 398
 		if (old_state==DLG_STATE_EARLY)
399 399
 			if_update_stat(dlg_enable_stats, early_dlgs, -1);
400
+
401
+		if_update_stat(dlg_enable_stats, failed_dlgs, 1);
402
+
400 403
 		return;
401 404
 	}
402 405
 
... ...
@@ -645,7 +648,6 @@ int dlg_new_dialog(struct sip_msg *msg, struct cell *t)
645 645
 error:
646 646
 	unref_dlg(dlg,1);
647 647
 	profile_cleanup(msg, 0, NULL);
648
-	update_stat(failed_dlgs, 1);
649 648
 	return -1;
650 649
 }
651 650