Skip to content

Commit

Permalink
modules:ims_qos: Added new stat aar_replies_received
Browse files Browse the repository at this point in the history
  • Loading branch information
Richard Good committed Apr 14, 2015
1 parent b7075b1 commit 9ebf9a1
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions modules/ims_qos/ims_qos_stats.c
Expand Up @@ -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}
};

Expand Down
1 change: 1 addition & 0 deletions modules/ims_qos/ims_qos_stats.h
Expand Up @@ -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();
Expand Down
2 changes: 2 additions & 0 deletions modules/ims_qos/rx_aar.c
Expand Up @@ -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) {
Expand Down Expand Up @@ -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) {
Expand Down

0 comments on commit 9ebf9a1

Please sign in to comment.