From 86863cd0895bea72555f0d9849d5afab017ce998 Mon Sep 17 00:00:00 2001 From: Gautier Pelloux-Prayer Date: Tue, 28 Apr 2015 14:25:19 +0200 Subject: [PATCH] quality_reporting_tester.c: Fix "Interval report if interval is configured" test by resetting RTCP SR count at each report --- tester/quality_reporting_tester.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tester/quality_reporting_tester.c b/tester/quality_reporting_tester.c index 33df384be..ca8f563e1 100644 --- a/tester/quality_reporting_tester.c +++ b/tester/quality_reporting_tester.c @@ -70,6 +70,8 @@ void on_report_send_mandatory(const LinphoneCall *call, int stream_type, const L CU_ASSERT_PTR_NOT_NULL(body=__strstr(body, "DialogID:")); if (report->remote_metrics.rtcp_sr_count&&ms!=NULL&&ms->rc!=NULL){ + /* Hack: reset rtcp_sr_count to 0 because in case of interval reports, we need one RTCP SR by interval */ + report->remote_metrics.rtcp_sr_count=0; CU_ASSERT_PTR_NOT_NULL(body=__strstr(body, "AdaptiveAlg:")); } }