Route DIDs straight to an orchestration's Inbound Phone channel #74
Loading…
Reference in a new issue
No description provided.
Delete branch "patrick/did-to-orchestration"
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?
Lets a phone number route calls straight to an orchestration's Inbound Phone channel, without needing an AI extension.
r{rule id}@livekit. The worker's room-name pattern accepts it, andAiCallTargetresolves it to the client, persona and entry flow.routing_rules.destination_type. SQLite had silently lost this constraint, so the tests can't catch it. Please verify on Postgres before release.Tests: 7 new in
DidToOrchestrationTest; full suite 472 passed, 8 skipped.🤖 Generated with Claude Code
A DID can now send calls to "Orchestration (Inbound Phone)" instead of an extension. The Inbound Phone channel's settings in the flow editor choose the persona that answers, and the call starts at the flow that channel leads to. Extensions stay for people, internal transfers and dialable AIs. The DID's routing rule dials r{rule id} on the livekit endpoint, so the room is agent-_r{rule}_...; the worker passes that back like an extension number, and Orbital resolves either form to the client, persona and entry flow (AiCallTarget). Call sessions now record the flow they started in, so post-call actions and handoff numbers follow the path the call actually took rather than guessing from the persona's default. Postgres kept the old enum CHECK on routing_rules.destination_type, so the migration widens it to allow 'orchestration'. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>83c61e5cf724dba4808d