Skip to content

Re-latch a stream that was filled in without an SSRC - #204

Open
KainanP wants to merge 1 commit into
sippy:masterfrom
KainanP:relatch-without-ssrc
Open

KainanP wants to merge 1 commit into
sippy:masterfrom
KainanP:relatch-without-ssrc

Conversation

@KainanP

@KainanP KainanP commented Nov 30, 2026

Copy link
Copy Markdown

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 U a 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_nossrc relays 0/10 packets after the move on master and 10/10 with the change. command_parser1 and ul_subc pass locally; forwarding1 does not complete in my environment with or without the change (playback/copy steps), so CI is the reference there.

AI-assisted (Claude Code).

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>
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.

Stream latched without SSRC inside UPDATE_WINDOW can never re-latch (one-way audio after re-INVITE

1 participant