can i use livekit sip service with self hosting li...
# ask-ai
e
can i use livekit sip service with self hosting livekit server?
t
Yes, absolutely! You can definitely use the LiveKit SIP service with your self-hosted LiveKit server. I’m here to help you through the setup process, which involves deploying the SIP service separately and connecting it to your LiveKit server via Redis. Here’s a friendly overview of the key steps: • First, prepare a YAML configuration file for the SIP service. You’ll include important details like your LiveKit server API key, secret, WebSocket URL, and Redis connection info. • Next, deploy the SIP service. You can do this using Docker Compose or run it natively. If you choose Docker Compose, simply run these commands:
Copy code
wget https://raw.githubusercontent.com/livekit/sip/main/docker-compose.yaml
docker compose up
• Make sure the necessary ports are open on your firewall: SIP signaling ports (5060/5061) and media ports (10000–20000). • Then, create a SIP Trunk and Dispatch Rule to manage incoming calls and route them to the right LiveKit room. You can do this easily with the
livekit-cli
or server SDKs. For more detailed guidance, I recommend checking out the SIP Quickstart Guide and the Self-hosted SIP Server documentation. And please, don’t hesitate to reach out if you have any questions or need a hand with anything—I’m here to support you! Sources: lib/livekit/sip_service_client.rb | Ports and firewall | LiveKit docs | SIP overview | LiveKit docs | README.md | Self-hosted SIP server | LiveKit docs