Skip to content

fix: clear expire params of Contact#93

Merged
yeoleobun merged 1 commit intorestsend:mainfrom
yeoleobun:main
Feb 4, 2026
Merged

fix: clear expire params of Contact#93
yeoleobun merged 1 commit intorestsend:mainfrom
yeoleobun:main

Conversation

@yeoleobun
Copy link
Collaborator

Current register will save the Contact in the response of Register, which contain an expire paramter. This contact will used for later Register.

Accoring RFC 3261 10.2.1.1 Setting the Expiration Interval of Contact Addresses:

There are two ways in which a client can suggest an expiration
interval for a binding: through an Expires header field or an
"expires" Contact header parameter. The latter allows expiration
intervals to be suggested on a per-binding basis when more than one
binding is given in a single REGISTER request, whereas the former
suggests an expiration interval for all Contact header field values
that do not contain the "expires" parameter.

Ff they both present, the expire params will override the Expire header.

This broke the unregister.

@yeoleobun yeoleobun merged commit de258bb into restsend:main Feb 4, 2026
3 checks 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