Skip to content

Conversation

@jaminh
Copy link
Collaborator

@jaminh jaminh commented Jun 27, 2025

@jaminh jaminh mentioned this pull request Jul 1, 2025
Schlepptop and others added 4 commits July 2, 2025 20:17
Add tag in TO header if not present
As is the tag parameter will get added outside the angle brackets when a
header value has a description.
Add parsing of parameters and headers in SIP URIs in the SipEndpoint
class.
@jaminh jaminh force-pushed the fix-missing-tag branch from c189e16 to 2c8c6f6 Compare July 13, 2025 20:30
@jaminh
Copy link
Collaborator Author

jaminh commented Jul 23, 2025

Based on https://datatracker.ietf.org/doc/html/rfc3261#section-20.10 and example messages I have seen in testing it appears the tag parameter is getting added after the ">", so the parsing and header generation logic I have here isn't quite right.

Contact, To, and From headers may contain header parameters in addition
to the SIP URI containing URI parameters.
@jaminh
Copy link
Collaborator Author

jaminh commented Jul 25, 2025

My header parsing was not accounting for the fact that Contact, To, and From headers may contain header parameters in addition to the URI parameters of the SIP URI. The tag parameter specified in RFC 3261 is a header parameter not a URI parameter.

@jaminh jaminh merged commit da4fb22 into home-assistant-libs:master Jul 26, 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.

2 participants