How-to

How to connect your AI voice agent to a phone number over SIP (BYOC)

In short

Bring your own carrier: get a phone number (a DID), point a SIP trunk at your AI platform — authorised by IP address or by SIP credentials — map the number to your agent, and place a test call to confirm two-way audio, caller ID and DTMF. The method is the same standard SIP for every platform; only the configuration screen differs.

This guide shows how to give an AI voice agent a real phone number using BYOC (bring your own carrier) — you supply the number and the SIP trunk, and your AI platform runs the agent. It is the practical companion to virtual numbers for AI voice agents, and it assumes you already have an agent on a platform that supports bringing your own carrier or generic SIP trunking. Terms are defined inline the first time they appear.

A quick note on scope: the steps below describe the standard SIP setup that is the same across platforms. Each platform names the fields differently and changes its screens over time, so for the exact clicks always follow that platform's own SIP or BYOC documentation — the per-platform section points you to what to look for.

On this page

  1. Before you start
  2. Connect in five steps
  3. IP allowlist vs SIP credentials
  4. Per-platform notes
  5. Inbound and outbound
  6. Test and verify
  7. Where to go next
  8. FAQ

Before you start

Three things make the setup smooth. First, a phone number — a DID (Direct Inward Dialing number) in the country your agent should present. Second, an AI platform that speaks SIP, either through a bring-your-own-carrier option or generic SIP trunking. Third, the connection detail your platform expects: a SIP endpoint (a SIP address or host to send calls to) if you authorise by address, or a place to enter trunk credentials if you authorise by login. Have your platform's SIP documentation open alongside this guide.

Connect in five steps

The whole flow is five steps, and none of them is platform-specific in concept:

  1. Get a phone number. Choose the country and type — local, national, toll-free or mobile — that fits the market your agent serves, and confirm availability and any per-country verification. Browse options in the coverage table.
  2. Choose how the trunk authenticates. Decide between an IP allowlist (trust a fixed set of addresses) and registered SIP credentials (a username and password the endpoint logs in with). Match this to what your platform supports — the next section compares them.
  3. Point the SIP trunk at your platform. Configure a SIP trunk between Temptera and your platform's SIP endpoint using the authentication you chose. If your platform peers by IP, you supply your platform's SIP addresses; if it registers, you enter the trunk credentials on the platform.
  4. Map the number to your agent. Route the DID's inbound calls to the agent, and set the caller ID your agent presents on outbound calls — often the same local number, so a callback returns to the same agent.
  5. Place a test call and verify. Call the number, and have the agent call out, checking two-way audio, caller ID and DTMF (the touch-tone key presses) before you go live.

Your trunk's credentials or allowlisted addresses are provisioned privately to your account — they are never published here.

IP allowlist vs SIP credentials

Both are standard ways to authenticate a SIP trunk; the right one depends on how your agent runs.

Method How it works Good fit when Watch for
IP allowlist (interconnect) The trunk trusts calls to and from a fixed list of IP addresses — no login. Your platform's SIP region or your own server has stable, static IPs. Keep the allowlisted addresses current on both sides; calls from other addresses are refused by design.
Registered SIP credentials The endpoint registers with a username and password, so it works from any address that authenticates. Your agent or gateway has no fixed IP, or you prefer credential-based auth. Store credentials securely and rotate them; treat them like any other secret.

For the wider call path behind either method, see how DID numbers work with SIP trunking.

Per-platform notes

Any platform that speaks SIP connects the same way; these notes point you to the right feature in each. Always follow the platform's own current documentation for exact field names.

Platform What to look for
VapiAdd Temptera as a custom BYO SIP trunk / credential, then attach your DID to the assistant — authorised by IP or SIP auth.
Retell AIConnect an elastic / custom SIP trunk and import your Temptera number for production inbound and outbound.
ElevenLabsUse generic SIP trunking (digest or IP auth, TLS transport where offered) to attach your existing number without porting.
OpenAI RealtimeOpenAI exposes a SIP endpoint, so you must bring a trunk — point Temptera at that endpoint and terminate your DID into it.
LiveKitCreate inbound and outbound SIP trunks into your LiveKit rooms with a Temptera number behind them.
Any SIP platformSelf-hosted agents and softswitches — FreeSWITCH, Asterisk, 3CX and others — connect over the same standard SIP trunk.

Temptera is an independent carrier and is not affiliated with, endorsed by, or sponsored by the platforms named above; the names are used only to describe interoperability.

Inbound and outbound

One trunk carries both directions. On inbound, the DID originates the call into your agent: someone dials the number, the call arrives as a SIP INVITE (the request that opens a call and carries the dialled number), and the platform hands it to the agent. On outbound, the agent places calls over the same trunk and presents a caller ID you are authorised to use. Outbound calling is governed by the destination country's rules and by acceptable-use and anti-fraud controls, so keep campaigns and dialling patterns within both — see the acceptable use policy.

Test and verify

Before you route real traffic, prove the path with a deliberate test rather than assuming it works:

  • Two-way audio. On a test call, confirm you can hear the agent and the agent can hear you. One-way or missing audio is almost always a codec, NAT (Network Address Translation) or SRTP (Secure Real-time Transport Protocol) mismatch, not a routing fault.
  • Caller ID. Check the number your agent presents on an outbound call is the one you intend, so callbacks return to the right place.
  • DTMF. If your agent uses key presses — for menus or capture — press a few and confirm they register, since DTMF can travel in more than one way and the two ends must agree.
  • Concurrency. If you expect several calls at once, test more than one simultaneous call so you know your channel capacity is sized for the busy moment, not just the average.

When a call misbehaves, the causes are a short, predictable list. Work through SIP issues that break AI voice agents to isolate audio, DTMF, latency and authentication problems quickly.

Where to go next

Ready to connect one? Start with the coverage table to pick a number, or read the phone numbers & SIP for AI voice agents overview for the wider picture. Live per-route rates appear once you create an account, and for BYOC setup, specific markets or porting you can talk to us. Temptera provides DID and virtual numbers across 100+ countries, delivered over SIP, from a network it operates directly.

Frequently asked questions

What is BYOC for an AI voice agent?

BYOC (bring your own carrier) means using your own phone number and SIP trunk with an AI platform instead of the number the platform bundles. You keep the number and control the carrier; the platform just runs the agent. The related term BYON (bring your own number) is used the same way.

Do I authenticate the trunk by IP address or by credentials?

Either. An IP allowlist trusts calls to and from a fixed set of addresses and suits platforms and servers with static IPs. Registered SIP credentials use a username and password and suit endpoints without a fixed IP. Use whichever your platform supports; some support both.

Will BYOC work with Vapi, Retell, ElevenLabs, OpenAI or LiveKit?

Where the platform supports bring-your-own-carrier or generic SIP trunking, yes. The connection method is a standard SIP trunk; only the platform's configuration screen differs, so follow that platform's own SIP or BYOC documentation for the exact fields. Temptera is not affiliated with these platforms.

How do I test that the connection works?

Place a real inbound call to the number and have the agent make an outbound call, then confirm two-way audio, the correct caller ID, and that DTMF key presses register. If audio is one-way or missing, it is usually a codec, NAT or SRTP mismatch rather than a routing fault.

Can I keep my number if I change platforms later?

Yes. Because the number and trunk are yours, you can repoint the trunk at a different platform without changing the number, and where the number is portable you can port it in or out. There is no lock-in to a single AI platform.