Allow per-call sideband endpoints for existing realtime calls (#41923)

## What changed

- Add an in-process `sideband_base_url` override to `ConversationStartTransport::ExistingCall`, while keeping app-server requests on the configured or default endpoint.
- Prefer the per-call endpoint when attaching and reconnecting a sideband, falling back to `experimental_realtime_ws_base_url` when no override is supplied.
- Preserve runtime authentication headers on the selected endpoint without adding bearer authorization.

## Testing

- Cover configured and per-call endpoint selection, authentication headers, call-specific handshake paths, and reconnect behavior.

GitOrigin-RevId: 16c439fe0a9ff8bcdda4ec615bb9983e30935052
This commit is contained in:
Zahan Malkani authored and copyberry committed 2026-08-31 22:29:40 +00:00
1 parent 0344625ccf
commit 34c4f7e72d
6 files changed
+208 -19

No files matched your search

@@ -1272,7 +1272,10 @@ impl TurnRequestProcessor {
ConversationStartTransport::Webrtc { sdp }
}
ThreadRealtimeStartTransport::ExistingCall { call_id } => {
ConversationStartTransport::ExistingCall { call_id }
ConversationStartTransport::ExistingCall {
call_id,
sideband_base_url: None,
}
}
}),
version: params.version,