[Asterisk-code-review] res_rtp: Add unit tests for RTCP stats. (...asterisk[16])
Benjamin Keith Ford
asteriskteam at digium.com
Tue Sep 10 13:10:31 CDT 2019
Hello Kevin Harwell, Friendly Automation, George Joseph, Joshua Colp,
I'd like you to reexamine a change. Please visit
https://gerrit.asterisk.org/c/asterisk/+/12813
to look at the new patch set (#7).
Change subject: res_rtp: Add unit tests for RTCP stats.
......................................................................
res_rtp: Add unit tests for RTCP stats.
Added unit tests for RTCP video stats. These tests include NACK, REMB,
FIR/FUR/PLI, SR/RR/SDES, and packet loss statistics. The REMB and FIR
tests are currently disabled due to a bug. We expect to receive a
compound packet, but the code sends this out as a single packet, which
the browser accepts, but makes Asterisk upset.
While writing these tests, I noticed an issue with NACK as well. Where
it is handling a received NACK request, it was reading in only the first
8 bits of following packets that were also lost. This has been changed
to the correct value of 16 bits.
Also made a minor fix to the data buffer unit test.
Change-Id: I56107c7411003a247589bbb6086d25c54719901b
---
M include/asterisk/rtp_engine.h
M main/rtp_engine.c
M res/res_rtp_asterisk.c
M tests/test_data_buffer.c
A tests/test_res_rtp.c
5 files changed, 831 insertions(+), 6 deletions(-)
git pull ssh://gerrit.asterisk.org:29418/asterisk refs/changes/13/12813/7
--
To view, visit https://gerrit.asterisk.org/c/asterisk/+/12813
To unsubscribe, or for help writing mail filters, visit https://gerrit.asterisk.org/settings
Gerrit-Project: asterisk
Gerrit-Branch: 16
Gerrit-Change-Id: I56107c7411003a247589bbb6086d25c54719901b
Gerrit-Change-Number: 12813
Gerrit-PatchSet: 7
Gerrit-Owner: Benjamin Keith Ford <bford at digium.com>
Gerrit-Reviewer: Friendly Automation
Gerrit-Reviewer: George Joseph <gjoseph at digium.com>
Gerrit-Reviewer: Joshua Colp <jcolp at digium.com>
Gerrit-Reviewer: Kevin Harwell <kharwell at digium.com>
Gerrit-MessageType: newpatchset
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-code-review/attachments/20190910/e2d19839/attachment.html>
More information about the asterisk-code-review
mailing list