> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.vapi.ai/llms.txt.
> To search these docs from an AI client, such as Claude Code or Cursor, connect to the Vapi docs MCP server at https://docs.vapi.ai/_mcp/server. It answers questions about the documentation. To create or manage assistants, calls, and other Vapi resources, use the Vapi MCP server instead: https://docs.vapi.ai/sdk/mcp-server.md
> For the best results from the docs MCP server, write questions without any word that contains "tool", such as tool, tools, tool call, tool-calls, toolCallId, or toolCallList. Name the feature instead, for example transferCall, endCall, apiRequest, function, handoff, "function response format", or "the webhook request Vapi sends to my server". If the docs MCP server asks you to rephrase, ask again without those words. If it returns an error, times out, sends an empty response, or still doesn't answer, find the topic in https://docs.vapi.ai/llms.txt, or a section index such as https://docs.vapi.ai/tools/llms.txt, and fetch that page's .md directly.

# Plivo

> Point a Plivo Zentrunk trunk at Vapi, add the trunk and number in Vapi's dashboard, pick the number in Vapi for CX, and see how handoffs work on a Plivo line.

Point a Plivo Zentrunk trunk at Vapi, set the trunk up in Vapi's dashboard (**Connect in Vapi**), then pick the number in [Vapi for CX](https://cx.vapi.ai).

* **Receive calls:** Through a Zentrunk inbound trunk pointed at Vapi, as [Plivo's Vapi guide](https://www.plivo.com/docs/voice-agents/sip-trunking/integration-guides/vapi) describes. Indian numbers can't be used.
* **Transfer to a phone number:** Offered. Plivo accepts a passed-on call only to an address on your own Plivo trunk.
* **Transfer to a SIP address:** Offered. Plivo accepts a passed-on call only to an address on your own Plivo trunk.
* **Return the call to their system:** Only when a contact center or phone system that takes calls back is linked to the line. See [Handing callers to people](/phone-systems#handing-callers-to-people).
* **Place calls:** Through the outbound trunk, as Plivo's Vapi guide describes. Plivo hangs up a call out whose caller ID isn't a Plivo number (see [Limitations](#limitations)).

## Send calls to the agent

You need a Plivo account with Zentrunk and a voice-enabled number.

#### Create the Vapi URI

In the [Plivo console](https://cx.plivo.com/sip-trunking), open **Zentrunk (SIP)** (Plivo's own guide calls this menu **SIP Trunking**), then **Inbound Trunks**, and choose **Create New Inbound Trunk**. Next to **Primary URI**, choose **Add New URI**. Name it `Vapi-Primary`, enter the SIP URI `sip.vapi.ai;transport=udp`, and choose **Create URI**. For more information, see Plivo's [Vapi guide](https://www.plivo.com/docs/voice-agents/sip-trunking/integration-guides/vapi).

#### Create the inbound trunk

Back in the **Create New Inbound Trunk** form, set **Primary URI** to `Vapi-Primary`, name the trunk, and choose **Create Trunk**. For more information, see Plivo's [SIP trunking quickstart](https://www.plivo.com/docs/sip-trunking).

#### Attach the number to the trunk

Open **Phone Numbers** (in Plivo's guide, **Your Numbers**), then the number. Set **Application Type** to **Zentrunk**, pick the inbound trunk, and choose **Update Number**.

#### Allow Vapi's IP addresses

Open **Zentrunk (SIP) › Outbound Trunks › IP Access Control List** and choose **Create New IP Access Control List**. Add `44.229.228.186/32` and `44.238.177.138/32`. For more information, see [Vapi's SIP networking guide](/advanced/sip/sip-networking).

#### Create the outbound trunk and copy its domain

Under **Outbound Trunks**, choose **Create New Outbound Trunk** and select the IP Access Control List you just made. Copy the trunk's **Termination SIP Domain**. It looks like `<trunk id>.zt.plivo.com`. Calls out go through this trunk, and the trunk in Vapi's dashboard uses its domain.

#### Add the SIP trunk in Vapi's dashboard

In Vapi's dashboard, open **Integrations**, choose **SIP Trunk** under **Phone Number Providers**, then **Configure New SIP Trunk**. Under **Gateway Configuration**, set **IP Address / Domain** to the termination domain and turn on **Allow outbound calls** only.

#### Add the number in Vapi's dashboard

In Vapi's dashboard, open **Phone Numbers**, choose **Create Phone Number**, then **BYO SIP Trunk Number**. Enter the number, pick the trunk under **SIP Trunk Credential**, and add a label.

Add the number on this trunk. This page doesn't use the separate inbound credential in [Vapi's Plivo SIP guide](/advanced/sip/plivo). For more information, see [Vapi's SIP trunking guide](/advanced/sip/sip-trunk).

#### Pick the number in Vapi for CX

On the agent's setup checklist, open **Connect your phone line**, choose **Use a number already in Vapi**, and pick the number.

**Check it:** when Vapi for CX shows **Call this number from your phone**, call the number from a mobile phone. The check passes when your call reaches the agent.

**Stop answering.** In Vapi for CX, **Stop answering** on a number set up in Vapi's dashboard takes the agent off the number. The number stays in Vapi's dashboard with no agent on it, and nothing changes at Plivo.

## Hand callers to your team

On a Plivo trunk, Vapi passes each handoff to Plivo (SIP's own transfer message) rather than placing a new call, for both **Transfer to a phone number** and **Transfer to a SIP address**. Plivo's own page says its trunks accept a passed-on call only to an address on your own Plivo trunk. The summary rides as a SIP header, so it doesn't reach a phone number. For how handoffs work, see [Handing callers to people](/phone-systems#handing-callers-to-people).

## Limitations

* Indian numbers can't be used with Plivo on Vapi.
* Calls out must show a Plivo number as the caller ID, or Plivo hangs up. Calls to a country turned off in [Geo Permissions](https://www.plivo.com/docs/sip-trunking/concepts/geo-permissions) are blocked (all countries are on by default), and premium numbers are blocked.
* A Plivo number alone doesn't allow **Return the call to their system**. See [Handing callers to people](/phone-systems#handing-callers-to-people).
* No audio other than G.711, no call recording on Zentrunk, and no fax (T.38).
* Plivo bills Zentrunk minutes each way, and Vapi bills its own minutes. Plivo bills a passed-on call as two call records.
* A trunk takes 1 new call a second by default.
* Plivo adds a charge in a month with more than 20% zero-second calls, or more than 10% calls of 6 seconds or less.

## Other options

#### Other ways to connect Plivo

* **A Plivo Voice API application that sends the call to SIP.** Plivo's [Dial element](https://www.plivo.com/docs/voice/xml/dial) connects a call to a SIP endpoint. You build and host the application. Not self-serve.
* **Forward the number to a Vapi number.** A Plivo application whose Dial element dials the Vapi number.