Visual RFC.
ALL RFCs / RFC 3261
Read the RFC ↗
RFC 3261 / MECHANISMS

Should we cancel the request or hang up the call?

04

Stopping a request that is still waiting is different from ending a call that has already been answered.

RFC 3261 · § 9EXAMPLE
1 / 4 · Start with one concrete example

Follow these objects, then change one choice below.

A request is still waiting

StateOnly 100 Trying; no dialog yet

This chosen example fixes exactly how far setup has reached.

Lea chooses a stop message

Cancel requestCANCEL

What happens if you change this?

Change one choice and see its effect. Restart restores the original example.

3 / 3
03
BYE for established session

Terminate the resulting session with BYE instead of assuming CANCEL ended it.

Should we cancel the request or hang up the call?Stopping a request that is still waiting is different from ending a call that has already been answered. Current state: BYE for established session.Should we cancel the request or hang up the call?pending INVITECANCEL ↔ final response raceACK successful INVITE; then BYECANCEL cannot undo a final success

Key idea: Cancel a pending request; end an existing dialog with the applicable hang-up exchange.

Terms
CANCEL
Attempts to cancel an outstanding request; it cannot undo a final response already generated.
BYE
Terminates a SIP dialog/session under the applicable caller/callee and early/confirmed-dialog rules.

Look up a term in the glossary ↗

Rules & examples
  • CANCEL targets a pending request.
  • It cannot undo a final response that has already won the race.
  • BYE terminates an established session according to dialog rules.

The illustration is schematic. Example values are illustrative; profiles and later security guidance can add requirements.

The pending fixture has received only 100 Trying: no To-tagged 101–199 response has created an early dialog. Matching CANCEL succeeds, and the original INVITE gets 487, followed by its non-2xx ACK. The answered fixture has a confirmed dialog and completed 2xx ACK; BYE terminates it. CANCEL cannot cancel an INVITE after a final response. This does not mean BYE is always forbidden before a final answer: the caller MAY send BYE in an early dialog under section 15. The no-dialog BYE fixture returns 481. Cancellation races and forked dialogs are outside this finite example.

Sources
Protocol participantThreat or exceptionProtocol controlSimplified drawings · precise section references
New to this? Start hereA quick picture + helpful background

Finding a route and sending media are separate jobs.

Some messages set up a conversation or discover a reachable address. Other packets carry the audio or video. Follow those jobs separately.

Helpful first, if these ideas are unfamiliar

These pictures are analogies to help you learn. The linked RFC explains the actual rules.

Related RFCs and changes

“Updates” changes part of an earlier RFC. “Obsoletes” replaces it. This list shows selected related documents.

All chapters in RFC 3261

Drawing view

Scroll the drawing to see every part. Playback controls stay above it.

RFC 9700 / CHAPTERS

Chapters

For full details, tables, algorithms, and exceptions, read the original RFC.

RFC status and corrections ↗