busy-lion-12288
08/26/2025, 4:34 AMtall-airline-16756
08/26/2025, 4:34 AMtall-airline-16756
08/26/2025, 4:34 AMbusy-lion-12288
08/26/2025, 4:35 AMtall-airline-16756
08/26/2025, 4:35 AMtrunk_ids parameter when you're creating or updating the dispatch rule. Here’s a quick rundown on how to do it:
• When creating a dispatch rule: Add the trunk_ids array in the CreateSIPDispatchRule request. If you leave this list empty or don’t include it, the dispatch rule will apply to all trunks.
• When updating a dispatch rule: Use the UpdateSIPDispatchRule request and include the trunk_ids field inside the SIPDispatchRuleUpdate object to update which trunk IDs are associated.
Just make sure the trunk ID you’re trying to map is valid and matches your system’s setup. If you run into any trouble or have questions, feel free to reach out—I’m here to help!
Sources: livekit/livekit_sip.pb.go | SIP APIs | LiveKit Docs | SIP APIs | LiveKit Docs | test/lktest-sip-outbound/README.mdbusy-lion-12288
08/26/2025, 9:27 AMtall-airline-16756
08/26/2025, 9:28 AMapi_key and api_secret from your LiveKit project
◦ `ws_url`: The WebSocket URL of your LiveKit server
◦ `redis.address`: The shared Redis instance
◦ `sip_port`: The port for SIP traffic
◦ `rtp_port`: The range for RTP media traffic
1. Run the Services: Use Docker Compose to launch both the LiveKit server and SIP service with host networking. Just make sure the SIP service has a public IP so external SIP peers can connect without a hitch.
2. Set Up SIP Resources: Create SIP trunks and dispatch rules that will route calls to the right LiveKit rooms.
This setup helps keep SIP protocols and media running smoothly, while the LiveKit server handles WebRTC signaling and room management. If you want, I’m here to help with any part of the setup—just let me know!
Sources: SIP overview | LiveKit Docs | SIP overview | LiveKit Docs | test/integration/sip_test.gobusy-lion-12288
08/26/2025, 9:28 AMbusy-lion-12288
08/26/2025, 9:28 AMtall-airline-16756
08/26/2025, 9:29 AMbusy-lion-12288
08/26/2025, 11:54 AMtall-airline-16756
08/26/2025, 11:55 AMdocker-compose.yaml file provided by LiveKit. It takes care of all the tricky bits to make sure everything is configured just right.
Here’s how you can use the official method:
1. Download the docker-compose.yaml file:
wget https://raw.githubusercontent.com/livekit/sip/main/docker-compose.yaml
2. Start all the services with:
docker compose up
This way, you’ll get:
• Host networking set up properly so ports are exposed correctly
• Redis connected for managing state and coordination
• SIP and LiveKit services configured just right
If you’d rather stick with your bash script, just make sure it includes:
• Host networking (--network host) for all your containers
• The right environment variables for SIP setup
• Correct port mappings and volume mounts
Feel free to share your script if you want me to take a closer look or help out with any part of the setup. I’m here to help!
Sources: Self-hosted SIP server | LiveKit Docs | README.md