Skip to content
Voice AI

How to Connect an AI Voice Agent to Twilio, Telnyx or a SIP Trunk

How a business phone number in Twilio, Telnyx, Plivo or on another carrier's SIP trunk is connected to an AI voice agent: the three options Twilio itself offers, what a SIP trunk needs, what each carrier charges on list prices read November 12, 2026, and a setup checklist that avoids the usual mistakes.

Jaffar Jawed · Co-Founder
Published
7 min read
  • Telephony
  • Twilio
  • SIP
  • Voice AI
In short

Quick answer

To connect an AI voice agent to Twilio, route your Twilio number to the agent over a SIP trunk: the number stays in your account and calls are delivered to the agent, at $0.0034 a minute inbound on Twilio's list price read November 12, 2026. Telnyx, Plivo and other carriers work the same way. Botcadence's AI voice agent connects to numbers in your own carrier account.

How do you connect an AI voice agent to Twilio?

You point a Twilio phone number at the agent. There are three ways: route the number over a SIP trunk to a voice agent platform, use Twilio's own ConversationRelay to connect the call to your code, or forward the number to another number the agent answers. For a finished agent, the SIP trunk is the usual choice: the number stays in your Twilio account and calls are delivered to the agent over the internet. The same approach works with Telnyx, Plivo and most carriers. Botcadence's AI voice agent connects to numbers in your own Twilio, Telnyx, Plivo, Exotel, FreJun or Acefone account, or to another carrier over a SIP trunk.

Key takeaways

  • The number stays in your carrier account; the agent is where calls are sent.
  • A SIP trunk needs an address, credentials or allowed addresses, and separate settings for inbound and outbound.
  • Twilio's list prices, read November 12, 2026: a local number $1.15 a month, inbound local calls $0.0085 a minute, outbound $0.014, SIP trunking $0.0034 inbound and $0.0100 outbound.
  • Telnyx lists numbers at $1.00 a month and SIP trunking from $0.0032 inbound and $0.005 outbound.
  • Carrier charges are in addition to the voice agent's own price.

Three ways to connect a Twilio number

OptionHow it worksWho it suitsTwilio list price
SIP trunk to an agent platformTwilio delivers calls for your number to the platform's SIP address, and the platform places outbound calls back through the trunkBusinesses using a finished agent or a hosted platform$0.0034 a minute inbound local; $0.0100 outbound
ConversationRelayTwilio handles speech recognition and voice and passes text to your own applicationDevelopers writing their own agent logic$0.07 a minute, plus the call
ForwardingThe Twilio number forwards to a different number that the agent answersA quick test, or a number you do not want to re-routeTwo call legs at normal rates

Most finished agents use the first. The rest of this guide is about that.

What a SIP trunk needs

A SIP trunk has two halves, and they are set up separately.

SettingInbound (calls to your number)Outbound (calls from the agent)
What you configure at the carrierAn origination address: where the carrier sends calls for your numbersA termination address and who may use it
AuthenticationA list of allowed addresses, or a username and passwordA username and password, or allowed addresses
What you give the agent platformThe phone numbers, and any inbound credentialsThe trunk address, username and password
ResultCalls to the number reach the agentThe agent can call out showing your number

On Botcadence, numbers are entered by carrier in the organization's settings, and a custom SIP connection asks for the address, the destination country, a username and password, the inbound allowed addresses and inbound credentials. Outbound calling and call transfers both need the outbound half, because a transfer is an outbound call to your team member.

What the carriers charge

List prices for the United States, read on each carrier's own page on November 12, 2026.

ItemTwilioTelnyx
Local number$1.15 a month$1.00 a month
Inbound local call (voice API)$0.0085 a minute$0.002 a minute plus a SIP fee
Outbound call (voice API)$0.014 a minute$0.002 a minute plus a SIP fee
SIP trunking, inbound local$0.0034 a minuteFrom $0.0032 a minute
SIP trunking, outbound$0.0100 a minuteFrom $0.005 a minute
Toll-free inbound$0.0220 a minuteFrom $0.015 a minute
Answering machine detection$0.0075 a call$0.002 standard, $0.0065 premium

For a line with 1,500 inbound minutes a month on a SIP trunk, Twilio's carrier charge is about $5.10 plus $1.15 for the number. Carrier cost is rarely the large part of a voice agent's bill.

