View on GitHub
Clone and run the full working example
Getting started
Overview
When someone calls your Vobiz number, the call is routed via SIP to LiveKit. A dispatch rule automatically spawns your AI agent into a room where the caller is connected. The agent handles the conversation using LiveKit’s real-time audio pipeline.How it works
- Caller dials your Vobiz number.
- Vobiz SIP routes the call to your LiveKit SIP URI (configured as
inbound_destinationon your trunk). - LiveKit receives the call and applies the dispatch rule.
- The dispatch rule auto-spawns your agent into the call room.
- The AI agent greets the caller and handles the conversation.
Setup requirements
- A Vobiz SIP trunk with
inbound_destinationset to your LiveKit SIP URI - A LiveKit inbound SIP trunk with your Vobiz phone number
- A LiveKit dispatch rule configured to auto-spawn your agent
When entering the LiveKit SIP URI as the Vobiz
inbound_destination, remove the sip: prefix. Enter your-id.sip.livekit.cloud not sip:your-id.sip.livekit.cloud.Environment variables
.env
Resources
Related LiveKit templates
- LiveKit outbound calling - place calls from a LiveKit agent through a Vobiz SIP trunk.
- Call transfer - transfer a live call to any phone number with SIP REFER.
- DTMF IVR - an IVR menu that accepts keypad input as well as speech.
- Agent-to-agent handoff - pass a call to a specialist agent with the conversation context.
- Answering machine detection - tell a human from voicemail before the agent speaks.
- Webhooks and CRM integration - push HMAC-signed call events to your CRM.
- All features in one agent - inbound, outbound, transfers, DTMF, AMD, and webhooks together.