Should we cancel the request or hang up the call?
04Stopping a request that is still waiting is different from ending a call that has already been answered.
Follow these objects, then change one choice below.
A request is still waiting
This chosen example fixes exactly how far setup has reached.
Lea chooses a stop message
What happens if you change this?
Change one choice and see its effect. Restart restores the original example.
Terminate the resulting session with BYE instead of assuming CANCEL ended it.
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.
Rules & examples
Cancel a pending request; end an existing dialog with the applicable hang-up exchange.
- 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
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.