> This page is for Voice Agents.

> Sarvam Voice Agents (Samvaad) is a voice AI agent platform for Indian languages: build, test and deploy AI calling agents on your own phone numbers, from ₹3 a minute. Start here: https://docs.sarvam.ai/voice-agents/why-voice-agents.
> For clean Markdown of any page, append `.md` to the page URL.
> For a complete documentation index, see https://docs.sarvam.ai/llms.txt. For a section index, append `/llms.txt` to any section URL (for example https://docs.sarvam.ai/voice-agents/llms.txt).
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.sarvam.ai/_mcp/server.

# Connect your own SIP trunk to an AI voice agent

> Connect your carrier's SIP trunk to Sarvam Voice Agents for inbound and outbound AI calls: add your carrier's SIP address and IPs, allowlist Sarvam's IPs, and import your numbers.

Connect your carrier's SIP trunk to Voice Agents for inbound and outbound voice calling.

Setup has two parts: create a Custom SIP connection on Voice Agents, then allowlist Sarvam's IPs on your carrier.

> **Tip**
>
> Don't have a SIP trunk? You don't need one. Use [Rent from Sarvam](/voice-agents/deploy/telephony/rent-from-sarvam) instead - Sarvam manages everything for you, with no provider setup required.

> **Note**
>
> **Before you start:** an active SIP trunk with your carrier, and these details from them: the carrier's SIP server IP address and port, the transport (UDP or TCP), how the carrier authenticates calls (with a username and password if it uses them), and the IPs the carrier sends calls from. You also need your phone numbers, and Voice Agents access with permission to add telephony connections (**Deploy → Phone Numbers**).

## Watch the setup

## Create the connection on Voice Agents

The **Connect Custom SIP** dialog walks through five tabs: **General**, **Outbound**, **Inbound**, **Carrier setup**, and **Numbers**.

#### Open Custom SIP

In Voice Agents, go to **Deploy → Phone Numbers → Add Connection**. Under **Bring your own telephony**, click **Connect**, then select **Custom SIP** as the **Telephony provider**.

#### Fill in General

| Field               | Value                                                                                |
| ------------------- | ------------------------------------------------------------------------------------ |
| **Connection name** | Your choice (e.g. `Bengaluru primary`)                                               |
| **SIP provider**    | **Tata Tele Services** if your trunk is from Tata Tele, otherwise **Other provider** |
| **Calls to handle** | **Outbound calls**, **Inbound calls**, or both                                       |

Click **Continue**.

#### Fill in Outbound (for outbound calls)

Enter where Sarvam sends your agent's calls:

| Field                   | Value                                                      |
| ----------------------- | ---------------------------------------------------------- |
| **Carrier SIP address** | Your carrier's SIP server IP address (e.g. `203.0.113.10`) |
| **Port**                | Your carrier's SIP port (default `5060`)                   |
| **Transport**           | **UDP** or **TCP**                                         |
| **Authentication mode** | How your carrier accepts calls from Sarvam - see below     |

Choose the **Authentication mode** your carrier uses:

| Mode             | When to use                                                      | Fields                                                                                              |
| ---------------- | ---------------------------------------------------------------- | --------------------------------------------------------------------------------------------------- |
| **IP allowlist** | Your carrier accepts calls from Sarvam's IPs without credentials | None                                                                                                |
| **Digest**       | Your carrier asks for a username and password on each call       | **Username**, **Password**                                                                          |
| **Registration** | Your carrier expects Sarvam to register before placing calls     | **Username**, **Password**, **Re-register every (seconds)** (default `1200`, between 120 and 3,600) |

For **Digest** and **Registration**, expand **Advanced** only if your carrier gives you these:

* **Realm (optional)** - add this only if your carrier provides one.
* **Registrar domain (optional)** - add this only if it's different from the carrier SIP address.

Passwords are stored securely and can't be viewed again after saving. Click **Continue**.

> **Note**
>
> Hostnames (FQDN), IPSec tunnels, and other non-standard carrier setups aren't self-serve yet. Contact the Sarvam team to set these up.

#### Fill in Inbound (for inbound calls)

