LiveKit connects to Vobiz SIP trunking for real-time AI voice agents - inbound and outbound calling across 130+ countries with dispatch rules and trunk setup.
This guide shows how to integrate LiveKit with Vobiz to enable outbound calling and inbound answering for your AI agents.
Before you start:

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

After creating the trunk, copy your credentials from the Authentication & Linking section:
| Field | Value |
|---|---|
| SIP Domain (Gateway URL) | <your_unique_domain>.sip.vobiz.ai |
| Username | <your_username> |
| Password | <your_password> |
✅ Success: You now have a dedicated bridge ready for voice traffic.
💡 Tip: Keep these handy - you'll paste them into your LiveKit code in Part 3.
Purchase a phone number for outbound caller ID or inbound calls. See phone numbers.
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_URL | Settings > General |
LIVEKIT_API_KEY | Settings > API Keys |
LIVEKIT_API_SECRET | Settings > API Keys |
bashLIVEKIT_URL=wss://your-project.livekit.cloud LIVEKIT_API_KEY=APIxxxxxxxxxxxxx LIVEKIT_API_SECRET=secretxxxxxxxxxx
ℹ️ Note: For a complete working example, see the LiveKit Vobiz Outbound Repository.
pythonfrom livekit import api as livekit_api lk = livekit_api.LiveKitAPI( url="YOUR_LIVEKIT_URL", api_key="YOUR_LIVEKIT_API_KEY", api_secret="YOUR_LIVEKIT_API_SECRET" )
Connect LiveKit to your Vobiz SIP trunk using the credentials from Part 1:
pythontrunk = await lk.sip.create_sip_outbound_trunk( livekit_api.CreateSIPOutboundTrunkRequest( trunk=livekit_api.SIPOutboundTrunkInfo( name="Vobiz Trunk", address="YOUR_VOBIZ_SIP_DOMAIN", # sip_domain from Vobiz auth_username="YOUR_VOBIZ_USERNAME", # username from Vobiz auth_password="YOUR_VOBIZ_PASSWORD", # password from Vobiz numbers=["YOUR_PHONE_NUMBER"], # your Vobiz phone number ) ) ) # Save trunk.sip_trunk_id - you'll need it to make calls
✅ Success: Your LiveKit project is now securely linked to the Vobiz network.
Field mapping from Vobiz → LiveKit:
| Vobiz field | LiveKit field |
|---|---|
sip_domain | address |
username | auth_username |
password | auth_password |
| Your phone number | numbers (array) |
pythonparticipant = await lk.sip.create_sip_participant( livekit_api.CreateSIPParticipantRequest( sip_trunk_id="YOUR_TRUNK_ID", # from Part 3 sip_call_to="+1234567890", # number to call (E.164) room_name="call-room", # LiveKit room name ) )
Call flow:
ℹ️ Note: 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.
textsip:your-sip-uri.sip.livekit.cloud
Update your Vobiz trunk to route inbound calls to LiveKit. See Update Trunk.
⚠️ Warning: Remove the
sip:prefix when entering the destination in Vobiz. LiveKit showssip:your-sip-uri.sip.livekit.cloudbut you enteryour-sip-uri.sip.livekit.cloud.
bashPATCH https://api.vobiz.ai/api/v1/Account/{auth_id}/trunks/{trunk_id}
json{ "inbound_destination": "your-sip-uri.sip.livekit.cloud" }
In the LiveKit dashboard, go to Telephony > Trunks and click Create new trunk > Inbound. Configure:
+918071387434)0.0.0.0/0 (restrict this in production)Click Create and save the Trunk ID.
Go to Telephony > Dispatch Rules and click Create new dispatch rule. Configure:
call-Expand the Agent dispatch section and set Agent Name to voice-assistant (must match your agent exactly). Click Create.
The LiveKit Voice Agent supports cold transfer via SIP REFER.
The agent constructs the SIP URI (sip:+15550001234@<your-sip-domain>) and initiates the transfer automatically.
| 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 |
Call doesn't connect:
address in the LiveKit trunk matches your exact Vobiz sip_domainauth_username, auth_password) match exactlysip.vobiz.ai instead of your specific domainSIP 401 Unauthorized:
Insufficient balance:
Call disconnects immediately:
inbound_destination has the sip: prefix removedallowed_addresses is set to 0.0.0.0/0 in the LiveKit trunkAgent doesn't answer:
voice-assistant)| 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 |
| 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 |
Vobiz
LiveKit
Example repositories
Support
✅ Success: Integration complete!
Your LiveKit agents can now make and receive calls through Vobiz.
Connect 3CX PBX to Vobiz SIP trunking for inbound and outbound calling across 130+ countries - configure a generic SIP trunk in minutes.
Connect an Agora Conversational AI agent to Vobiz SIP trunking - add a Vobiz number to Agora for outbound campaigns and route inbound calls to your agent, including India and 130+ countries.
Bolna ships Vobiz as a built-in telephony provider. Paste two credentials into the Providers screen and your agents place and answer calls on numbers in 130+ countries, reaching 190, with audio streaming rather than a SIP trunk.
We use cookies to run this site and, with your permission, to understand how it's used. Read our Cookie Policy.