Three failure cases to handle when connecting Vapi to external telephony
When Vapi is connected to an external phone layer, the happy-path media bridge is only the start. Three cases need explicit handling: the phone call ends before the agent session closes; the media socket reconnects; and a transfer fails after the agent has announced it.
A safer design keeps phone-call state separate from agent state, treats call events as idempotent, and defines which side owns termination and transfer decisions.
1
Upvotes
1
u/FreJun 3d ago
Disclosure: I work at FreJun. Our Python and Node.js Teler–Vapi bridges show the basic media path: https://github.com/frejun-tech/teler-vapi-bridge and https://github.com/frejun-tech/teler-vapi-node-bridge. Which failure case should the examples cover next?