Repository navigation
Conversation
When the first RTP packet arrives inside UPDATE_WINDOW, _rtpp_stream_latch() records no SSRC, yet the address is filled in and marked latched, and _rtpp_stream_check_latch_override() then refused every later source change for the rest of the call. Allow the override inside the update window even without an SSRC, and record the SSRC it latches. Fixes sippy#186. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.
Fixes #186.
Repro: send an offer twice, then have the caller send its first RTP from a port other than the pre-filled one inside UPDATE_WINDOW. The stream is filled in and marked latched without an SSRC, so after the next
Ua move to a new source port is ignored for the rest of the call (one-way audio).Fix:
_rtpp_stream_check_latch_override()now allows the override inside the update window when no SSRC was latched, and records the SSRC it latches. Outside the window an unknown SSRC is still refused.Test: new
forwarding/relatch_nossrcrelays 0/10 packets after the move on master and 10/10 with the change.command_parser1andul_subcpass locally;forwarding1does not complete in my environment with or without the change (playback/copy steps), so CI is the reference there.AI-assisted (Claude Code).