Skip to content

Conversation

@jaminh
Copy link
Collaborator

@jaminh jaminh commented Jul 23, 2025

Use the values from the Via header for determining the host and port to send responses to. If the Via header can not be used fall back to the Contact header. If both the Via header and Contact header can not be used fall back to the peer host and port from the transport the message was received on.

The Contact header value is also being added to the CallInfo object. This should allow Home Assistant to save the associated URI to use for making outgoing calls, per https://datatracker.ietf.org/doc/html/rfc3261#section-8.1.1.8.

Use the values from the Via header for determining the host and port to
send responses to. If the Via header can not be used fall back to the
Contact header. If both the Via header and Contact header can not be
used fall back to the peer host and port from the transport the message
was received on.
@jaminh jaminh force-pushed the response-host-port branch from 895e4cb to dfc18e6 Compare July 26, 2025 20:42
@jaminh jaminh merged commit 1292ef0 into home-assistant-libs:master Jul 29, 2025
1 check 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.

1 participant