Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix RTT when SSRC rewriting is enabled. #2237

Merged
merged 4 commits into from
Oct 24, 2024
Merged

Conversation

bgrozev
Copy link
Member

@bgrozev bgrozev commented Oct 23, 2024

  • fix: Drop the packet if a preProcessor exists and rejects it.
  • fix: Also pre-process RTCP packets.
  • fix: Move the notifyRtcpSent call to the sender pipeline.

Reported by Philldomd here https://community.jitsi.org/t/version-9646-changes-websocket-removed-and-with-that-rtt-and-jitter-became-0-on-metrics/134871/8

Notably, this calls the notifier after the RTCP packet has passed
the preProcessor where SSRC rewriting may change the packet.

The callback is also moved from the receiver pipeline thread (calling
into Conference.sendOut -> Endpoint.send) to the sender pipeline thread.

The only code which uses this callback is EndpointConnectionStats,
which saves sent SRs to calculate RTT. This commit fixes the RTT
calculation when SSRC rewriting is used.
JonathanLennox
JonathanLennox previously approved these changes Oct 23, 2024
@bgrozev bgrozev merged commit 7245c6a into jitsi:master Oct 24, 2024
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants