In this article
The early-media discussion distinguishes setup-stage media from the final session-establishment outcome. A provisional progress response and arriving audio are not interchangeable with a successful final INVITE response. Signaling and media can be observed in different orders, and multiple branches can complicate setup. A controller should follow the selected SIP stack's dialog and offer-answer model rather than derive answer state from acoustic energy, a ringback tone or the first packet. S.
Hearing audio during SIP call setup does not prove that the call has received a final successful answer. Early media can carry announcements or other sound before final acceptance. A voice-agent application that starts its normal answered-call workflow merely because RTP arrives can assign the wrong state to the caller and misclassify setup audio as conversation input.
The audio contract
The early-media discussion distinguishes setup-stage media from the final session-establishment outcome. A provisional progress response and arriving audio are not interchangeable with a successful final INVITE response. Signaling and media can be observed in different orders, and multiple branches can complicate setup. A controller should follow the selected SIP stack’s dialog and offer-answer model rather than derive answer state from acoustic energy, a ringback tone or the first packet. Sound proves that some media path is active, not which final call outcome has occurred.
Implementation details
Track setup progress, early-media availability and final answer as distinct states. Define whether early announcements are played, analyzed or excluded from the conversational model, and keep that provenance if any derived text is produced. Do not make carrier billing assumptions from these states. Handle setup failure after early audio without marking the conversation as normally completed. When final acceptance arrives, establish the intended model-input boundary explicitly instead of silently concatenating setup announcements with the caller’s first actual utterance. Preserve branch identity where the signaling stack exposes it.
A constructed validation case
Construct a call setup that delivers early audio and then fails, and another that delivers early audio before final acceptance. Verify signaling state, audible playback and model-input provenance independently. Add final acceptance without the expected early announcement so the workflow does not depend on hearing a particular sound. Acceptance requires the correct final outcome and an explicit early-media policy, not automatic promotion to answered state on first RTP arrival. Preserve message and media ordering because that ordering exposes the boundary the test is intended to validate.
Operational limits
Early-media correctness does not establish ASR quality or provider accounting. It establishes which stage produced the audio an application observed. Keep that stage visible when debugging voice agents that appear to respond to announcements, ringback or setup failures instead of the intended caller.
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
Moshi full-duplex dialogue: model streams do not remove microphone echo handling; An inference API conformance matrix for providers.
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.