Module: kamailio
Branch: master
Commit: 9ebf9a1461b4da608e211fc5ba68f517584b03dc
URL:
https://github.com/kamailio/kamailio/commit/9ebf9a1461b4da608e211fc5ba68f51…
Author: Richard Good <richard.good(a)smilecoms.com>
Committer: Richard Good <richard.good(a)smilecoms.com>
Date: 2015-04-14T09:37:43+02:00
modules:ims_qos: Added new stat aar_replies_received
---
Modified: modules/ims_qos/ims_qos_stats.c
Modified: modules/ims_qos/ims_qos_stats.h
Modified: modules/ims_qos/rx_aar.c
---
Diff:
https://github.com/kamailio/kamailio/commit/9ebf9a1461b4da608e211fc5ba68f51…
Patch:
https://github.com/kamailio/kamailio/commit/9ebf9a1461b4da608e211fc5ba68f51…
---
diff --git a/modules/ims_qos/ims_qos_stats.c b/modules/ims_qos/ims_qos_stats.c
index ea1eda8..2b08ccc 100644
--- a/modules/ims_qos/ims_qos_stats.c
+++ b/modules/ims_qos/ims_qos_stats.c
@@ -74,6 +74,7 @@ counter_def_t ims_qos_cnt_defs[] = {
{&ims_qos_cnts_h.media_aars, "media_aars", 0, 0, 0,
"total number of media AARs"},
{&ims_qos_cnts_h.successful_media_aars,
"successful_media_aars", 0, 0, 0, "total number of successful media
AARs"},
{&ims_qos_cnts_h.media_aar_response_time,
"media_aar_response_time", 0, 0, 0, "total number of seconds waiting
for media AAR responses"},
+ {&ims_qos_cnts_h.aar_replies_received, "aar_replies_received", 0,
0, 0, "total number of AAR replies received"},
{0, 0, 0, 0, 0, 0}
};
diff --git a/modules/ims_qos/ims_qos_stats.h b/modules/ims_qos/ims_qos_stats.h
index a1d4d48..3b1638f 100644
--- a/modules/ims_qos/ims_qos_stats.h
+++ b/modules/ims_qos/ims_qos_stats.h
@@ -26,6 +26,7 @@ struct ims_qos_counters_h {
counter_handle_t media_aars;
counter_handle_t successful_media_aars;
counter_handle_t active_media_rx_sessions;
+ counter_handle_t aar_replies_received;
};
int ims_qos_init_counters();
diff --git a/modules/ims_qos/rx_aar.c b/modules/ims_qos/rx_aar.c
index 69e2479..a09feaf 100644
--- a/modules/ims_qos/rx_aar.c
+++ b/modules/ims_qos/rx_aar.c
@@ -130,6 +130,7 @@ void async_aar_callback(int is_timeout, void *param, AAAMessage *aaa,
long elaps
counter_inc(ims_qos_cnts_h.media_aars);
counter_add(ims_qos_cnts_h.media_aar_response_time, elapsed_msecs);
+ counter_inc(ims_qos_cnts_h.aar_replies_received);
/* Process the response to AAR, retrieving result code and associated Rx session ID
*/
if (rx_process_aaa(aaa, &cdp_result) < 0) {
@@ -241,6 +242,7 @@ void async_aar_reg_callback(int is_timeout, void *param, AAAMessage
*aaa, long e
counter_inc(ims_qos_cnts_h.registration_aars);
counter_add(ims_qos_cnts_h.registration_aar_response_time, elapsed_msecs);
+ counter_inc(ims_qos_cnts_h.aar_replies_received);
/* Process the response to AAR, retrieving result code and associated Rx session ID
*/
if (rx_process_aaa(aaa, &cdp_result) < 0) {