lively-napkin-52553
09/23/2025, 12:15 PMtall-airline-16756
09/23/2025, 12:15 PMtall-airline-16756
09/23/2025, 12:15 PMwget <https://raw.githubusercontent.com/livekit/sip/main/docker-compose.yaml>
2. Then, start the services with:
docker compose up
This will launch a local LiveKit Server and SIP Server connected to Redis, making things smooth and simple.
Native Deployment
1. Begin by installing the necessary dependencies:
◦ Go version ≥ 1.18
◦ Libraries: libopus, libopusfile, libsoxr
1. Next, build the SIP server with:
mage build
2. Create a config.yaml file including your API credentials and port settings. It should look like this:
api_key: <your-api-key>
api_secret: <your-api-secret>
ws_url: <ws://localhost:7880>
redis:
address: localhost:6379
sip_port: 5060
rtp_port: 10000-20000
use_external_ip: true
logging:
level: debug
1. Finally, run the SIP server using:
livekit-sip --config=config.yaml
Required Ports
To make sure everything communicates properly, please check that the following ports are open and accessible:
• 5060 (UDP/TCP): for SIP signaling
• 10000–20000 (UDP): for RTP media used by SIP
• 7880 (TCP): for LiveKit API & WebSocket connections
• 50000–60000 (UDP): for WebRTC over ICE/UDP (or you can use 7882 for a single UDP mux port)
And if you want TURN support (which is optional), please also open:
• 3478 (UDP): TURN/UDP
• 5349 (TLS): TURN/TLS
Additional Notes
• In cloud environments, set use_external_ip: true to use your public IP address.
• Make sure Redis is up and running and accessible by both LiveKit and SIP servers.
• For WebRTC to work smoothly, HTTPS and valid TLS certificates are necessary.
If you run into any questions or need a hand with any part of this, please don’t hesitate to reach out. I’m here to help you every step of the way!
Sources: Ports and firewall | LiveKit Docs | SIP & Telephony Integration | livekit/livekit_composite | DeepWiki | Running LiveKit on AWS | Self-hosted SIP server | LiveKit Docs | pkg/sip/server.golively-napkin-52553
09/23/2025, 12:16 PMtall-airline-16756
09/23/2025, 12:17 PMlively-napkin-52553
09/23/2025, 12:19 PMtall-airline-16756
09/23/2025, 12:21 PM