Dev48
Language
  • About
  • Services
  • Industries
  • Technologies
  • Articles
  • Contacts
Book a call
    Home/Articles/How to connect an ai phone agent to a phone number twilio sip trunk or register
Dev48
info@dev48.org+375 29 320-40-96WhatsApp@isky_by

© 2026 · All rights reserved.

How to connect an AI phone agent to a phone number: Twilio, SIP trunk, or register call

Source: ElevenLabs•December 1, 2026 at 12:34 AM

How to connect an AI phone agent to a phone number: Twilio, SIP trunk, or register call

Connect an AI phone agent to a phone number with Twilio import, a register call endpoint, or SIP trunking. Compare options, transfers, and testing.

An AI phone agent is a conversational agent that understands natural speech and connects to a telephone line. When your customers come calling, it answers with the full contextual understanding that any business representative would need. Agents can replace traditional IVR menu systems and may offer callers a more natural experience compared to legacy approaches to CX.

You can connect an ElevenLabs AI agent to a phone number in three ways: native Twilio import, a register call endpoint, or SIP trunking. Native Twilio import is the fastest and needs no code, a register call endpoint gives developers full control inside Twilio, and SIP trunking connects an existing PBX or carrier. ElevenAgents can handle both inbound and outbound calls, depending on the connection type.

This guide compares the three options, walks through setup for each, explains call transfers, and covers testing and troubleshooting.

Summary

  • You have three primary options for connecting an ElevenLabs agent to a phone number: native Twilio number import, a register call endpoint, or SIP trunking.
  • Importing a Twilio-purchased number is the fastest setup and requires no coding. This connection type supports both inbound and outbound calling.
  • A register call setup uses a server-side webhook that connects Twilio to an agent through an API. This works best for teams with developer resources available and who need to manage complex telephony configurations.
  • You can connect enterprise PBX or carrier lines to ElevenAgents via SIP trunking. This works best when you already have an established system of this type, or when you want encrypted voice traffic (TLS for signaling and SRTP for media).
  • Call transfers to a human are supported with native Twilio import (warm and cold) and SIP trunking (cold), but not with a register call endpoint.

Three ways to connect an AI phone agent to a phone number

You have three primary options for connecting an AI agent to your telephony system:

  • Native Twilio import
  • A register call endpoint
  • SIP trunking

Choose based on your current telephony setup and engineering resources: native Twilio import for speed, a register call endpoint for custom Twilio logic, or SIP trunking if you already run a PBX or carrier.

Connection

Best for…

Notes

Native Twilio import

Teams that need the fastest setup.

A no-code solution. ElevenLabs imports the phone numbers and automatically detects line capabilities. Supports inbound and outbound calls, plus warm and cold transfers.

Register call endpoint

Teams with in-house engineering staff who want direct control over their full Twilio configuration.

For use cases where you need full, local control. Your server receives the Twilio webhook and calls the ElevenLabs register call endpoint. Supports inbound and outbound calls. Does not support call transfers.

SIP trunking

Teams with an existing Private Branch Exchange (PBX) or other SIP carrier.

When you have significant existing infrastructure. For teams who want to route calls without needing to port any numbers to a new system. Supports inbound and outbound calls, cold transfers, and TLS and SRTP encryption.

Compare what each connection supports

The table below shows which capabilities each way of connecting an AI phone agent to a phone number supports.

Capability

Native Twilio import

Register call endpoint

SIP trunking

Inbound calls

Yes, for Twilio-purchased numbers

Yes

Yes

Outbound calls

Yes, including verified caller IDs (outbound-only)

Yes

Yes

Transfers to a human

Warm and cold

Not supported

Cold (SIP REFER or cold conference)

Setup effort

No code

Code on your own server

SIP trunk configuration with your provider or PBX

Requires Twilio

Yes

Yes

The rest of this guide assumes you already have a conversational agent built and ready to go. If you need to build an agent, first check out our guide on how to create an AI agent for your business in under an hour. You can also build one using one of ElevenLabs’ free agent templates.

Connect a number with native Twilio import

If you have phone numbers in Twilio, you can import them directly into ElevenLabs and connect your agents. This option gets you up and running the fastest and requires no coding. ElevenLabs supports two types of Twilio phone numbers with different capabilities:

Purchased Twilio numbers

Numbers purchased through Twilio that appear in the “Phone Numbers” section of your Twilio account are fully supported within ElevenLabs.

  • Inbound calls: You can receive calls and route them to agents.
  • Outbound calls: Your agents can make outgoing calls.

Verified caller IDs

