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

# Your First Agent Call

> Connect a phone number to an AI voice agent and receive your first live call in about 15 minutes

By the end of this quickstart, you'll dial a real phone number and an AI agent will answer. You'll set up the Plivo side completely; on the platform side you only need a basic agent (a starter or template agent is enough).

***

## Prerequisites

| Requirement | Description |
| - | - |
| **Plivo Account** | [Sign up](https://cx.plivo.com/signup) with SIP trunking enabled |
| **Agent platform account** | An account with LiveKit, Vapi, ElevenLabs, or Retell, with a basic agent created |

> [!NOTE]
>
> **India numbers** require KYC verification before purchase. See [Rent India Numbers](https://plivo.com/docs/numbers/rent-india-numbers.md). India traffic also has platform requirements; see [Calling in India](https://plivo.com/docs/voice-agents/sip-trunking/deploy/calling-in-india.md).

***

## Step 1: Buy a Phone Number

1. Go to [Phone Numbers](https://cx.plivo.com/phone-numbers) in the Plivo Console
2. Search for a **voice-enabled** number in your country and buy it

This is the number callers (including you, in Step 5) will dial to reach your agent.

***

## Step 2: Create an Inbound Trunk

The inbound trunk tells Plivo where to send calls that arrive on your number: your platform's SIP endpoint.

1. Go to [SIP Trunking → Inbound Trunks](https://cx.plivo.com/sip-trunking)
2. Click **Create New Inbound Trunk** and enter a name (e.g., `my-first-agent`)
3. Click **Add New URI** and enter your platform's SIP URI:

| Platform | SIP URI |
| - | - |
| **LiveKit** | Your project's [SIP endpoint](https://docs.livekit.io/telephony/start/sip-trunk-setup/#sip-endpoint), with `;transport=tcp` |
| **Vapi** | `sip.vapi.ai;transport=udp` |
| **ElevenLabs** | `sip.rtc.elevenlabs.io:5060;transport=tcp` |
| **Retell** | `sip.retellai.com;transport=tcp` |

4. Click **Create Trunk**

***

## Step 3: Connect Your Number to the Trunk

1. Go to [Your Numbers](https://cx.plivo.com/phone-numbers) and click your new number
2. Set **Application Type** to `Zentrunk`
3. Set **Trunk** to the inbound trunk from Step 2
4. Click **Update Number**

Calls to your number now route to your platform over SIP.

***

## Step 4: Point Your Agent at the Number

On your platform, register the Plivo number and attach your agent to it. Each platform does this slightly differently; follow the inbound section of your platform's docs:

* **LiveKit**: create an inbound trunk and dispatch rule ([LiveKit docs](https://docs.livekit.io/telephony/))
* **Vapi**: register the number and assign an assistant ([Vapi Plivo guide](https://docs.vapi.ai/advanced/sip/plivo))
* **ElevenLabs**: import the number and link an agent ([ElevenLabs SIP trunking docs](https://elevenlabs.io/docs/agents-platform/phone-numbers/sip-trunking))
* **Retell**: connect the number and bind an inbound agent ([Retell docs](https://docs.retellai.com/))

***

## Step 5: Call Your Agent

Dial your Plivo number from your phone. Your agent should answer.

That's the whole loop: PSTN → Plivo → SIP trunk → your platform → your agent.

### If the call doesn't connect

| Check | Where |
| - | - |
| Number is attached to the correct inbound trunk | [Your Numbers](https://cx.plivo.com/phone-numbers) |
| Trunk URI matches your platform's SIP endpoint, including the `transport` parameter | [Inbound Trunks](https://cx.plivo.com/sip-trunking) |
| An agent is attached to the number on the platform side | Your platform's dashboard |
| Hangup code on the failed call | [Debug logs](https://cx.plivo.com/sip-trunking), then [Hangup codes](https://plivo.com/docs/voice-agents/sip-trunking/troubleshooting/hangup-codes.md) |

***

## Where Next

> [card] [Full integration guide](https://plivo.com/docs/voice-agents/sip-trunking/overview.md)
>
> Outbound calling, credentials, and platform-specific configuration for LiveKit, Vapi, ElevenLabs, and Retell

> [card] [Transfer calls to humans](https://plivo.com/docs/sip-trunking/concepts/sip-refer.md)
>
> Hand off live calls from your agent to a human with SIP REFER

> [card] [Calling in India](https://plivo.com/docs/voice-agents/sip-trunking/deploy/calling-in-india.md)
>
> Regulatory requirements for India traffic

> [card] [API reference](https://plivo.com/docs/voice-agents/sip-trunking/api/sip-trunking.md)
>
> Create trunks, credentials, and URIs programmatically
