In this article
The SIP specification states that CANCEL has no effect after a final response has already been generated for the request being canceled. CANCEL and INVITE have separate transaction outcomes. A successful response to CANCEL therefore does not replace the final response to INVITE. If a successful INVITE response arrives despite cancellation intent, the established-dialog handling still applies, including acknowledgment and an appropriate dialog termination policy. The transaction fixes in the.
A SIP CANCEL request can race with a successful final response to the original INVITE. The user may already have pressed cancel while the remote endpoint has accepted the call. A voice-agent controller must resolve the actual signaling outcome rather than treating the cancel button or the CANCEL transaction response as proof that no dialog exists.
The audio contract
The SIP specification states that CANCEL has no effect after a final response has already been generated for the request being canceled. CANCEL and INVITE have separate transaction outcomes. A successful response to CANCEL therefore does not replace the final response to INVITE. If a successful INVITE response arrives despite cancellation intent, the established-dialog handling still applies, including acknowledgment and an appropriate dialog termination policy. The transaction fixes in the later SIP update also matter for reliable handling of successful-response retransmissions.
Implementation details
Track cancellation intent, CANCEL transaction state and INVITE final outcome separately. Keep the controller active long enough to handle the raced response according to the selected SIP stack contract. On an unwanted established dialog, acknowledge and terminate through the correct dialog procedures rather than dropping the response. Prevent model or media work from starting merely because a generic success status was observed without checking its method and dialog context. Retain signaling evidence without retaining voice content, and make repeated responses follow the existing state instead of creating new calls.
A constructed validation case
Construct both orders of the race: cancellation reaches the server before final acceptance, and acceptance is generated before cancellation can take effect. Verify the original INVITE outcome separately from the response to CANCEL. Include repeated successful INVITE responses and check that no extra media session is allocated. Acceptance requires the intended final closed state through valid signaling transitions, with any briefly established unwanted dialog handled explicitly. A test that only checks the cancel button’s appearance cannot establish this protocol behavior.
Operational limits
This is call-control correctness, not an estimate of carrier behavior or billing. Provider policies and stack-specific APIs need separate review. Keep the race fixture alongside the integration version before claiming that a voice-agent cancellation reliably releases every signaling and media resource.
Primary references
This is a proposed voice-system validation, not an executed Retrivium benchmark. Preserve the implementation version and unresolved outcomes; interface documentation does not establish the quality or timing of a deployed voice service.
Related reading
Request cancellation: testing the full client-to-engine chain; Moshi full-duplex dialogue: model streams do not remove microphone echo handling.
Earn rental income from GPUs
Have idle GPUs or looking to fund AI infrastructure? Retrivium finds a rental platform, sets up the server and helps you assess income and costs with a pilot.