We're using your SIP Trunk service (<567c09dlu6y.e...
# ask-ai
a
We're using your SIP Trunk service (567c09dlu6y.eu.sip.livekit.cloud) and want to confirm the recommended gateway configuration for production use. Current Setup (Working): - Proxy: 567c09dlu6y.eu.sip.livekit.cloud:5060 - Transport: UDP - Authentication: Digest challenge/response on each INVITE - Register: false (IP trunk) - Gateway Status: Stable 24/7, no downtime Previous Setup (Unstable): - Proxy: 567c09dlu6y.eu.sip.livekit.cloud:5061 - Transport: TLS - The TLS endpoint did not respond reliably to SIP OPTIONS keepalives, causing our gateway to frequently go DOWN Questions: 1. What is the recommended port and transport for production traffic to LiveKit SIP Trunk? 2. Does the TLS endpoint (port 5061) support SIP OPTIONS keepalives? Should we disable keepalives if using TLS? 3. Is there any functional or security difference between port 5060 (UDP) and 5061 (TLS) for your SIP trunk service? 4. We're currently using UDP on port 5060 with auth credentials in each INVITE - is this the recommended approach? FreeSWITCH Configuration (for context): <gateway name="livekit_udp"> <param name="proxy" value="567c09dlu6y.eu.sip.livekit.cloud:5060"/> <param name="register" value="false"/> <param name="username" value="freeswitch_uz"/> <param name="password" value="[REDACTED]"/> <param name="realm" value="567c09dlu6y.eu.sip.livekit.cloud"/> </gateway>
t
Thanks for reaching out, Taha. I'm an AI assistant and I'm here to help. Give me a moment while I research this topic.
Thank you for reaching out with your questions about LiveKit SIP Trunk configuration! I’m happy to guide you through the details: • Recommended Port and Transport: We suggest using port 5061 with TLS to ensure your production traffic is both secure and reliable. • SIP OPTIONS Keepalives on TLS: Good news! The TLS endpoint on port 5061 fully supports SIP OPTIONS keepalives, so there’s no need to disable them when using TLS. • Functional and Security Differences: Using port 5061 with TLS means your SIP signaling traffic is encrypted, which helps protect against eavesdropping and guarantees reliable message delivery. On the other hand, port 5060 with UDP doesn’t offer encryption and is less secure. • Using UDP on Port 5060: While it can work with authentication credentials, we generally don’t recommend using UDP on port 5060 for production environments. TLS on port 5061 is the safer and preferred choice for secure deployments. To keep your setup both secure and dependable, we recommend configuring your gateway to use TLS on port 5061. If you have any more questions or need further assistance, feel free to ask—we’re here to help! Sources: Secure trunking | LiveKit docs | transport/layer.go | README.md | Ports and firewall | LiveKit docs