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

sess,request: deref request and ctrans immediately #1099

Merged
merged 1 commit into from
Apr 17, 2024

Conversation

maximilianfridrich
Copy link
Contributor

@maximilianfridrich maximilianfridrich commented Apr 9, 2024

... if no provisional response was received for the request.

This caused the following undesirable behavior with UDP: A user starts a call, doesn't get a response and so the user cancels it. Shortly after, the recipient of the INVITE goes online, receives a UDP retransmission of the INVITE and sends a response. The user could suddenly be in a call they thought they cancelled.

With this change, if a SIP session is terminated, the underlying request and ctrans are destroyed immediately if no response was received at all.

For reliable transports this does not happen because a transport error would occur and there are no retransmissions.

if no provisional response was received for the request.
@sreimers sreimers merged commit 3a60c39 into baresip:main Apr 17, 2024
37 checks passed
@maximilianfridrich maximilianfridrich deleted the term_req_immediately branch April 17, 2024 06:39
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.

None yet

2 participants