Skip to content

fix: parse REGISTER response Contact headers#103

Merged
shenjinti merged 1 commit intorestsend:mainfrom
yeoleobun:yeoleobun/fix-register-response-contact
Mar 13, 2026
Merged

fix: parse REGISTER response Contact headers#103
shenjinti merged 1 commit intorestsend:mainfrom
yeoleobun:yeoleobun/fix-register-response-contact

Conversation

@yeoleobun
Copy link
Collaborator

@yeoleobun yeoleobun commented Mar 10, 2026

self.contact = contact.typed().ok(); in registration.rs will fail when there are multiple Contact in the Contact Header and it also fail when receive Contact from Kamaillio like this:

"Contact: <sip:1001@198.51.100.20:56734;transport=udp>;expires=573;+sip.instance=\"<urn:uuid:aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee>\", <sip:1001@192.0.2.10:13050>;expires=3600\r\n"

Since there are many place may need this work around, so i add an new function typed_contact_headers

@yeoleobun yeoleobun force-pushed the yeoleobun/fix-register-response-contact branch from 43a55af to 6cffbdb Compare March 10, 2026 07:31
@shenjinti shenjinti merged commit f226403 into restsend:main Mar 13, 2026
3 checks passed
@yeoleobun yeoleobun deleted the yeoleobun/fix-register-response-contact branch March 16, 2026 13:30
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