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