If you have external, verified caller IDs in Twilio, you can use ElevenLabs agents to make outgoing calls. Verified caller IDs are outbound-only: they cannot receive inbound calls or be assigned to agents for incoming traffic. These numbers must appear in Twilio’s “Verified Caller IDs” section of your dashboard. This case is best when you want to keep using an existing business number for outbound AI calling specifically.

  • Inbound calls: Not supported.
  • Outbound calls: Your agents can make outgoing calls using your existing numbers and caller IDs.

Native import step-by-step

Here's a quick guide on the native import pathway.

Step 1: Collect your Twilio credentials

Gather the following:

  • Phone number(s) you want to connect to ElevenLabs
  • Twilio Auth token or API secret
  • Twilio account SID or API key SID

ElevenLabs recommends using an API key instead of your account-wide credentials.

Step 2: Import into your Phone Numbers dashboard

Go to your Phone Numbers dashboard in ElevenLabs, choose Import number, and enter your credentials gathered in Step 1. ElevenLabs will automatically detect the phone line’s capabilities and configure necessary webhooks.

Step 3: Assign an agent

If ElevenLabs detects the number is for a Twilio-purchased line, it will give you the option to configure an agent for inbound calling. You can select a different agent for outbound calling if needed.

Note that when making outbound calls, your agent will start the conversation. Make sure that it has appropriate initial messages configured.

Perform test calls in and out to verify everything is configured as intended.

Keep your own telephony infrastructure and use a register call endpoint

You can also use the register call endpoint in ElevenLabs to connect Twilio to an agent. Your server receives the Twilio webhook, registers the call with ElevenLabs, and returns the TwiML that ElevenLabs generates to Twilio. The endpoint supports inbound and outbound calls: you start outbound calls from Twilio and point the webhook to your server. Numbers registered this way won’t appear in your ElevenLabs dashboard, and call transfers aren’t supported because ElevenLabs doesn’t have access to your Twilio credentials.

Use a register call endpoint if you need:

  • Full control over call routing
  • Complex call logic within Twilio before an agent connects
  • Integration of an ElevenLabs agent into your existing telephony system

Before setting this up in Twilio, you need to go to your ElevenLabs agent configuration. Set both the TTS Output (Agent Settings > Voice) and Input Format (Agent Settings > Advanced) to μ-law 8000 Hz. This makes it compatible with Twilio's audio stream.

See the full Register Twilio calls documentation for complete details and templated configuration code.

How the request flow works

  • Your server receives a Twilio webhook with call details.
  • Your server calls the ElevenLabs register call endpoint with the agent ID and the call details.
  • ElevenLabs returns TwiML that tells Twilio to connect the call to the agent over a WebSocket.
  • Your server returns the TwiML to Twilio.

Connect an existing PBX or carrier with SIP trunking

A Session Initiation Protocol (SIP) trunk is a connection that carries voice calls between a telephone system, such as a PBX or carrier, and another endpoint over the internet. SIP trunking lets you connect your existing PBX or other SIP-capable system to ElevenLabs agents, so you can route calls to and from your AI agents without replacing your telephony infrastructure or porting numbers. ElevenLabs supports TLS (1.2 or higher) for signaling and SRTP for media encryption.

Supported SIP trunk providers and PBX systems

ElevenLabs SIP trunking works with standard SIP trunk providers, including Twilio, Vonage, Sinch, Infobip, Telnyx, Exotel, Plivo, and Bandwidth, and with PBX systems including FreePBX, Asterisk, and 3CX. Other supported carriers include Flowroute, DIDWW, and Yeastar.

Twilio SIP trunking with ElevenLabs

If you use Twilio, you can connect through native import or a register call endpoint, or use Twilio as your SIP trunk provider. Choose SIP trunking when you want to keep call routing in your existing carrier or PBX setup rather than manage Twilio webhooks.

Static IP addresses for SIP servers

Enterprise customers can get static IP SIP servers. ElevenLabs offers a /24 IP address block (256 addresses) distributed across the US, EU, India, and Singapore regions for IP allowlisting.

See the documentation for configuring a SIP trunk to ElevenLabs for complete step-by-step guidance.

Transfer calls to a human agent

Call transfer support depends on how the number is connected. Native Twilio import supports warm transfers (conference) and cold transfers (blind). SIP trunking supports cold transfers using SIP REFER or cold conference transfers. A register call endpoint does not support call transfers. See the transfer to number documentation for configuration details.

Test your AI phone agent before going live

Always thoroughly test your configuration and agent performance before going live. Test in three stages: a browser test, simulations with tool checks, and live phone calls. This helps you reliably evaluate your new agent setup.

Start with quick browser-based agent testing

You can do this before even connecting a phone number. ElevenLabs dashboard has a Test AI agent option. Click that, and you will start a conversation with your agent right in your browser.

