> ## Documentation Index
> Fetch the complete documentation index at: https://www.bolna.ai/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Connect Plivo to Bolna with a SIP trunk

> Bring your Plivo numbers to Bolna over Zentrunk: create inbound and outbound trunks in Plivo, then a Plivo SIP trunk in Bolna.

[Plivo](https://www.plivo.com/) sells SIP trunking under the name Zentrunk. Plivo uses one trunk for inbound calls and a separate trunk for outbound calls, so you create both in Plivo and connect them to a single trunk in Bolna.

> [!NOTE]
>
> This page connects Plivo over a SIP trunk. To connect your Plivo account to Bolna as a telephony provider instead, see [Using Plivo](https://www.bolna.ai/docs/plivo).

## Before you begin

* **A Plivo account and at least one Plivo phone number.** For calls to or from Indian numbers, Plivo requires an account in the India data region. See Plivo's [Calling in India](https://www.plivo.com/docs/voice-agents/sip-trunking/deploy/calling-in-india).

## Set up Plivo

**1. Create the inbound trunk**

In the [Plivo Console](https://console.plivo.com/), open **SIP Trunking** → **Inbound Trunks** and click **Create New Inbound Trunk**. Enter a name, click **Add New URI** and enter:

| Field | Value |
| - | - |
| Name | Any name, for example `Bolna` |
| SIP URI | `trunk.bolna.ai:5060` |

Click **Create Trunk**. Plivo sends calls over UDP unless you add `;transport=tcp` to the URI; Bolna accepts both. Do not use `transport=tls`.

**2. Route your number to the inbound trunk**

Open **Phone Numbers** → **Your Numbers** and click your number. Set **Application Type** to **Zentrunk**, set **Trunk** to the inbound trunk and click **Update Number**.

**3. Create the outbound trunk**

Open **SIP Trunking** → **Outbound Trunks** and click **Create New Outbound Trunk**. Enter a name, then add one way for Plivo to recognise Bolna:

* **Credentials list:** click **Add New Credentials List** and create a username of 5 to 20 letters and digits, and a password of 5 to 20 characters with at least one of `~!@#$%^&*()_+`. Save both; you enter them in Bolna.
* **IP access control list:** create one with Bolna's signalling IPs `15.252.21.46` and `13.206.230.198`.

Leave **Secure Trunking** off: Bolna's SIP trunks use UDP or TCP, not TLS. Click **Create Trunk** and copy the **Termination SIP Domain**, for example `XXXXXXXXXXXX.zt.plivo.com`.

## Create the trunk in Bolna

**1. Pick Plivo**

In the sidebar, under **Deploy**, open **SIP Trunks** and click **Create trunk**. If your account still has legacy SIP trunks, click **Open new SIP trunks** first. On the **Provider** step, pick **Plivo**, enter a **Trunk name** and the number of **Channels**, and paste the Termination SIP Domain into **Gateway we dial**. Click **Continue**.

**2. Check Plivo's IPs and add credentials**

On the **Carrier IPs** step, the Plivo preset already lists the signalling IP ranges Plivo [publishes](https://www.plivo.com/docs/sip-trunking). Keep all of them: Plivo can route a call through another region during an outage.

If you created a credentials list, enter its **Username** and **Password** under **Carrier credentials (optional)**. Click **Continue**.

**3. Add your Plivo numbers**

On the **Numbers** step, enter each Plivo number in E.164 format, for example `+91XXXXXXXXXX`, and click **Add**. Click **Continue**, check the summary and click **Create trunk**.

The caller ID on an outbound call must be a Plivo number; Plivo rejects any other number with hangup code `4190`. For every field on these steps, see [Connect your carrier](https://www.bolna.ai/docs/sip-trunking/connect-carrier.md).

## Assign an agent and test

* **Inbound:** open the trunk's **Numbers** tab and, in the **Agent** column, pick an agent for your Plivo number. Then call the number. See [Receive inbound calls](https://www.bolna.ai/docs/sip-trunking/inbound-calls.md).
* **Outbound:** on the agent's **Calling** tab, set **Telephony Provider** to **SIP Trunk**. In the agent's outbound call dialog, pick your Plivo number as the caller ID, enter the number to call and click **Place call**. See [Make outbound calls](https://www.bolna.ai/docs/sip-trunking/outbound-calls.md).

If a call does not connect, see [Troubleshooting](https://www.bolna.ai/docs/sip-trunking/troubleshooting.md).


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.