A setup checklist

  1. Confirm the number is in your own carrier account, not a reseller's or the agent vendor's.
  2. Create the trunk and note the address the platform gives you for inbound calls.
  3. Restrict who can use it. Set allowed addresses or strong credentials on both halves; an open trunk can be used by others to place calls at your expense.
  4. Assign the number to the trunk.
  5. Enter the number and the outbound credentials in the agent platform.
  6. Make an inbound test call from a mobile phone.
  7. Make an outbound test call and check the caller ID your phone shows.
  8. Test a transfer to a team member.
  9. Check your carrier's concurrency setting for the trunk, and the agent's own limit.
  10. Register the number for texting if you will send texts, and with the Free Caller Registry if you will call out.

Common problems

SymptomUsual cause
Inbound calls ring and dropThe origination address is wrong, or the platform does not recognize the number
Calls connect with no audio, or one-way audioA firewall or media setting between carrier and platform
Outbound calls failCredentials missing on the termination half, or the caller ID is not a number in your account
Outbound calls show as Spam LikelyThe number is new or unregistered, or attestation is low; see how to reduce Spam Likely labels on AI calls
Transfers failNo outbound trunk, or the destination is blocked
The second caller hears busyThe trunk's or the agent's concurrency limit
Echo, or the agent hears itselfEcho cancellation off, or a handset on speakerphone

Keeping your current phone company

You do not have to move to Twilio or Telnyx. If your number is with a phone company that supports SIP trunking, the same settings apply. If it only supports call forwarding, forward your line to a number in a carrier account that the agent is connected to; phone numbers for AI voice agents compares forwarding, porting and a new number.

How Botcadence uses your carrier

Botcadence does not sell phone numbers or bill carrier minutes. You bring numbers from your own Twilio, Telnyx, Plivo, Exotel, FreJun or Acefone account, or another carrier over a SIP trunk, and pay that carrier directly. Calls run over SIP in both directions. The agent answers up to your account's concurrent-call limit, which starts at one call and is raised on request. Texts are sent through your own Twilio number. The Voice AI plan is $299 a month for 1,500 minutes. The glossary entry on SIP trunking explains the term, and the AI phone answering system page shows the agent on a small business line.

Questions readers ask

Connect an AI Voice Agent to Twilio, Telnyx or SIP FAQ

Yes. Keep the number in your Twilio account and route it to the agent over a SIP trunk, or forward it. A SIP trunk also lets the agent place outbound calls and transfers showing your number.

On Twilio's list prices read November 12, 2026: $0.0034 a minute for local inbound calls on SIP trunking and $0.0100 outbound, or $0.0085 inbound and $0.014 outbound through its voice API, plus $1.15 a month for a local number.

A SIP trunk passes the call's audio to a voice agent platform that does everything else. ConversationRelay has Twilio handle speech recognition and voice and passes text to your own code, at $0.07 a minute, so it suits developers building their own agent.

No. Telnyx, Plivo and most carriers that offer SIP trunking work the same way, and call forwarding from any phone company works for inbound calls. Choose the carrier that has numbers where your callers are.

It depends on the product. Some platforms bundle the phone line; products that use your own carrier, Botcadence among them, leave the carrier bill with you. At 1,500 inbound minutes on a Twilio SIP trunk that is about $5 a month plus the number.

Sources

  1. Twilio voice pricing, United States (checked November 12, 2026)
  2. Twilio SIP trunking pricing, United States (checked November 12, 2026)
  3. Telnyx Voice API pricing (checked November 12, 2026)
  4. Telnyx Elastic SIP trunking pricing (checked November 12, 2026)
  5. Free Caller Registry (checked November 12, 2026)

Written by

· Co-Founder, Botcadence

Jaffar Jawed co-founded Botcadence in 2025 and leads product and go-to-market. He writes about AI voice agents, inbound answering workflows, lead qualification and the telephony stack behind real-time voice, including the company's open-source work on LiveKit noise and echo cancellation.

Get Started Today

See These Strategies in Action

Book a free demo and we will build a working AI agent for the channel this article covers, tailored to your business goals. No commitment required.

  • Voice AI plan $299 a month
  • Managed voice live in about 5 business days
  • Works with your existing tools

Ask AI about this page