Skip to navigation

Connect your own SIP trunk to an AI voice agent

View as Markdown

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.

Don’t have a SIP trunk? You don’t need one. Use Rent from Sarvam instead - Sarvam manages everything for you, with no provider setup required.

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

Connecting your SIP trunk to Voice Agents.

Create the connection on Voice Agents

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

1

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.

2

Fill in General

FieldValue
Connection nameYour choice (e.g. Bengaluru primary)
SIP providerTata Tele Services if your trunk is from Tata Tele, otherwise Other provider
Calls to handleOutbound calls, Inbound calls, or both

Click Continue.

3

Fill in Outbound (for outbound calls)

Enter where Sarvam sends your agent’s calls:

FieldValue
Carrier SIP addressYour carrier’s SIP server IP address (e.g. 203.0.113.10)
PortYour carrier’s SIP port (default 5060)
TransportUDP or TCP
Authentication modeHow your carrier accepts calls from Sarvam - see below

Choose the Authentication mode your carrier uses:

ModeWhen to useFields
IP allowlistYour carrier accepts calls from Sarvam’s IPs without credentialsNone
DigestYour carrier asks for a username and password on each callUsername, Password
RegistrationYour carrier expects Sarvam to register before placing callsUsername, 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.

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

4

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.

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

5

Review and create (Carrier setup)

The Carrier setup tab shows Sarvam’s IPs, which you’ll need in the next section, and a summary of your settings. Click Edit on any section to change it. The Trunk ID is generated for you.

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.

6

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:

1

Allowlist both Sarvam IPs

Sarvam IP
Primary15.206.201.21
Failover65.0.228.209
2

Send calls to the primary IP

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

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

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.


After connecting

Once both sides are configured:

1

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.

2

Route calls to an agent

For incoming calls, create an Inbound deployment to route each number to an agent. To dial out, add the numbers to a Campaign.

3

Verify with a test call

Place a test call to (or from) a number and confirm your agent connects. See Manage Phone Numbers for the test-call steps.

Outbound calling works as soon as the connection is created - dial out by adding the numbers to a Campaign. Inbound calling works once the inbound review is done.

Custom SIP supports 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