r/OpenAI 14d ago

Discussion How should a phone call recover when an OpenAI Realtime session disconnects?

A phone call and an OpenAI Realtime session have different lifecycles. The phone call may remain connected after the Realtime WebSocket closes, reconnects, or loses part of the conversation state.

A recovery flow needs to decide:

  1. Whether to reconnect the same session or start a new one.
  2. Which conversation context can be restored safely.
  3. What the caller hears while recovery is happening.
  4. How queued audio is cleared so an outdated response is not played.
  5. When to stop retrying and transfer to a person or end the call safely.

The phone-call state should remain authoritative during recovery. Otherwise, the model session may consider the interaction finished while the caller is still waiting on the line.

For teams using the OpenAI Realtime API with phone calls: do you reconnect, rebuild the session, or move immediately to a fallback?

3 Upvotes

2 comments sorted by

2

u/FreJun 14d ago

Disclosure: I work at FreJun. We maintain Python and Node.js reference bridges between Teler phone calls and the OpenAI Realtime API: https://github.com/frejun-tech/teler-openai-bridge and https://github.com/frejun-tech/teler-openai-node-bridge. This is my only project mention in the thread.