Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sipsess/listen: improve glare handling #1071

Merged
merged 1 commit into from
Feb 27, 2024

Conversation

maximilianfridrich
Copy link
Contributor

@maximilianfridrich maximilianfridrich commented Feb 22, 2024

This implements the UAS behavior exactly as RFC 3261 section 14.2 states that it MUST be.

Specifically, the relevant section states

   A UAS that receives a second INVITE before it sends the final
   response to a first INVITE with a lower CSeq sequence number on the
   same dialog MUST return a 500 (Server Internal Error) response to the
   second INVITE and MUST include a Retry-After header field with a
   randomly chosen value of between 0 and 10 seconds.

   A UAS that receives an INVITE on a dialog while an INVITE it had sent
   on that dialog is in progress MUST return a 491 (Request Pending)
   response to the received INVITE.

This implements the UAS behavior exactly as RFC 3261 section 14.2 states
that it MUST be.
@sreimers sreimers merged commit 7d1467c into baresip:main Feb 27, 2024
36 checks passed
@maximilianfridrich maximilianfridrich deleted the improve_glare_handling branch April 17, 2024 07:25
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