﻿# SIP re-INVITE glare: a pending-request response needs dialog-aware recovery

SIP re-INVITE glare: a pending-request response needs dialog-aware recovery. A focused voice-infrastructure guide with the documented mechanism, a reproducible validation scenario, evidence and operational limits.

Author: Retrivium team
Updated: 2026-11-06
Canonical URL: https://retrivium.ai/journal/voice-sip-reinvite-glare-recovery/
Language: en

Two SIP endpoints can attempt to modify an established session at the same time. The resulting re-INVITE conflict is not necessarily a failed call or a reason to restart the language model. A voice controller needs dialog-aware recovery that preserves the active conversation while deciding whether the requested media modification is still wanted.

## The audio contract

The SIP specification defines a pending-request response for crossed in-dialog invitations and a retry procedure whose timing depends on dialog context and Call-ID ownership. A retry is appropriate only if the modification remains desired when the timer fires. This is different from replaying a transport packet or starting a new initial invitation. A session can continue under its prior negotiated parameters while a modification is rejected or deferred. The exact stack behavior and supported extensions should be preserved with the integration version.

## Implementation details

Track negotiated media separately from pending desired changes. On a crossed-request outcome, schedule the documented recovery through the SIP stack instead of immediately retrying in a tight loop. Recheck dialog existence, termination state and current desired modification when the retry becomes eligible. Cancel stale retry work after hangup or a superseding change. Preserve the existing model session unless the product explicitly requires another action. Apply new decoder or capture settings only after the negotiation contract establishes them, and retain a visible transition if any actual audio discontinuity occurs.

## A constructed validation case

Construct simultaneous in-dialog modification requests from both endpoints. Verify conflict handling, bounded retry scheduling and preservation of the previously negotiated media state. End the call before a scheduled retry in another case, and replace the desired modification in a third case. Acceptance requires no stale re-INVITE after termination and no duplicate model session created merely because a modification conflicted. Preserve timer and dialog observations without treating one implementation's measured delay as a universal SIP performance requirement.

## Operational limits

This is a negotiation-state check, not an availability guarantee for every carrier or endpoint. The model's conversational state and the signaling modification state have different lifecycles. Keeping them separate allows a recoverable protocol conflict to remain a controlled session change rather than an unnecessary conversation restart.

## Primary references

[Rfc3261](https://www.rfc-editor.org/rfc/rfc3261.html); [Rfc6026](https://www.rfc-editor.org/rfc/rfc6026.html).

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](/journal/provider-client-disconnect-cancellation-chain/); [An inference API conformance matrix for providers](/journal/provider-api-conformance-matrix/).
