[sr-dev] git:master:f39c41fb: modules/ims_dialog: fixed dialog stats

jaybeepee jason.penton at gmail.com
Fri Feb 12 19:05:26 CET 2016


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

Author: jaybeepee <jason.penton at gmail.com>
Committer: jaybeepee <jason.penton at gmail.com>
Date: 2016-02-12T20:00:21+02:00

modules/ims_dialog: fixed dialog stats

---

Modified: modules/ims_dialog/dlg_req_within.c

---

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

---

diff --git a/modules/ims_dialog/dlg_req_within.c b/modules/ims_dialog/dlg_req_within.c
index 44e1856..902fbe6 100644
--- a/modules/ims_dialog/dlg_req_within.c
+++ b/modules/ims_dialog/dlg_req_within.c
@@ -44,12 +44,14 @@
 #include "dlg_hash.h"
 #include "dlg_req_within.h"
 #include "dlg_db_handler.h"
+#include "dlg_ng_stats.h"
 
 #define MAX_FWD_HDR        "Max-Forwards: " MAX_FWD CRLF
 #define MAX_FWD_HDR_LEN    (sizeof(MAX_FWD_HDR) - 1)
 
 extern str dlg_extra_hdrs;
 extern int dlg_db_mode;
+extern struct dialog_ng_counters_h dialog_ng_cnts_h;
 
 int free_tm_dlg(dlg_t *td) {
     if (td) {
@@ -203,6 +205,9 @@ void bye_reply_cb(struct cell* t, int type, struct tmcb_params* ps) {
         } else {
             unref++;
         }
+        
+        counter_add(dialog_ng_cnts_h.active, -1);
+        
         /* dialog terminated (BYE) */
         run_dlg_callbacks(DLGCB_TERMINATED, dlg, ps->req, ps->rpl, DLG_DIR_NONE, 0);
 




More information about the sr-dev mailing list