Back to Insights
Technology

Choosing a SIP Trunk for Voice AI: What to Check Before You Connect

A voice agent is less forgiving than an office phone system. Where the media travels, which codecs reach the speech model, whether the trunk allows REFER, TLS and SRTP, channel and CPS limits, what Vapi, Retell and ElevenLabs ask of a trunk, and six questions to put to any carrier.

Published November 23, 2026
9 min read

Most advice on SIP trunks was written for office phone systems, where a person picks up and a few hundred milliseconds of delay go unnoticed. A voice agent is less forgiving. Every millisecond the trunk adds comes straight out of the time the agent has to answer, every codec conversion costs speech recognition accuracy, and a transfer that the trunk refuses ends the call. This guide covers what to check before you connect a trunk to a voice AI platform. It does not recommend a carrier: the right one depends on your country, your numbers and your volume, and the questions below work for any of them.

What the trunk does for a voice agent

A SIP trunk connects the phone network to your voice platform. For an agent it carries three kinds of traffic: inbound calls to a number, outbound calls the agent places, and transfers to a person. The signalling (SIP) sets each call up and tears it down; the audio travels separately as RTP. That split matters for everything below, because a trunk can pass every signalling test and still deliver audio late, in the wrong codec, or not at all. If you have ever seen a call connect while the agent hears nothing, reading the SIP logs shows which of the two failed.

The good news is that you rarely need a special "AI trunk". A standard elastic SIP trunk from a carrier that serves your numbers is usually the right starting point, and keeping the number with that carrier means nothing has to be ported. What changes is which properties of the trunk you care about.

Latency: where the media actually travels

A natural conversation leaves roughly a second between the caller finishing and the agent starting. Speech recognition, the language model and speech synthesis already use most of that, as the latency budget for a voice agent shows. The trunk's share is the network path the audio takes between the carrier and the platform, in both directions.

The question to ask is not where the carrier's headquarters are, but where its media is anchored for your numbers, and where your voice platform processes the call. A Dutch number whose media is relayed through a US point of presence to a platform in Europe crosses the Atlantic twice per turn. Most platforms let you choose a region; Vapi, for example, publishes a separate EU SIP host. Match the carrier's media region to the platform's, and test with a real call, not a ping.

Rule of thumb

Same region for media and processing

Ask the carrier which media servers your numbers use and keep them in the same region as the platform that runs the agent. It is the one latency decision that is entirely yours, and it costs nothing.

Codecs: what the speech model hears

The codec decides the audio quality the speech recognizer gets. The public phone network mostly carries G.711 (PCMA in Europe, PCMU in North America): 8 kHz narrowband audio, uncompressed. Some trunks also offer G.722, which is wideband at 16 kHz and gives a recognizer more to work with on consonants and names.

CodecAudioFor a voice agent
G.711 (PCMA / PCMU)8 kHz, uncompressedThe safe default. Supported everywhere, no transcoding needed.
G.72216 kHz widebandBetter input for speech recognition where the whole path supports it end to end.
G.729 and other compressed codecs8 kHz, compressedAvoid. Transcoding to what the platform accepts costs latency and recognition accuracy.
Wideband only helps if no hop in the path falls back to narrowband; one G.711 leg brings the whole call back to 8 kHz.

Two practical points. Offer a short codec list, because an INVITE that lists many codecs, encryption keys and custom headers can grow past the UDP packet size and be fragmented or dropped. And make sure both sides agree on how keypresses travel (RFC 4733 telephone-events is the common choice), otherwise "press 1" silently does nothing.

Transfers: REFER or a second leg

Sooner or later an agent hands a caller to a person. There are two ways a platform can do that over a trunk. With a SIP REFER, the platform asks the carrier to connect the caller to the new number and steps out of the call. With a second leg, the platform dials the person itself and bridges the two calls, staying in the middle.

REFER is cheaper and frees the agent, but only works if the trunk allows it and permits transfers to the public network. Retell's documentation, for example, requires exactly that for cold transfers. A bridged transfer works on any trunk and lets the agent brief the person first, as in a warm transfer, but you pay for two legs while it lasts. Ask the carrier whether REFER is enabled by default, and test what happens when the person does not answer, because a transfer that fails is where callers get lost.

