Skip to content

feat(dialog): expose the remote BYE that ended an INVITE dialog - #262

Merged
yeoleobun merged 1 commit into
restsend:mainfrom
dengxiayehu:upstream/remote-bye-context
Nov 23, 2026
Merged

yeoleobun merged 1 commit into
restsend:mainfrom
dengxiayehu:upstream/remote-bye-context

Conversation

@dengxiayehu

Copy link
Copy Markdown
Contributor

Problem

An application that observes the termination of an INVITE dialog can learn its termination reason, but cannot obtain the accepted remote BYE and the transport source that triggered it. This prevents consumers from handling standard Reason or extension headers at the same lifecycle boundary.

Change

Expose the terminating request and optional transport source on InviteDialog, analogous to the existing remote ACK accessor. Record them only when a validated BYE wins the dialog termination, before the existing lifecycle and state notifications. Local termination keeps returning no remote request.

Verification

  • cargo test --offline --lib dialog::tests — 282 passed.
  • The UDP regression rejects stale and unmatched BYEs and checks that the accepted request and source are already available when Terminated arrives.

@yeoleobun
yeoleobun merged commit 6f5ae8e into restsend:main Nov 23, 2026
4 checks passed
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