Repository navigation
TEL-1253: report jitter buffer duplicate packets - #942
Merged
Merged
Conversation
alexfish8
approved these changes
Nov 6, 2026
Bump media-sdk to b1bcad3 (#114), which discards a duplicate that arrives while its original is still buffered, and counts it in PacketsDuplicate instead of PacketsDropped. Add jitter_buffer_packets_duplicate to the port and room call statistics.
hechen-eng
force-pushed
the
jitter-duplicate-stats
branch
from
November 6, 2026 19:09
be4e6ff to
6c78fbe
Compare
alexlivekit
approved these changes
Nov 6, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
The jitter buffer kept a duplicate packet that arrived while its original was still waiting behind a gap. It played the packet twice and added about 65,535 to the lost-packet count for each such event, so
jitter_buffer_packets_lostwas inflated on calls from carriers that send duplicates.Change
b1bcad3. TEL-1253: drop duplicates already in the jitter buffer media-sdk#114 discards a duplicate of a buffered packet and counts it in a newPacketsDuplicatestat. It is not a drop and does not call the packet-loss handler, because nothing is lost.jitter_buffer_packets_duplicateto the port and room call statistics, next tojitter_buffer_packets_stray, so duplicates are visible apart from real drops.