Pose as a caller and ask it questions it will need to answer in production. Evaluate:

  • Whether the prompt gives it sufficient context to answer questions appropriately
  • If its response time is sufficient
  • If its delivery and turn-taking fit different conversational patterns

Run simulations and verify tool use

Next, you’ll want to test your AI voice agent’s use of your CRM system, access to knowledge bases, and integrations with other tools you want it to use. You can test tool-by-tool within different parameters, but you should also perform simulation testing where the agent needs to walk through real-world scenarios it might encounter for your most common types of customer contact. For example:

  • How does it handle password resets?
  • How does it handle a reservation request?
  • Customer complaints?
  • Account cancellations?

Live phone call testing

Finally, test your agent on live phone calls. Once it’s connected to your phone number, make an inbound call and test it again in real-world scenarios. How is the audio quality and latency over the phone?

If you have outbound calling configured in a native Twilio integration, you can click the Send Test Call button in the Outbound Call modal of the ElevenLabs Phone Numbers dashboard. Enter your test recipient number and evaluate call performance again.

You can also review inbound and outbound call records and transcripts in the Calls History dashboard.

Troubleshooting common setup problems

Three common problems are:

  • Incorrect Twilio credentials (Account SID/Auth token)
  • Webhook misconfiguration
  • Using a number that isn't voice-enabled

Incorrect Twilio credentials

Authentication errors during a native Twilio import are common and can result from a few potential issues.

  • Your authentication token may have been rotated or deleted. Generate a new one, if needed.
  • Your SID could be misentered. Confirm it matches what’s in the Twilio Console.
  • You could have a mismatched SID and token or secret type. Account SIDs have the prefix AC… API Key SIDs have the prefix SK… Make sure you’ve paired the secret or token that matches the SID type you’re using.

Webhook misconfigurations

When you add a Twilio phone number in ElevenLabs, ElevenLabs attempts to configure the webhooks automatically. If it fails, confirm the number is purchased through Twilio and appears in the Phone Numbers section of your Twilio account. Verified caller IDs are outbound-only and can’t be assigned to agents for incoming calls.

Using a number that isn't voice-enabled

Voice communication only works over a phone line that supports voice traffic. Confirm whether the line you’re using has Voice capability in the Twilio console and isn’t an SMS-only line, a fax line, or a line not provisioned by your carrier.

Get started with ElevenAgents for customer service

Connecting a voice agent to a live phone number lets AI agents handle routine calls, giving your human agents time to focus on complex calls where their expertise matters most.

Learn more about ElevenAgents or contact sales to get started with enterprise customer service today.

FAQs about connecting an AI phone agent to a phone number

← All articles

What this article says

More in AI & Machine Learning

All →
Amazon launches AI-native Docs, Sheets, and Slides to challenge Microsoft and GoogleПресса
Amazon

Amazon launches AI-native Docs, Sheets, and Slides to challenge Microsoft and Google

Apple strikes deals with news publishers to make Siri AI more usefulПресса
Apple

Apple strikes deals with news publishers to make Siri AI more useful

OpenAI echoes Anthropic’s call to pace AI, minus the details
Пресса
OpenAI

OpenAI echoes Anthropic’s call to pace AI, minus the details

Granite Vision 5.0 4B vs LFM3-VL 2B: TEDS Is Not DocVQA
OrcaRouter

Granite Vision 5.0 4B vs LFM3-VL 2B: TEDS Is Not DocVQA

Granite Vision 5.0 4B vs LFM2.5-VL 3B: Two Averages That Don't Compare
OrcaRouter

Granite Vision 5.0 4B vs LFM2.5-VL 3B: Two Averages That Don't Compare

Hy3D 3.6 vs Hunyuan3D WorldClaw: Asset Engine Meets Blueprint
OrcaRouter

Hy3D 3.6 vs Hunyuan3D WorldClaw: Asset Engine Meets Blueprint

More from ElevenLabs

Agent-to-agent communication: How AI agents work together
ElevenLabs

Agent-to-agent communication: How AI agents work together

Webinar recap: Refresh your Black Friday ads with ElevenCreative
ElevenLabs

Webinar recap: Refresh your Black Friday ads with ElevenCreative

What is AI transcription: The complete guide
ElevenLabs

What is AI transcription: The complete guide

What is GraphRAG? A practical guide to smarter AI retrieval
ElevenLabs

What is GraphRAG? A practical guide to smarter AI retrieval

Fixing the front door to government, one voice agent at a time
ElevenLabs

Fixing the front door to government, one voice agent at a time

What is SIP trunking? A business guide to modern calls
ElevenLabs

What is SIP trunking? A business guide to modern calls