How do I set up a SIP trunk for a LiveKit-based voice AI project?
LiveKit uses SIP trunking to connect phone calls to LiveKit rooms where AI agents are running. To set up Vobiz as the SIP trunk for a LiveKit project: create a Vobiz SIP trunk, configure a LiveKit SIP Trunk resource pointing to Vobiz’s SIP domain, and define a SIP Dispatch Rule to route inbound calls to your AI agent’s room. Outbound calls are initiated via the LiveKit API with Vobiz as the carrier.Architecture: How LiveKit + Vobiz Works
Setup: Inbound Calls (PSTN → LiveKit Agent)
Step 1 — Provision a Vobiz Phone Number
Step 2 — Note Your Vobiz SIP Domain
Your Vobiz SIP trunk domain and credentials are available in the console under SIP Trunks. The SIP domain format is:Step 3 — Create a LiveKit SIP Trunk Resource
Using the LiveKit CLI or API, create an Inbound SIP Trunk pointing to Vobiz:Step 4 — Create a SIP Dispatch Rule
A Dispatch Rule tells LiveKit which room to route an inbound call to:call-{call_uuid}). Your AI Agent process should be watching for new rooms matching this prefix.
Step 5 — Point the Vobiz Number at LiveKit’s SIP Server
In the Vobiz console, create an Application and set the Answer URL to point to LiveKit’s SIP endpoint. Use SIP application type and enter LiveKit’s SIP server URI from your LiveKit project settings.Setup: Outbound Calls (LiveKit Agent → PSTN)
Create an Outbound SIP Trunk in LiveKit that uses Vobiz for outbound dialling:Audio Configuration
LiveKit uses Opus audio by default. Vobiz transcodes between Opus (LiveKit internal) and G.711 PCMU (PSTN) automatically. For the lowest latency, select the Mumbai media region for your Vobiz SIP trunk if your LiveKit infrastructure runs in AWS ap-south-1.Frequently Asked Questions
Does Vobiz support LiveKit's SIP Participant feature?
Does Vobiz support LiveKit's SIP Participant feature?
Yes. Vobiz is a standard SIP provider — LiveKit’s SIP Bridge connects to Vobiz using standard SIP over TLS with SRTP media. No Vobiz-specific configuration is required beyond providing your SIP trunk URI and credentials to LiveKit.
Can my LiveKit AI agent make and receive calls on the same Vobiz number?
Can my LiveKit AI agent make and receive calls on the same Vobiz number?
Yes. Configure both an Inbound SIP Trunk (for receiving calls) and an Outbound SIP Trunk (for making calls) in LiveKit, both using the same Vobiz SIP credentials. The same DID number is used as the caller ID for outbound calls.
How do I get Vobiz SIP credentials for LiveKit?
How do I get Vobiz SIP credentials for LiveKit?
In the Vobiz console, navigate to SIP Trunks > Create Trunk. After creation, the dashboard shows your SIP domain, username, and password. These are the credentials you enter into LiveKit’s SIP Trunk configuration.
What is the latency of LiveKit + Vobiz for Indian PSTN calls?
What is the latency of LiveKit + Vobiz for Indian PSTN calls?
With the Mumbai media PoP on Vobiz and a LiveKit server running in AWS ap-south-1, telephony RTT is typically 40–80ms. LiveKit’s internal audio processing adds minimal overhead. See Low Latency Voice AI for tuning guidance.