1. Overview
This document explains how to integrate Exotel PSTN calls with LiveKit SIP infrastructure. The integration allows incoming PSTN calls to be connected into a LiveKit room, where AI agents can join and handle the conversation in real time.
2. Architecture
A PSTN call arrives at Exotel.
Exotel forwards the call to the LiveKit SIP FQDN.
Example format: sip:xxxxxxx.sip.livekit.cloud (actual ID masked).
LiveKit bridges the call into a LiveKit room.
The agent joins the same room to handle the conversation.
3. FQDN Provisioning
You can provide the LiveKit FQDN and mobile DID by sending a request to hello@exotel.com
The support team will take care of configuring the mapping in Exotel.
How to Find the FQDN in LiveKit
Log in to your LiveKit console.
Navigate to Telephony → Configuration.
Copy the SIP URL (FQDN).
4. Deploying the Agent
Customers are responsible for deploying their LiveKit Agent.
References
Steps
Use the starter project or build a custom agent following the documentation.
Deploy the agent on your infrastructure.
Define a Dispatch Rule to connect incoming SIP calls to the correct agent room.
Reference: LiveKit Dispatch Rules
5. Security (Optional)
For enhanced security, you may share with the customer the following:
SIP Signaling IP addresses
Media IP addresses
This allows the customer to configure their SIP trunk to only accept traffic from LiveKit infrastructure.