If you're looking to build a self-hosted voicebot with LiveKit that can handle incoming calls using Sinch as your telephony provider, here’s a friendly rundown of what you’ll need:
•
LiveKit Server: You’ll want to deploy the LiveKit server on a virtual machine using Docker Compose. Make sure you have a domain name, SSL/TLS certificates, and that the necessary ports are open (like 443, 7881, 3478/UDP, 50000-60000/UDP).
•
SIP Server: Since this is self-hosted, you’ll need to set up a SIP server separately. This will take care of the telephony integration by managing SIP signaling and media for your phone calls.
•
SIP Trunk: Grab a SIP trunk and phone number from your telephony provider, Sinch, to get things connected.
•
LiveKit Agents: Use the LiveKit Agents framework to build the voicebot’s logic. You can configure it with services like ASR (for example, Deepgram), TTS, and LLMs to handle conversations smoothly.
•
Network Configuration: Don’t forget to set up your DNS properly and open additional ports for SIP (like 5060 for signaling and 10000-20000/UDP for media).
If you want to dive deeper, the
VM deployment guide and
SIP server guide have all the detailed steps you’ll need.
Sources:
Deploy to a VM | LiveKit Docs |
Deploying LiveKit | LiveKit Docs |
Self-hosted SIP server | LiveKit Docs |
SIP overview | LiveKit Docs |
Making calls using SIP | LiveKit Docs