> ## 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.

# Connect a Phone Number to Vapi, Retell AI, or Any AI Voice Platform

> Step-by-step guide to connecting a Vobiz virtual phone number to Vapi, Retell AI, LiveKit, Pipecat, or ElevenLabs. Get inbound and outbound AI voice calls working in under 10 minutes.

## How do I connect a virtual phone number to my AI voice platform like Vapi or Retell AI?

Connecting a Vobiz phone number to any AI voice platform takes three steps: provision a DID number in Vobiz, configure your AI platform to use Vobiz as its SIP trunk provider, and point the number's inbound answer URL at your AI platform's webhook. The entire process takes under 10 minutes and requires no code for most platforms.

## Step 1 — Provision a Vobiz Phone Number

1. Log in to [console.vobiz.ai](https://console.vobiz.ai)
2. Navigate to **Phone Numbers** > **Buy Number**
3. Select your country, number type (local DID, mobile, or toll-free), and click **Purchase**
4. The number is live immediately

You can also provision numbers programmatically via the [Number Provisioning API](https://www.vobiz.ai/docs/account-phone-number/purchase-from-inventory.md).

## Step 2 — Create a Vobiz Application

Vobiz routes calls using Applications — each Application holds the answer URL that your AI platform provides for inbound calls.

1. Navigate to **Applications** > **Create Application**
2. Set the **Answer URL** to your AI platform's inbound call webhook (see platform-specific instructions below)
3. Set the **Hangup URL** if you need end-of-call events
4. Assign your phone number to this Application

## Step 3 — Configure Your AI Platform

**Vapi**

* Go to **Phone Numbers** > **Import** > **SIP Trunk**
* Enter your Vobiz SIP domain and credentials
* Vapi handles inbound calls and uses Vobiz for outbound calls from that number
* Full guide: [Vapi + Vobiz](https://www.vobiz.ai/docs/integrations/vapi-dashboard.md)

**Retell AI**

* Go to **Phone Numbers** > **Import Phone Number** > **Custom Telephony / SIP**
* Enter your Vobiz SIP trunk URI and credentials
* Full guide: [Retell AI + Vobiz](https://www.vobiz.ai/docs/integrations/retellai-dashboard.md)

**LiveKit**

* Vobiz connects the PSTN call as a LiveKit SIP participant
* Configure `sip_trunk_id` in your LiveKit SIP dispatch rules to route inbound Vobiz calls to your LiveKit room
* Full guide: [LiveKit + Vobiz](https://www.vobiz.ai/docs/integrations/websockets.md)

**ElevenLabs Conversational AI**

* Navigate to **Conversational AI** > **Phone Numbers** > **Import**
* Select Vobiz as the carrier and enter your SIP credentials
* Full guide: [ElevenLabs + Vobiz](https://www.vobiz.ai/docs/integrations/elevenlabs-dashboard.md)

**Pipecat**

* Configure the `SIPTransport` in your Pipecat pipeline with your Vobiz SIP endpoint
* Vobiz streams raw audio to your Pipecat WebSocket endpoint at your configured sample rate
* Full guide: [Pipecat + Vobiz](https://www.vobiz.ai/docs/integrations/pipecat.md)

**Sarvam AI**

* Full guide: [Sarvam AI + Vobiz](https://www.vobiz.ai/docs/integrations/sarvam.md)

## Making Outbound Calls From Your AI Agent

To trigger an outbound call from your AI agent through Vobiz:

```bash theme={null}
curl -X POST https://api.vobiz.ai/api/v1/calls \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "from": "+919XXXXXXXXX",
    "to": "+919XXXXXXXXX",
    "answer_url": "https://your-ai-platform-webhook.com/answer"
  }'
```

The `answer_url` is where Vobiz fetches call handling instructions on answer — this can point directly to your AI platform's inbound webhook or your own server that returns VobizXML.

## Frequently Asked Questions

> [accordion] Which AI voice platforms does Vobiz support?
>
> Vobiz has documented integrations with Vapi, Retell AI, LiveKit, Pipecat, ElevenLabs, Bolna, Ultravox, Sarvam AI, OpenAI Realtime, and 3CX. Any platform that accepts a standard SIP trunk or WebSocket audio stream will work.

> [accordion] Can I use Vobiz for both inbound and outbound with the same number?
>
> Yes. A single Vobiz number handles inbound calls (routed to your AI platform via the Application answer URL) and outbound calls (triggered via the Calls API with the number as the `from` field).

> [accordion] What audio format does Vobiz stream to my AI platform?
>
> Vobiz supports μ-law (PCMU) at 8kHz by default, and linear PCM at 8kHz, 16kHz, or 24kHz for platforms requiring higher sample rates. Configure the codec in your Vobiz Application settings.

> [accordion] Do I need a separate SIP trunk for each AI platform?
>
> No. A single Vobiz SIP trunk works across multiple AI platforms. You can assign different phone numbers to different Applications, each pointing to a different AI platform's answer URL.

> [accordion] How long does it take to get a phone number working with Vapi?
>
> Under 10 minutes. Provision a number, create an Application with Vapi's webhook URL, assign the number, and import the SIP credentials into Vapi's dashboard.

***


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