Skip to main content
Make outbound calls from a LiveKit AI voice agent using Vobiz SIP trunking.

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

  1. Call lk.sip.create_sip_outbound_trunk() with your Vobiz SIP domain, username, and password.
  2. Call lk.sip.create_sip_participant() with the destination number.
  3. LiveKit sends a SIP INVITE to Vobiz.
  4. Vobiz dials the destination via PSTN.
  5. When answered, the caller joins the room and the AI agent takes over.

Key code

Environment variables

.env

Resources