[sr-dev] git:master:790b42c8: modules/dialog_ng: changed stats to use native counters instead

Jason Penton jason.penton at gmail.com
Thu Feb 5 13:06:38 CET 2015


Module: kamailio
Branch: master
Commit: 790b42c8485672866919180992d1ee246422b87e
URL: https://github.com/kamailio/kamailio/commit/790b42c8485672866919180992d1ee246422b87e

Author: Jason Penton <jason.penton at gmail.com>
Committer: Jason Penton <jason.penton at gmail.com>
Date: 2015-02-05T14:05:56+02:00

modules/dialog_ng: changed stats to use native counters instead
	- suggested by Olle

---

Modified: modules/dialog_ng/dlg_handlers.c

---

Diff:  https://github.com/kamailio/kamailio/commit/790b42c8485672866919180992d1ee246422b87e.diff
Patch: https://github.com/kamailio/kamailio/commit/790b42c8485672866919180992d1ee246422b87e.patch

---

diff --git a/modules/dialog_ng/dlg_handlers.c b/modules/dialog_ng/dlg_handlers.c
index 4871dfa..4974e63 100644
--- a/modules/dialog_ng/dlg_handlers.c
+++ b/modules/dialog_ng/dlg_handlers.c
@@ -556,6 +556,7 @@ static void dlg_onreply(struct cell* t, int type, struct tmcb_params *param) {
             ref_dlg(dlg, 1);
         }
 
+	counter_inc(dialog_ng_counters_h.active);
         run_dlg_callbacks(DLGCB_CONFIRMED, dlg, req, rpl, DLG_DIR_UPSTREAM, 0);
 
         if (unref) unref_dlg(dlg, unref);




More information about the sr-dev mailing list