Skip to content

Roll the offer back when a re-INVITE cannot be sent - #1130

Open
23Skidoo wants to merge 1 commit into
onsip:mainfrom
23Skidoo:upstream-offer-rollback
Open

Roll the offer back when a re-INVITE cannot be sent#1130
23Skidoo wants to merge 1 commit into
onsip:mainfrom
23Skidoo:upstream-offer-rollback

Conversation

@23Skidoo

@23Skidoo 23Skidoo commented Aug 26, 2026

Copy link
Copy Markdown

Session.invite creates the offer and applies it before handing the request to the dialog, so a dialog that refuses to send leaves that offer in place. The session stays up and every attempt after it fails earlier still, while creating its description, because the peer connection is no longer stable. SessionManager.hold() sends its re-INVITE through this path, so one refused hold leaves a session that can never be held again.

The same rollback already runs when a re-INVITE is answered non-2xx; this extends it to the case where the request never reached the wire. Note it has effect only once the web handler implements rollbackDescription, proposed separately in #1129.


This contribution was prepared with LLM assistance (Claude): the investigation, the change, and this description. A human reviewed it and stands behind the submission.

invite() creates the offer and applies it before handing the request to the
dialog, so a dialog that refuses to send leaves that offer in place. The
session stays up and every attempt after it fails earlier still, while
creating its description, because the peer connection is no longer stable.

The same rollback already runs when a re-INVITE is answered non-2xx. This
extends it to the case where the request never reached the wire.
@23Skidoo
23Skidoo marked this pull request as ready for review August 26, 2026 05:46
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