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