Under **Carrier IPs**, add every IP your carrier sends calls from, with its transport. Click **Add IP** for each one. You can enter a single IP (e.g. `203.0.113.10`) or a range (e.g. `203.0.113.0/24`, no wider than `/24`), up to 32 entries. Click **Continue**.

> **Warning**
>
> Inbound calls start after a 24-48 hour review. Sarvam reviews your carrier IPs once you create the connection. Outbound calls work right away.

#### Review and create (Carrier setup)

The **Carrier setup** tab shows Sarvam's IPs, which you'll need in the [next section](#allowlist-sarvams-ips-on-your-carrier), and a summary of your settings. Click **Edit** on any section to change it. The **Trunk ID** is generated for you.

> **Warning**
>
> Connection settings can't be changed after you create the connection. Only phone numbers can be added or removed. To change anything else, delete the connection and create a new one - inbound calls then go through the IP review again.

Click **Create connection**.

#### Add your numbers (optional)

On the **Numbers** tab, enter one number per line or paste a column from a spreadsheet. Start each number with the country code (e.g. `+918041234567`) or with `0` followed by 10 digits. You can add up to 1,000 numbers.

Click **Add numbers**, or **Skip for now** to add them later from the connection page.

---

## Allowlist Sarvam's IPs on your carrier

Your carrier must accept calls from Sarvam and send your calls to Sarvam. In your carrier's portal, or by asking your carrier:

#### Allowlist both Sarvam IPs

|              | Sarvam IP       |
| ------------ | --------------- |
| **Primary**  | `15.206.201.21` |
| **Failover** | `65.0.228.209`  |

#### Send calls to the primary IP

Point your numbers' incoming calls at the primary IP, `15.206.201.21`, on port `5060`.

> **Warning**
>
> Phone numbers you add on Voice Agents must also be routed to Sarvam on your carrier. Both sides need to know about the number.

> **Tip**
>
> You can find Sarvam's IPs again anytime: open your connection under **Deploy → Phone Numbers**, click **View details**, and next to **Sarvam IPs** click **View**.

---

## Track the inbound review

Until the review is done, your connection page shows **We're reviewing your inbound call setup**. Click **View status** to see the details: **Outbound** shows **Allowed**, and **Inbound** shows **In Progress**.

## Manage the connection

Open your connection under **Deploy → Phone Numbers** and click **View details**:

* **Connection details** shows the connection ID, the inbound allowlist status, and Sarvam's IPs.
* **Manage SIP trunk** shows the trunk's settings. They're read-only.
* **Delete connection** removes the connection.

To add or remove numbers, see [Manage Phone Numbers](/voice-agents/deploy/telephony/manage-numbers).

---

## After connecting

Once both sides are configured:

#### Add your phone numbers

If you skipped the **Numbers** tab, open your connection under **Deploy → Phone Numbers** and add the numbers. See [Manage Phone Numbers](/voice-agents/deploy/telephony/manage-numbers).

#### Route calls to an agent

For incoming calls, create an [Inbound deployment](/voice-agents/deploy/inbounds) to route each number to an agent. To dial out, add the numbers to a [Campaign](/voice-agents/deploy/campaigns).

#### Verify with a test call

Place a test call to (or from) a number and confirm your agent connects. See [Manage Phone Numbers](/voice-agents/deploy/telephony/manage-numbers) for the test-call steps.

> **Note**
>
> **Outbound calling** works as soon as the connection is created - dial out by adding the numbers to a [Campaign](/voice-agents/deploy/campaigns). **Inbound calling** works once the inbound review is done.

> **Tip**
>
> Custom SIP supports [call transfer](/voice-agents/build/tools/call-transfer). By default, Sarvam hands the call to your carrier with a SIP REFER, so your carrier must accept REFER on answered calls. If it doesn't, contact the Sarvam team to switch to bridged transfer, where Sarvam places the transfer call over your trunk instead.

## Next

#### [Manage Phone Numbers](/voice-agents/deploy/telephony/manage-numbers)

Add your numbers and route them to agents.

#### [All providers](/voice-agents/deploy/telephony/bring-your-own)

See other providers.