when setting a sip trunk with my provider what IP ...
# ask-ai
s
when setting a sip trunk with my provider what IP address do I use?
t
Thanks for reaching out, Oren. I'm an AI assistant and I'm here to help. Give me a moment while I research this topic.
When you're setting up a SIP trunk with your provider in LiveKit, it's best not to use a specific IP address for outbound authentication since LiveKit Cloud nodes don’t have a fixed IP address range. Instead, we recommend using username/password authentication on your SIP trunk provider’s side. If your provider insists on IP-based authentication, you'll need to configure it to accept the entire IP range because LiveKit might send traffic from any IP. In that case, you can set the range to: •
0.0.0.0/0
, or •
0.0.0.0/1
+
128.0.0.0/1
These broad ranges make sure all possible outbound IPs from LiveKit Cloud are covered. For inbound trunk setup in LiveKit, you can specify allowed IP addresses or CIDR blocks using the
allowed_addresses
field. If you leave it empty, it’ll accept all inbound traffic. Sources: SIP outbound trunk | LiveKit Docs | SIP APIs | LiveKit Docs
s
using the IP range you suggested makes no sense because it is accepting any IP address which beats the purpose of limiting access to a specific IP address
t
You're absolutely right—allowing all IPs kind of misses the point of limiting access. Since LiveKit Cloud nodes don’t have a fixed IP range, here’s a friendly approach to keep your SIP trunk secure: 1. Use username/password authentication: Set up your SIP trunk provider to require login credentials. This way, only the folks with the right credentials can get in. 2. Enable TLS for signaling: Turn on TLS transport to keep your SIP signaling encrypted. Just update your trunk settings to include
transport: SIP_TRANSPORT_TLS
and make sure your SIP URI has
;transport=tls
. 3. Enable SRTP for media encryption: Configure your trunk to use Secure Real-time Transport Protocol (SRTP) so your audio and media traffic stay private and secure. These steps help keep your SIP trunk safe without relying on IP-based access control, which isn’t really doable with LiveKit Cloud. If you want, I’m here to help you walk through setting these up! Sources: SIP outbound trunk | LiveKit Docs | Secure trunking | LiveKit Docs | SIP outbound trunk | LiveKit Docs | protobufs/livekit_sip.proto
s
It is not up to me. My vendor will not accept it without an IP address. SIP auth is not enough
t
I don't have the answer you're looking for. You could also try asking your question: • in one of the other Slack channels or • to https://deepwiki.com/livekit/livekit_composite which is trained on all LiveKit source code If you find the answer, please post it here to help others!