deploy-phone
deploy-phone
The phone channel puts an Omniagent on a phone number: it answers when someone calls, and on the SIP path it can also dial out. The same agent you run on web and WebSocket answers the phone — one identity, every surface.
There are two ways to wire up the phone. If the developer doesn't say which, default to VoIP — it's the simpler path: Napster only exposes a webhook, the developer's Twilio account does the rest, and there's no trunk of your own to register.
| Path | What it is | When |
|---|---|---|
| VoIP (default) | Napster exposes a webhook endpoint for the agent. You register it with Twilio (the only supported VoIP provider) for a phone number; on an incoming call Twilio calls the webhook to connect the caller to the agent. Twilio owns the number and the telephony — Napster only provides the webhook. No trunk credentials. Human handoff isn't supported on this path. | Most cases — fastest way to get the agent on a number. |
| SIP | You bring your own SIP trunk (a PBX or any SIP trunk provider) and hand Napster credentials to register against it. Supports human handoff. | You already run a SIP trunk, need the agent on existing telephony, or need human handoff. |
Both attach to the same agent — create it once ([[create-agent]]); a clear persona and a set language help on voice-only calls. Unlike WebRTC/WebSocket (created per session), the phone channel is a persistent config: set it once and the agent answers until you remove it. Agents in mode: "puppeteer" can't use phone channels — adding a SIP or VoIP channel config returns 400 TelephonyChannelNotAllowed. Phone channels also don't work with agents on a Microsoft Foundry API key.
Two things apply to both paths:
- Calls hang up after 3 minutes of silence. A call closes with
closeReason: "idle_timeout"after 3 minutes without anyone speaking. The agent'sdisableIdleTimeoutsetting doesn't apply to phone calls. - The caller's number identifies the caller. You don't create phone sessions yourself, so the platform uses the number on the other end of the call as the session's
externalClientIdand asmetadata.external_client_idin every tool call. On VoIP it's the caller's number in E.164 format (for example+15551234567). On inbound SIP it's the part of the caller's SIP URI before the@, exactly as your SIP server sends it, which can be an extension; on outbound SIP it's thedestination. The agent remembers callers across calls from the same number. Callers who hide their number all arrive with the same placeholder, so they share one memory. To find a caller's sessions, filter byexternalClientIdand encode a leading+as%2B([[monitor-sessions]]).