Skip to content

fix(dialog): admit inbound INVITE-dialog CSeq before dispatch - #264

Merged
yeoleobun merged 1 commit into
restsend:mainfrom
dengxiayehu:upstream/inbound-cseq-admission
Nov 23, 2026
Merged

yeoleobun merged 1 commit into
restsend:mainfrom
dengxiayehu:upstream/inbound-cseq-admission

Conversation

@dengxiayehu

Copy link
Copy Markdown
Contributor

Behavior

An earlier in-dialog BYE can receive a 500 if the application happens to dispatch a later INFO first. For known INVITE dialogs, perform the existing CSeq admission check before handing the transaction to the application. Keep transaction and dialog handling concurrent. ACK and CANCEL continue to reuse their INVITE CSeq.

The UDP regression delivers both requests in a controlled wire order, processes INFO first in both cases, and checks that the BYE succeeds only when it arrived first.

Verification

  • The new regression returns 500 for the earlier BYE on unmodified main.
  • cargo test --offline --lib dialog::tests passed all 282 cases.

@yeoleobun
yeoleobun merged commit dbf9415 into restsend:main Nov 23, 2026
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