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

# Vapi integration (dashboard)

> Connect Vapi to real phone numbers in 5 minutes using the Vobiz dashboard — no code. Import your SIP credentials, pick a number, and your Vapi AI agent can make and receive PSTN calls in 130+ countries including India.

This guide shows how to integrate Vapi with Vobiz using the dashboard. By the end, you'll be able to **make outbound calls** and **receive inbound calls** with your Vapi AI assistant - without writing any code.

[Vobiz x VAPI Integration](https://www.youtube.com/embed/HuyGrTWhVIM)

> [!TIP]
>
> **Prefer using API/CLI?** Check out the [API setup guide](https://www.vobiz.ai/docs/integrations/vapi-api.md) for curl commands and programmatic integration.

## What you'll build

An end-to-end voice integration where your Vapi AI assistant can place outbound calls through Vobiz SIP trunking and answer inbound calls placed to your Vobiz number.

## Prerequisites

* **Vobiz account** with a SIP trunk → [Create account](https://console.vobiz.ai/auth/signup)
* **Vapi account** → [Sign up](https://dashboard.vapi.ai/signup)
* **Vapi assistant** created → [Create in dashboard](https://dashboard.vapi.ai)
* **Phone number** from Vobiz (for caller ID)

## Outbound calls

Step 1: Create SIP trunk credentials in Vapi

**1. Open Vapi integrations**

Log in to the [Vapi Dashboard](https://dashboard.vapi.ai), click **Integrations** in the sidebar, then navigate to **SIP Trunk Credentials**.

**2. Add a new credential**

Click **Add New Credential** and name your trunk (for example, `Vobiz Trunk`).

**3. Add gateway URL**

Enter your Vobiz SIP domain from the Vobiz Console (for example, `bfab10fb.sip.vobiz.ai`).

**4. Add credentials**

Enter the username and password from your Vobiz trunk, enable **outbound calling**, and click **Save**.

![Vapi dashboard: adding a Vobiz SIP trunk credential with gateway URL and authentication](https://mintcdn.com/vobizai/Y8H0uUEbmzwRjqm8/images/vapi-images/img1.png?fit=max\&auto=format\&n=Y8H0uUEbmzwRjqm8\&q=85\&s=00090cf2dd188cf1d737a6fb1f173158)

Copy your unique credentials from the **Authentication & Linking** section of your trunk:

| Field | Example value |
| - | - |
| Gateway URL (SIP Domain) | `<your_unique_domain>.sip.vobiz.ai` |
| Username | `<your_username>` |
| Password | `<your_password>` |

Step 2: Get Vobiz SIP credentials

From the Vobiz Console:

1. Log in to the [Vobiz Console](https://console.vobiz.ai).
2. Go to **SIP Trunk** → **Outbound Trunks** → **Trunks**.
3. Select your trunk.
4. Scroll down to the **Authentication & Linking** section.
5. Copy the **SIP Domain**, **Username**, and **Password**.

![Vobiz Console: Authentication & Linking section showing SIP domain, username, and password for an outbound trunk](https://mintcdn.com/vobizai/Y8H0uUEbmzwRjqm8/images/vapi-images/img2.png?fit=max\&auto=format\&n=Y8H0uUEbmzwRjqm8\&q=85\&s=4b0a7f292c10246593f6cde6fd5102c4)

> [!NOTE]
>
> Don't have a Vobiz trunk yet? See the [SIP trunks documentation](https://www.vobiz.ai/docs/trunks.md) to create one.

Step 3: Import your phone number

**1. Open phone numbers**

In the Vapi Dashboard, go to **Phone Numbers** and click **Add Number**.

**2. Choose BYO SIP trunk**

Select **BYO SIP Trunk Number**.

**3. Enter your Vobiz number**

Enter your Vobiz number (for example, `08071387149`).

**4. Pick the credential**

Under **SIP Trunk Credentials**, pick the credential you created in Step 1, label it (for example, `Vobiz Main Line`), and click **Import SIP Trunk Number**.

![Vapi dashboard: importing a Vobiz phone number using a BYO SIP trunk credential](https://mintcdn.com/vobizai/Y8H0uUEbmzwRjqm8/images/vapi-images/img3.png?fit=max\&auto=format\&n=Y8H0uUEbmzwRjqm8\&q=85\&s=8ad7b81fdaf379a7fe1d737bf02a1d7d)

> [!NOTE]
>
> Need a phone number? See the [phone numbers documentation](https://www.vobiz.ai/docs/account-phone-number/list-inventory-numbers.md) to purchase one from Vobiz.

Step 4: Make an outbound call

**1. Start a new call**

In the Vapi Dashboard, click **Make a Call** or go to **Phone Calls** → **New Call**.

**2. Configure outbound settings**

Open **Outbound Settings**, enter the destination number (for example, `+919148223344`), select your assistant, and select your imported Vobiz number as the caller ID.

**3. Place the call**

Click **Make Outbound Call**. The call will initiate and your Vapi assistant will speak when the recipient answers.

![Vapi dashboard: outbound call settings with destination number, assistant, and Vobiz caller ID](https://mintcdn.com/vobizai/Y8H0uUEbmzwRjqm8/images/vapi-images/img4.png?fit=max\&auto=format\&n=Y8H0uUEbmzwRjqm8\&q=85\&s=3425a007736b5357d6ad74e649aa73a9)

> [!TIP]
>
> **Outbound integration complete!** Your Vapi assistant can now make outbound calls through Vobiz SIP infrastructure.

Step 5: Configure call transfer (optional)

To let the AI agent hand a call off to a human, add a **Transfer Call** tool and give it a destination. You can transfer to a plain **phone number**, or - to route the transfer out through your Vobiz trunk - to a **SIP** destination.

**1. Create the transfer tool**

In the Vapi Dashboard, open **Tools**, click **Create Tool**, and select **Transfer Call** (`transferCall`). Attach the tool to your assistant.

**2. Add a destination**

In the tool's **Destinations** section, click **Add Destination** and choose **SIP** (or **Phone Number** for a simple PSTN transfer).

**3. Set the SIP URI**

For a **SIP** destination, set the **SIP URI** to the destination number at your Vobiz trunk domain:

```text theme={null}
sip:+91XXXXXXXXXX@<your-trunk>.sip.vobiz.ai
```

Replace `+91XXXXXXXXXX` with the E.164 number to transfer to, and `<your-trunk>` with your Vobiz SIP domain - for example `sip:+919876543210@abc123.sip.vobiz.ai`.

**4. Save**

Optionally add a **Message to Customer** (played before the transfer connects), then save.

| Destination type | When to use | Value |
| - | - | - |
| **SIP** | Route the transfer through your Vobiz trunk | `sip:+91XXXXXXXXXX@<your-trunk>.sip.vobiz.ai` |
| **Phone Number** | Simple blind transfer to a PSTN number | E.164, e.g. `+919876543210` |

![Vapi dashboard: configuring a Transfer Call tool with a SIP destination on the Vobiz trunk](https://mintcdn.com/vobizai/Y8H0uUEbmzwRjqm8/images/vapi-images/img5.png?fit=max\&auto=format\&n=Y8H0uUEbmzwRjqm8\&q=85\&s=90cd618694b5ebed6fb499418afbb540)

> [!NOTE]
>
> The SIP destination sends the transferred leg to `<your-trunk>.sip.vobiz.ai`, so it's carried over your Vobiz SIP trunking - the same domain you use for your other Vobiz trunks. Get your SIP domain from **Vobiz Console** → **SIP Trunk** → your trunk → **Authentication & Linking**.

## Inbound calls

Receive calls placed to your Vobiz number and route them to your Vapi AI assistant.

```text theme={null}
Caller dials Vobiz number → Vobiz SIP → Vapi SIP trunk → Vapi AI assistant
```

Step 1: Create an inbound SIP trunk in Vapi

Vobiz sends inbound SIP from **any** of its signaling IPs, so you must add **every** Vobiz SIP signaling IP as a gateway. If you whitelist only one, calls that arrive from a different Vobiz IP are rejected.

**1. Open SIP trunk settings**

In the [Vapi Dashboard](https://dashboard.vapi.ai), click **More** → **Integrations** in the sidebar, then navigate to **SIP Trunk** and click **Create New SIP Trunk**. Name it (for example, `Vobiz Inbound Trunk`).

**2. Configure Gateway #1**

In **Gateway #1**, set **IP Address / Domain** to the first Vobiz SIP signaling IP, **Port** `5060`, **Netmask** `32`, and **Outbound Protocol** `UDP`. Check **Allow inbound calls**; leave **Allow outbound calls** and **Enable options ping** unchecked.

**3. Add a gateway for every Vobiz SIP signaling IP**

Click **Add Another Gateway** and repeat the same settings (Port `5060`, Netmask `32`, UDP, **Allow inbound calls**) for each remaining Vobiz SIP signaling IP - so all of them are whitelisted.

**4. Save**

Click **Save**. You should end up with one gateway per Vobiz SIP signaling IP (10 at the time of writing), each shown as `udp · inbound`.

Use these settings for **every** gateway:

| Setting | Value |
| - | - |
| Port | `5060` |
| Netmask | `32` |
| Outbound Protocol | `UDP` |
| Allow inbound calls | Enabled |
| Allow outbound calls | Disabled |
| Enable options ping | Disabled |

Add one gateway for each **Vobiz SIP signaling IP**:

```text Vobiz SIP signaling IPs theme={null}
13.203.7.132
65.2.100.211
13.126.98.234
13.235.11.131
13.233.44.61
3.111.255.163
3.111.128.110
43.204.64.203
15.207.232.91
35.154.133.28
```

> [!WARNING]
>
> These IPs can change. Always confirm the current list on [IP whitelisting → SIP signaling](https://www.vobiz.ai/docs/concepts/ip-whitelisting.md#sip-signaling) and keep your Vapi gateways in sync.

> [!NOTE]
>
> **RTP media firewall update:** If your network filters RTP traffic for Vapi calls, allow inbound and outbound UDP traffic on ports `5000–65535` from the complete [RTP media IP list](https://www.vobiz.ai/docs/concepts/ip-whitelisting.md#rtp-media), including these new ranges:
>
> * `18.96.230.96/28`
> * `18.96.230.112/28`
>
> These ranges carry audio. Do not add them as Vapi SIP gateway entries; the gateways above use SIP signaling IPs only.

> [!TIP]
>
> **Want outbound on the same trunk?** Add another gateway with your Vobiz SIP domain and credentials and enable **Allow outbound calls** - or use the dedicated outbound credential from the [Outbound calls](#outbound-calls) section above.

Step 2: Get the Vapi trunk ID

After saving the trunk in Vapi, you need the **Trunk ID** to configure Vobiz. The Trunk ID is only available via the Vapi API.

```bash theme={null}
curl -X GET "https://api.vapi.ai/credential" \
  -H "Authorization: Bearer YOUR_VAPI_API_KEY"
```

Find the trunk in the response that matches your inbound trunk name:

```json theme={null}
{
  "id": "46deea29-645d-44a3-bf42-7c6ec2d4b65c",
  "orgId": "0c147555-d9bc-41ff-8c89-82eca29f891c",
  "provider": "byo-sip-trunk",
  "gateways": [
    { "ip": "13.203.7.132", "outboundEnabled": false },
    { "ip": "65.2.100.211", "outboundEnabled": false },
    { "ip": "13.126.98.234", "outboundEnabled": false }
    // ... one entry per Vobiz SIP signaling IP
  ],
  "name": "Vobiz Inbound Trunk"
}
```

Copy the `id` field - this is your **Trunk ID**. Find the entry whose `name` matches your inbound trunk; its `gateways` array should list every Vobiz SIP signaling IP you added, each with `outboundEnabled: false`.

Step 3: Create an inbound trunk in the Vobiz Console

**1. Open inbound trunks**

Log in to the [Vobiz Console](https://console.vobiz.ai) and go to **SIP Trunks** → **Inbound Trunk**.

**2. Create the trunk**

Click **Create New Trunk**, name it (for example, `Vapi Inbound`), and set **Transport** to `UDP`.

**3. Set the primary URI**

Set **Primary URI** to `<VAPI_TRUNK_ID>.sip.vapi.ai` - for example, `46deea29-645d-44a3-bf42-7c6ec2d4b65c.sip.vapi.ai`.

**4. Link your number**

Link your Vobiz phone number to this trunk and click **Save**.

Step 4: Import the phone number in Vapi

1. In the [Vapi Dashboard](https://dashboard.vapi.ai), go to **Phone Numbers** in the sidebar.
2. Click **Create Phone Number**.
3. Select **BYO SIP Trunk Number**.
4. Enter your Vobiz phone number (for example, `+918071387376`).
5. In **SIP Trunk Credential**, select the inbound trunk you created in Step 1.
6. Label it (for example, `Vobiz Inbound Line`) and click **Import SIP Phone Number**.

Step 5: Assign assistant and test

1. On the phone number you just imported, scroll to **Inbound Settings**.
2. Under **Select Assistant**, choose your Vapi AI assistant.
3. Click **Save**.
4. **Test it** - dial your Vobiz number from any phone. Your AI assistant should answer.

> [!TIP]
>
> **Inbound setup complete!** Calls to your Vobiz number now route to your Vapi AI assistant automatically.

## Troubleshooting

Call doesn't connect

* Verify SIP domain, username, and password are correct in the [Vobiz Console](https://console.vobiz.ai).
* Use the exact `sip_domain` (for example, `bfab10fb.sip.vobiz.ai`), not a generic `sip.vobiz.ai`.

Assistant doesn't speak

* Verify the assistant has a **First Message** configured.
* Check the assistant has a voice provider set up correctly.
* View call logs in the [Vapi Dashboard](https://dashboard.vapi.ai) → **Calls** for errors.

Phone number format error

* Use E.164 format: `+919148223344` (with `+`).
* Or local format: `09148223344` (without `+`).
* Verify the number is active in the [Vobiz Console](https://console.vobiz.ai).

> [!TIP]
>
> Need more detail? See the [API troubleshooting guide](https://www.vobiz.ai/docs/integrations/vapi-api.md#troubleshooting) for additional error scenarios.

## Next steps

* **Customize your assistant** - configure voice, personality, and responses in the [Vapi Dashboard](https://dashboard.vapi.ai).
* **View call analytics** - monitor call logs, transcripts, and metrics in **Vapi Dashboard** → **Calls**.
* **Automate with API** - see the [Vapi API setup guide](https://www.vobiz.ai/docs/integrations/vapi-api.md) to trigger calls programmatically.
* **Monitor usage** - track your Vobiz balance and call records.


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