Documentation Index
Fetch the complete documentation index at: https://docs.vobiz.ai/llms.txt
Use this file to discover all available pages before exploring further.
Overview
Time to complete
~15 minutes
Difficulty
Beginner-Friendly (No Code)
Goal
Connect AI to a real phone
Integration flow:
OUTBOUND
Your App
→
LiveKit
→
Vobiz
→
Phone Network
INBOUND
Phone Network
→
Vobiz
→
LiveKit
→
AI Agent
Prerequisites
Before you start:Vobiz Account with active balance → Create account
LiveKit Account with project → Sign up
LiveKit AI Agent built → LiveKit Agents docs
Part 1: Vobiz setup
Create a SIP trunk

- Log in to the Vobiz Console
- In the left sidebar, navigate to SIP Trunk > Outbound Trunks > Trunks
- Click + Create Trunk
- Enter a Trunk Name (for example, “LiveKit Integration”) and an optional Description
- Under Authentication & Linking, select a Credential from the Credentials List (or click + Create New Credential if you don’t have one)
- Click + Create Trunk at the bottom right to save

| Field | Value |
|---|---|
| SIP Domain (Gateway URL) | <your_unique_domain>.sip.vobiz.ai |
| Username | <your_username> |
| Password | <your_password> |
You now have a dedicated bridge ready for voice traffic.
Get a phone number
Purchase a phone number for outbound caller ID or inbound calls. See phone numbers.
Part 2: LiveKit setup
Get LiveKit credentials
- Go to the LiveKit Cloud Dashboard and select your project.
- Go to Settings > API Keys.
-
You need these three values:
Variable Where to find LIVEKIT_URLSettings > General LIVEKIT_API_KEYSettings > API Keys LIVEKIT_API_SECRETSettings > API Keys
.env
Part 3: Connect LiveKit to Vobiz (outbound)
For a complete working example, see the LiveKit Vobiz Outbound Repository.
Initialize the LiveKit API client
Create an outbound trunk
Connect LiveKit to your Vobiz SIP trunk using the credentials from Part 1:
Your LiveKit project is now securely linked to the Vobiz network.
| Vobiz field | LiveKit field |
|---|---|
sip_domain | address |
username | auth_username |
password | auth_password |
| Your phone number | numbers (array) |
Part 4: Make outbound calls
- LiveKit creates the call via Vobiz
- The person answers and joins the LiveKit room as a participant
- Your AI agent joins the same room
- The conversation begins
Part 5: Configure inbound calling
For a complete working example, see the LiveKit Vobiz Inbound Repository.
-
In the LiveKit Cloud Dashboard, go to Settings > Project and find the SIP URI field.
-
Update your Vobiz trunk to route inbound calls to LiveKit. See Update Trunk.
-
In the LiveKit dashboard, go to Telephony > Trunks and click Create new trunk > Inbound. Configure:
- Phone Numbers: Your Vobiz number (for example,
+918071387434) - Allowed Addresses:
0.0.0.0/0(restrict this in production)
- Phone Numbers: Your Vobiz number (for example,
-
Go to Telephony > Dispatch Rules and click Create new dispatch rule. Configure:
- Rule Type: Individual
- Room Prefix:
call- - Match Trunks: Select your inbound trunk
voice-assistant(must match your agent exactly). Click Create.
Part 6: SIP call transfer
The LiveKit Voice Agent supports cold transfer via SIP REFER.- Say “Transfer me” or “Transfer me to a live agent” → transfers to the default configured number
- Say “Transfer me to +1 555 000 1234” → transfers to the requested number
sip:+15550001234@<your-sip-domain>) and initiates the transfer automatically.
Transfer troubleshooting
| Error | Cause | Solution |
|---|---|---|
| Status 500 (Max Auth Retry) | Incorrect SIP credentials | Run python setup_trunk.py again to update credentials |
| Status 408 (Timeout) | Invalid SIP URI or blocked | Ensure VOBIZ_SIP_DOMAIN is set in .env. Verify “Call Transfer (SIP REFER)” is enabled |
| Status 400 (Invalid argument) | Destination is not a URI | Update code - sip: prefix and @domain are now added automatically |
| Disconnects but no ring | Transfer succeeded, destination failed | Check the destination number or SIP provider logs |
Troubleshooting
Outbound calls
Call doesn’t connect:
- Verify
addressin the LiveKit trunk matches your exact Vobizsip_domain - Check that credentials (
auth_username,auth_password) match exactly - Common mistake: using
sip.vobiz.aiinstead of your specific domain
- Verify credentials in Vobiz Console under Trunks
- Ensure the LiveKit trunk uses the same credentials
- Check your balance at Vobiz Console and top up if needed
Inbound calls
Call disconnects immediately:
- Confirm
inbound_destinationhas thesip:prefix removed - Verify your Vobiz phone number is added to the LiveKit inbound trunk
- Check that
allowed_addressesis set to0.0.0.0/0in the LiveKit trunk
- Confirm the agent is running
- Verify the dispatch rule has “Agent dispatch” configured
- Check that the agent name matches exactly (for example,
voice-assistant) - Confirm the dispatch rule is linked to the correct inbound trunk
Quick reference
Credentials mapping
| Credential | Where to get | Used for |
|---|---|---|
Vobiz sip_domain | Vobiz trunk response | LiveKit trunk address |
Vobiz username | Vobiz trunk response | LiveKit trunk auth_username |
Vobiz password | Vobiz trunk response | LiveKit trunk auth_password |
| Vobiz phone number | Vobiz Numbers API | LiveKit trunk numbers |
| LiveKit SIP URI | LiveKit Settings | Vobiz inbound_destination |
| LiveKit trunk ID | After creating trunk | Making calls |
Common errors
| Error | Cause | Fix |
|---|---|---|
| 401 Unauthorized | Credentials mismatch | Verify Vobiz username/password |
| Call fails silently | Wrong address | Use exact Vobiz sip_domain |
| Insufficient balance | Low credits | Add funds in Vobiz Console |
| Inbound disconnects | Wrong inbound_destination | Remove sip: prefix |
| Agent doesn’t join | Missing agent dispatch | Configure agent name in dispatch rule |
Resources
Vobiz LiveKit Example repositories Support- Vobiz: support@vobiz.ai
- LiveKit: livekit.io/support
Integration complete!Your LiveKit agents can now make and receive calls through Vobiz.