View on GitHub
Clone and run the full working example
Getting started
Overview
The agent uses the LiveKit Python SDK to create an outbound SIP trunk pointing to Vobiz, then dials a destination number. When the call is answered, the person joins the LiveKit room and the AI agent handles the conversation.How it works
- Call
lk.sip.create_sip_outbound_trunk()with your Vobiz SIP domain, username, and password. - Call
lk.sip.create_sip_participant()with the destination number. - LiveKit sends a SIP INVITE to Vobiz.
- Vobiz dials the destination via PSTN.
- When answered, the caller joins the room and the AI agent takes over.
Key code
Environment variables
.env
Resources
Related LiveKit templates
- LiveKit inbound calling - route calls to a Vobiz number into a LiveKit agent over a 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.