Play a message instead of dead air when the AI can't take a call #80
Loading…
Reference in a new issue
No description provided.
Delete branch "patrick/ai-failure-fallback"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Callers no longer get dead air when the AI can't help. They hear "We're sorry, we're having trouble connecting your call right now. Please try calling back in a few minutes. Goodbye." and the call ends.
Covered failures
How
fallback.pysends the caller to Asterisk'sai-unavailableextension with a SIP REFER, the same mechanism the operator handoff uses. If the REFER fails, it deletes the room so the call ends rather than going silent.[orbital-ai-unavailable]plays the rendered message, else the stock prompts "Sorry. Please try your call again later. Goodbye." (confirmed present in the asterisk image), then hangs up. Every Dial to the AI falls through to it if it doesn't connect.Not covered: no worker running at all, since nothing is there to send the REFER. The worker-down alert is the answer there.
Also stops tracking
agent-worker/__pycache__/*.pyc, a separate commit.Tests: 8 new; the full suite has 492 passed, 8 skipped. The worker fallback was exercised with a fake job context: REFER sent, a failed REFER hangs up, an absent caller hangs up, a repeat trigger is ignored.
🤖 Generated with Claude Code