Authentication and encryption

Trunks authenticate in one of two ways: by IP address (the carrier only accepts traffic from addresses you allow-list) or by digest credentials, usually with registration. Voice platforms publish their signalling addresses so you can allow-list them; check that list again when the platform adds a region.

For encryption, ask whether the trunk supports SIP over TLS for signalling and SRTP for the audio. Both sides have to support it. ElevenLabs, for instance, requires TLS 1.2 or newer on its TLS endpoint and expects the RTP port range to be open in both directions. If your calls carry personal data, which in practice they almost always do, encrypted media belongs in the same conversation as where the audio is processed.

Channels and calls per second

A trunk has two limits that matter for agents. Concurrent channels cap how many calls run at the same time; an agent that never gets tired will reach that cap long before a team of people would. Calls per second (CPS) cap how fast new calls can start, which is what outbound campaigns and sudden inbound peaks run into. When a limit is hit the caller hears busy or the call fails with a 486 or 503, which looks like a platform fault from the dashboard. Know both numbers before launch and ask how fast they can be raised.

Price: the smallest part of the bill

Trunk pricing has three parts: a monthly fee per number, a per-minute rate that differs for inbound, outbound to landlines and outbound to mobiles, and sometimes a fee per channel. For a voice agent these are usually a small share of the total, because the AI minute (speech recognition, model and synthesis) costs considerably more than the telephony minute. The cost breakdown of a voice agent minute shows the proportions. That is why the cheapest trunk is rarely the best choice: saving a fraction of a cent per minute is not worth an extra transatlantic hop or a codec conversion on every call.

What Vapi, Retell and ElevenLabs ask of a trunk

All three large platforms accept your own trunk, and their documentation shows the requirements are similar. The table summarises what they publish; check their current pages before you configure anything, because these details change.

PlatformHow you connectWorth knowing
VapiA BYO SIP trunk credential with your carrier's gateway, created through the API or dashboard.Separate US and EU SIP hosts; carrier-specific guides for several providers.
Retell AIElastic SIP trunking (recommended), or dialling a SIP endpoint for setups without it.TCP, UDP or TLS; published IP ranges to allow-list; cold transfer needs REFER and PSTN transfer on the trunk.
ElevenLabs AgentsSIP trunk import with inbound and outbound settings per number.TLS 1.2+ on port 5061, UDP marked experimental; RTP/SRTP on a wide UDP range; codec choice per number (G.722, PCMU, PCMA).
Summarised from each platform's public SIP documentation, retrieved 23 November 2026.

On VoiceDock the same applies: you connect your own SIP trunk and keep your numbers where they are. Telecom and VoIP providers who want to offer agents on lines they already supply can read how that works for carriers.

Questions to ask a carrier

Put these to any carrier you are considering. A good one answers them in a single email; vague answers on the first three are a reason to keep looking.

  1. 01

    Where is media anchored for my numbers?

    Ask for the region of the media servers, not the signalling address. Match it to the region where your voice platform processes calls.
  2. 02

    Which codecs do you offer, and do you transcode?

    G.711 everywhere, G.722 if the full path supports it, no forced compressed codecs, and RFC 4733 for keypresses.
  3. 03

    Is SIP REFER allowed, including transfers to the public network?

    If not, every transfer has to be bridged by the platform, and you pay for both legs.
  4. 04

    Do you support TLS and SRTP?

    And which TLS versions. Encrypted media only works if both ends support it.
  5. 05

    What are my channel and CPS limits, and how fast can they rise?

    Know both before launch, especially if you plan outbound calls.
  6. 06

    Can I keep my existing numbers on the trunk?

    Ideally yes, so nothing is ported and you can switch platforms later without touching the numbers.

A trunk that answers all six well is a sound base for any voice platform, and it keeps the choice of platform yours. When calls do fail later, the same properties tell you where to look first.

Sources Platform requirements from the public documentation of Vapi (SIP trunk), Retell AI (custom telephony) and ElevenLabs (SIP trunking), retrieved 23 November 2026. SIP behaviour as defined in RFC 3261, REFER in RFC 3515 and telephone-events in RFC 4733.