rhythmic-furniture-71949
08/13/2025, 1:07 PMtall-airline-16756
08/13/2025, 1:07 PMtall-airline-16756
08/13/2025, 1:07 PMuse_external_ip
for SIP signaling and setting nat_1_to_1_ip
if needed.
◦ SIP signaling: Port 5060 (UDP/TCP) or 5061 (TLS)
◦ RTP media: Port range 10000-20000 (UDP)
1. Monitor Call Status: Keep an eye on the SIP call status through participant events. If calls disconnect or fail, take note of the failure reason to help pinpoint the issue.
2. Check SIP Provider Compatibility: Make sure netGSM is properly configured to send SIP traffic to your LiveKit SIP instance. For incoming calls, ensure the provider routes calls correctly to LiveKit's SIP service.
3. Log and Debug: Take a look at the SIP logs and participant status updates to see where things might be going wrong. Look out for any specific error codes or messages if calls show as "disconnected" or "error."
If you'd like, I’m here to help with any of these steps or answer any questions you have. Just let me know!
Sources: SIP trunk setup | LiveKit Docs | Accepting inbound calls | LiveKit Docs | Making outbound calls | LiveKit Docs | Diagnosing Connection Errors with Connection Test Utility | Community & Support | livekit/livekit_composite | DeepWikirhythmic-furniture-71949
08/13/2025, 1:09 PMtall-airline-16756
08/13/2025, 1:09 PMconfig.yaml
file to make sure your SIP service is set up right:Also, you can use command-line tools to see if the SIP service is actually listening on those ports:
`netstat -tuln | grep 5060`or
ss -tuln | grep 5060
◦ Set sip_port
to 5060 and rtp_port
to 10000-20000.
◦ If you’re using secure SIP, double-check that tls.port
is set to 5061.
1. Troubleshooting Common Issues:
◦ Make sure your NAT traversal is configured properly.
◦ Double-check your API credentials and SIP trunk setup to avoid authentication problems.
◦ Confirm your dispatch rules are set up correctly to route calls smoothly.
If anything’s unclear or you want a hand with any of these steps, just let me know—I’m here to help!
Sources: SIP Integration | livekit/livekit_composite | DeepWiki | src/connectionHelper/checks/webrtc.ts | Ports and Firewall | LiveKit Docsrhythmic-furniture-71949
08/13/2025, 1:11 PMtall-airline-16756
08/13/2025, 1:12 PMsip:vjnxecm0tjk.sip.livekit.cloud
).
2. Create SIP Trunks:
Jump into Telephony Configuration and set up a new trunk. You can use the JSON editor to add inbound or outbound trunks with all the details you need, like numbers, authentication info, and allowed addresses.
3. Create Dispatch Rules:
Still in Telephony Configuration, you can create dispatch rules to send incoming calls to specific LiveKit rooms. The JSON editor lets you define rules based on room names or prefixes—super handy!
4. Firewall Considerations:
If you’re working from a corporate network, just make sure your firewall lets traffic through on these ports:
◦ SIP signaling: 5060 (UDP/TCP) and 5061 (TLS)
◦ RTP media: 10000-20000 (UDP)
1. Programmatic Configuration:
If you like working with code, you can also manage SIP trunks and dispatch rules using the LiveKit CLI or server SDKs.
If you get stuck or want to chat through any of these steps, just let me know—I’m here to help!
Sources: Create and configure a Twilio SIP trunk | LiveKit Docs | SIP trunk setup | LiveKit Docs | test/integration/sip_test.go | packages/livekit-server-sdk/src/SipClient.ts | Create and configure SIP trunk | LiveKit Docsrhythmic-furniture-71949
08/13/2025, 1:17 PMtall-airline-16756
08/13/2025, 1:17 PMcurl -X POST \
https://<YOUR_LIVEKIT_URL>/twirp/livekit.SIP/UpdateSIPInboundTrunk \
-H "Authorization: Bearer <token-with-sip-admin>" \
-H 'Content-Type: application/json' \
-d '{
"sip_trunk_id": "ST_dyXdmDURXeTi",
"update": {
"auth_username": "your_sip_username",
"auth_password": "your_sip_password",
"allowed_addresses": ["192.168.1.0/24", "10.0.0.1"]
}
}'
Just swap out <YOUR_LIVEKIT_URL>
with your actual LiveKit instance URL. If you hit any bumps or want me to walk you through any part of this, just let me know — I’m here to help!strong-pizza-31661
08/13/2025, 2:29 PMtall-airline-16756
08/13/2025, 2:31 PMrhythmic-furniture-71949
08/13/2025, 2:58 PMtall-airline-16756
08/13/2025, 2:59 PMrhythmic-furniture-71949
08/13/2025, 3:00 PMtall-airline-16756
08/13/2025, 3:00 PM