From e29835b9545ae6a7c1943ff1dad338bef1599945 Mon Sep 17 00:00:00 2001 From: Richard Fuchs Date: Thu, 19 May 2022 09:25:07 -0400 Subject: [PATCH] TT#178352 report additional metrics at end of call Change-Id: I3725e00ae964851887b92ed09b752726b23da67f --- daemon/call.c | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/daemon/call.c b/daemon/call.c index 0c5d5be00..2ebe3ba30 100644 --- a/daemon/call.c +++ b/daemon/call.c @@ -3561,6 +3561,31 @@ void call_destroy(struct call *c) { (unsigned int) (timeval_diff(&se->highest_mos->reported, &c->created) / 1000000) / 60, (unsigned int) (timeval_diff(&se->highest_mos->reported, &c->created) / 1000000) % 60, (unsigned int) se->packets_lost); + ilog(LOG_INFO, "------ respective (avg/min/max) jitter %" PRIu64 "/%" PRIu64 "/%" PRIu64 " ms, " + "RTT-e2e %" PRIu64 ".%" PRIu64 "/%" PRIu64 ".%" PRIu64 + "/%" PRIu64 ".%" PRIu64 " ms, " + "RTT-dsct %" PRIu32 ".%" PRIu32 "/%" PRIu32 ".%" PRIu32 + "/%" PRIu32 ".%" PRIu32 " ms, " + "packet loss %" PRIu64 "/%" PRIu64 "/%" PRIu64 "%%", + se->average_mos.jitter / mos_samples, + se->lowest_mos->jitter, + se->highest_mos->jitter, + se->average_mos.rtt / mos_samples / 1000, + (se->average_mos.rtt / mos_samples / 100) % 10, + se->lowest_mos->rtt / 1000, + (se->lowest_mos->rtt / 100) % 10, + se->highest_mos->rtt / 1000, + (se->highest_mos->rtt / 100) % 10, + se->average_mos.rtt_leg / mos_samples / 1000, + (se->average_mos.rtt_leg / mos_samples / 100) % 10, + se->lowest_mos->rtt_leg / 1000, + (se->lowest_mos->rtt_leg / 100) % 10, + se->highest_mos->rtt_leg / 1000, + (se->highest_mos->rtt_leg / 100) % 10, + se->average_mos.packetloss / mos_samples, + se->lowest_mos->packetloss, + se->highest_mos->packetloss); + next_k: k = g_list_delete_link(k, k); }