[sr-dev] git:master: Increase failed_dlgs when a non-2xx final response has been

Timo Reimann timo.reimann at 1und1.de
Tue Jul 13 18:51:12 CEST 2010


Module: sip-router
Branch: master
Commit: dd9681ce5f6602c888d847a283eaaf637318994d
URL:    http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=dd9681ce5f6602c888d847a283eaaf637318994d

Author: Timo Reimann <timo.reimann at 1und1.de>
Committer: Timo Reimann <timo.reimann at 1und1.de>
Date:   Mon Jul  5 17:52:12 2010 +0200

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

---

 modules_k/dialog/dlg_handlers.c |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/modules_k/dialog/dlg_handlers.c b/modules_k/dialog/dlg_handlers.c
index 5fd3d31..ad892b6 100644
--- a/modules_k/dialog/dlg_handlers.c
+++ b/modules_k/dialog/dlg_handlers.c
@@ -397,6 +397,9 @@ static void dlg_onreply(struct cell* t, int type, struct tmcb_params *param)
 			unref_dlg(dlg,unref);
 		if (old_state==DLG_STATE_EARLY)
 			if_update_stat(dlg_enable_stats, early_dlgs, -1);
+
+		if_update_stat(dlg_enable_stats, failed_dlgs, 1);
+
 		return;
 	}
 
@@ -645,7 +648,6 @@ int dlg_new_dialog(struct sip_msg *msg, struct cell *t)
 error:
 	unref_dlg(dlg,1);
 	profile_cleanup(msg, 0, NULL);
-	update_stat(failed_dlgs, 1);
 	return -1;
 }
 




More information about the sr-dev mailing list