SIP trunking
Bring your own carrier trunk or PBX. Tone agents answer and dial on the numbers you already own.
You already have phone numbers on a licensed Indian carrier — an Airtel or Tata enterprise trunk, an Exotel or Vobiz account, or a PBX that fronts one of those. This page is how you point that trunk at Tone so a Tone agent answers your inbound calls and places your outbound ones, without moving a single number.
What Tone is, and is not, on a trunk
Tone is an application platform: in regulatory terms, a cloud EPABX. Your carrier stays the
licensed operator that interconnects with the phone network; Tone never terminates a call onto
the PSTN itself. Every packet of audio stays in Mumbai (ap-south-1). Every outbound dial
still passes the pre-dial compliance gate, and every call is recorded in your call log with the
same webhooks, transcripts and recordings a Tone-number call gets.
What you keep: your numbers, your carrier contract, your rates. What Tone runs: the agent, the compliance gate, recording, billing.
Connection details
| Setting | Value |
|---|---|
| SIP address | sip.usetone.ai |
| Ports | 5061 TLS (recommended) · 5060 TCP or UDP |
| Signalling IPs to allowlist | shown on your trunk's page in the dashboard |
| Media | RTP, UDP 16384–32768, from the same IPs |
| Codecs | PCMA (G.711 A-law), PCMU, G.722, Opus — in that order of preference |
| DTMF | RFC 2833 |
| Registration | not required; Tone identifies your trunk by source IP or by digest credentials |
Two ways your trunk can identify itself
- IP allowlist — you tell Tone the public IPv4 ranges your carrier or PBX sends from. This is
how Exotel vSIP and most enterprise SBCs work.
/24or narrower; private ranges are refused. - Digest credentials — Tone issues a username and a password, shown once when the trunk is created (or rotated). Use this when your side has no fixed address.
- Both —
inboundAuth: "both"requires the password and a source address on youripAcl. Your side is always challenged for the password, then the address is checked.
inboundAuth is what Tone enforces, so pick the one your side actually does: a digest trunk is
never admitted on its address alone, even if it has an ipAcl, and an ip_acl trunk does not
accept a password.
Carrier addresses are often shared. Every customer of a carrier sends from that carrier's SBC
addresses, so your ipAcl may list the same IPs as another Tone customer's trunk. That works for
inbound calls: Tone decides whose call it is from the number dialled. Two things can't tell the
trunks apart, because they come before a dialled number of yours exists:
- Origination (your platform asking Tone to dial out) from a shared address is refused. Use
digest, or send from an address of your own. - A
digestorbothtrunk shouldn't share an address with another trunk that admits by IP alone: an INVITE from an address on anyip_acltrunk's list is admitted without a password challenge, so it can never prove itself as your trunk, and is refused.
For outbound calls Tone dials your carrier. You give Tone the host, port and transport your carrier publishes for termination, and either allowlist Tone's IPs at the carrier or give Tone a username and password to present.
Create a trunk
Trunks are an organization-level resource and need a verified (KYC) organization and the SIP trunking capability enabled by Tone support.
POST /v1/sip-trunks
{
"name": "Airtel HQ trunk",
"inboundAuth": "ip_acl",
"ipAcl": ["203.0.113.0/28"],
"outboundHost": "sbc.example.com",
"outboundPort": 5061,
"outboundTransport": "tls",
"outboundAuthUsername": "tone",
"outboundAuthPassword": "…",
"outboundNumberFormat": "e164",
"maxConcurrent": 20
}The response carries the trunk and, once, the connection block your carrier console needs — including the digest password if you chose credentials:
{
"trunk": { "id": "…", "status": "pending_verification", "…": "…" },
"connection": {
"host": "sip.usetone.ai", "port": 5061, "transport": "tls",
"ips": ["…"], "realm": "sip.usetone.ai",
"username": "t_9f2c…", "password": "…"
}
}A new trunk is pending_verification until Tone staff approve it; approval is usually same-day.
Rotate credentials with POST /v1/sip-trunks/{id}/credentials/rotate (the old ones stop working
immediately). POST /v1/sip-trunks/{id}/test sends a SIP OPTIONS ping to your outbound host
and reports reachability and round-trip time.
The outbound settings — host, port, transport, number format, dial prefix and the credentials Tone
presents — can be changed at any time with PATCH /v1/sip-trunks/{id}, or with Edit outbound
on the trunk's page in the dashboard. A changed setting applies from the next call. The stored
password is never returned; send outboundAuthPassword only to replace it.
Add your numbers
Each number your carrier will send to Tone becomes an ordinary Tone phone number — with an agent, recording switch and call log — but with no rental, because you already pay your carrier for it.
POST /v1/sip-trunks/{id}/numbers
{ "e164": "+918044001234", "agentId": "…" }Inbound calls to the number are answered only when they arrive on that trunk. A call for your number arriving from another trunk is refused, which is what stops one tenant's misconfiguration from reaching another's agent.
Outbound calls and campaigns
Nothing changes on the API: POST /v1/calls with a trunk number as numberId, or a campaign
using it, dials through your carrier with the number as caller ID. The compliance gate (calling
window, your DNC list, consent) runs before every dial exactly as it does for Tone numbers.
Busy, no-answer and failed outcomes reach your webhooks with the same dispositions.
Your carrier decides which caller IDs it accepts; Tone presents the trunk number in
From and P-Asserted-Identity.
How Tone writes the number it dials
Carriers disagree about what the dialled number looks like, so the trunk says it:
outboundNumberFormat | Tone dials | Caller ID in From |
|---|---|---|
e164 (default) | +919876543210 | +911140001234 |
international | 919876543210 | 911140001234 |
national | 9876543210 | 1140001234 |
national0 | 09876543210 | 01140001234 |
P-Asserted-Identity always carries the caller ID in E.164, whatever the format.
Some Indian carriers want the destination with a leading zero rather than +91: set
outboundNumberFormat to national0 if your first test call is rejected with a number-format
error.
Some carriers also identify your trunk by a tech prefix — digits in front of every number
you dial. Put it in outboundDialPrefix and Tone dials it before the destination, never before
the caller ID. With outboundDialPrefix: "45454" and international, a call to
+919876543210 goes out as 45454919876543210 — compare it with the example dial string your
carrier shows. The prefix is digits only, at most ten.
If your carrier answers your first outbound test by ringing the phone and then sending Tone a second, separate call, it is set up to call your platform back rather than to connect Tone's call. Change the number's outbound routing at the carrier so that it connects the call Tone places; Tone cannot join the two, because the carrier's second call carries nothing that identifies the first.
Billing
A call on your own trunk bills the agent + platform components — ₹4.50 per minute list —
and no telephony component, because the carrier minute is yours. If the number is also routed to
your own voice stack (byo_ws), only the platform component applies — ₹1.50 per minute. There is no monthly rental
on trunk numbers.
Refusals you may see
| SIP response | Meaning |
|---|---|
407 Proxy Authentication Required | Tone is asking for the digest password: the source IP is on no ip_acl trunk's allowlist, or your trunk is digest or both |
403 Forbidden | Wrong credentials, the call did not authenticate the way the trunk's inboundAuth requires (trunk_auth_mismatch — for both, a password from an address not on ipAcl), trunk disabled or not yet approved, the number is not on this trunk, the trunk is at its concurrent-call limit (trunk_at_capacity), the number has no agent (no_agent) or its agent is not live (agent_not_live), or your wallet is below the minimum balance (insufficient_balance) |
404 Not Found | The dialled number is not registered on Tone |
503 Service Unavailable | Your organization is at its concurrent-call limit; a call your platform placed through Tone found every line on the carrier behind your Tone number busy (carrier_at_capacity — try again shortly); or Tone could not reach its own API and refused rather than guess |
Carrier guides
- Exotel vSIP — PoPs and transports, the
X-Exotel-AccountSidheader you must send, and the Exophone rule that rejects outbound calls. - Vobiz — digest or IP identity, and the number format that usually needs changing.
- Tata Smartflo — what to put on the provisioning form, since Tata configures the trunk rather than you.
- Airtel (via your SBC) — front the trunk with your own SBC and route selected DIDs to an agent.
- Asterisk and FreePBX — PJSIP config, the FreePBX fields that generate it, and the three settings that are load-bearing.
Any standards-compliant SIP trunk that can send INVITE to a hostname over TLS, and accept
INVITE from a fixed IP, works with the details above — these pages just save you the round trips.
Tone numbers to your hosted platform
If instead you want a Tone +91 number delivered to Retell, Vapi, ElevenLabs or LiveKit over SIP, that is the per-number trunk described in Tone Media Streams.