Skip to content

Conversation

@alexlivekit
Copy link
Contributor

No description provided.

@alexlivekit alexlivekit requested a review from a team as a code owner October 20, 2025 23:44
req.RemoveHeader("Call-ID")
req.AppendHeader(&callID)

req.SetDestination(dest)
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Removed, it now defaults to req.Destination(), which already respects Route headers.
This looks like it was introduced in the first iteration of outbound calling altogether.
The one possible downside I see to this is we will potentially re-resolve if DNS cache expires exactly in-between attempt 1 and any following re-transmit/re-auth attempt, causing an extra bit of latency.
However. I think this is still the right thing to do here.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Update: Denys recalled the possible reason for this was to avoid DNS re-resolution mid call, possibly arriving to a different host without the previous INVITE credentials.

That is absolutely a valid concern,m but not for this change - req.SetDestination() simply stores a string, so we're subject to DNS re-resolution today, with SetDestination or without.

@alexlivekit alexlivekit changed the title TEL-177: Fix outbound destination setting to honor Route headers Fix outbound destination setting to honor Route headers Oct 21, 2025
@dennwc dennwc merged commit d02bf0c into main Oct 23, 2025
6 checks passed
@dennwc dennwc deleted the route-outbound-calls-fix branch October 23, 2025 12:32
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.

3 participants