Skip to content

fix(dialog): order outgoing CSeq through the first transport write - #265

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

yeoleobun merged 1 commit into
restsend:mainfrom
dengxiayehu:upstream/outbound-cseq-order

Conversation

@dengxiayehu

Copy link
Copy Markdown
Contributor

Behavior

A dialog request stalled on routing or its first transport attempt can be overtaken by a later CSeq. The peer may then reject the earlier request as stale. Allocate CSeq and perform the first successful write under per-dialog ordering, releasing it immediately when a write succeeds. A transaction waiting for a response no longer holds the ordering gate. The existing INVITE usage reservation, CANCEL/ACK exceptions, and independently tagged fork cleanup remain separate.

Verification

  • The ordered-locator regression observed INFO overtaking BYE on unchanged main.
  • Added coverage for first-write timer retries and for CANCEL reusing the INVITE CSeq while PRACK is waiting to retry.
  • cargo test --offline --lib dialog::tests passed all 284 cases.
  • cargo check --locked --no-default-features --features platform-embassy --lib passed.

@yeoleobun
yeoleobun merged commit 12987fb 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