Skip to content

TEL-1253: report jitter buffer duplicate packets - #942

Merged
hechen-eng merged 1 commit into
mainfrom
jitter-duplicate-stats
Nov 6, 2026
Merged

hechen-eng merged 1 commit into
mainfrom
jitter-duplicate-stats

Conversation

@hechen-eng

Copy link
Copy Markdown
Contributor

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_lost was inflated on calls from carriers that send duplicates.

Change

  • Bump media-sdk to 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 new PacketsDuplicate stat. It is not a drop and does not call the packet-loss handler, because nothing is lost.
  • Add jitter_buffer_packets_duplicate to the port and room call statistics, next to jitter_buffer_packets_stray, so duplicates are visible apart from real drops.

@devin-ai-integration devin-ai-integration Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ Devin Review: No Issues Found

Devin Review analyzed this PR and found no bugs or issues to report.

Devin Review

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
hechen-eng force-pushed the jitter-duplicate-stats branch from be4e6ff to 6c78fbe Compare November 6, 2026 19:09
@hechen-eng
hechen-eng merged commit 4bf4e86 into main Nov 6, 2026
9 checks passed
@hechen-eng
hechen-eng deleted the jitter-duplicate-stats branch November 6, 2026 19:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants