Module: kamailio
Branch: master
Commit: aa8d1ff214630f2b3bc2bc6d03c57e6b17a995a4
URL:
https://github.com/kamailio/kamailio/commit/aa8d1ff214630f2b3bc2bc6d03c57e6…
Author: jaybeepee <jason.penton(a)gmail.com>
Committer: jaybeepee <jason.penton(a)gmail.com>
Date: 2015-04-14T09:51:25+02:00
modules/ims_charging: added extra stat replies received for CCRs (reverted from commit
90d0a995a150b32f5300e919dca22bd0176642a2)
---
Modified: modules/ims_charging/ims_ro.c
---
Diff:
https://github.com/kamailio/kamailio/commit/aa8d1ff214630f2b3bc2bc6d03c57e6…
Patch:
https://github.com/kamailio/kamailio/commit/aa8d1ff214630f2b3bc2bc6d03c57e6…
---
diff --git a/modules/ims_charging/ims_ro.c b/modules/ims_charging/ims_ro.c
index 8078ad6..56b88a0 100644
--- a/modules/ims_charging/ims_ro.c
+++ b/modules/ims_charging/ims_ro.c
@@ -664,7 +664,7 @@ static void resume_on_interim_ccr(int is_timeout, void *param,
AAAMessage *cca,
}
counter_add(ims_charging_cnts_h.ccr_response_time, elapsed_msecs);
- counter_add(ims_charging_cnts_h.ccr_response_time, 1);
+ counter_inc(ims_charging_cnts_h.ccr_replies_received);
if (!i_req) {
LM_ERR("This is so wrong: ro session is NULL\n");
@@ -885,7 +885,7 @@ static void resume_on_termination_ccr(int is_timeout, void *param,
AAAMessage *c
goto error;
}
- counter_add(ims_charging_cnts_h.ccr_response_time, 1);
+ counter_inc(ims_charging_cnts_h.ccr_replies_received);
counter_add(ims_charging_cnts_h.ccr_response_time, elapsed_msecs);
if (!cca) {
@@ -1171,7 +1171,7 @@ static void resume_on_initial_ccr(int is_timeout, void *param,
AAAMessage *cca,
goto error0;
}
- counter_add(ims_charging_cnts_h.ccr_response_time, 1);
+ counter_inc(ims_charging_cnts_h.ccr_replies_received);
counter_add(ims_charging_cnts_h.ccr_response_time, elapsed_msecs);
if (!cca) {