We are facing an RTP media IP mismatch issue with our CPaaS provider in India.
We had previously whitelisted the following LiveKit IP ranges on the CPaaS side:
143.223.88.0/28
161.115.160.0/28
However, we are now observing RTP/media traffic originating from a different IP range (e.g., 143.223.94.x). Our CPaaS provider is refusing to open the SIP trunk for all IPs and requires the exact static IP ranges used by LiveKit for SIP and RTP media.
They have confirmed that SIP signaling is working, but media is being blocked due to the unexpected IP range. They suspect firewall restrictions on their side, but need us to provide the authoritative IP ranges used by LiveKit for SIP trunking and RTP.
Could you please clarify:
The complete and fixed IP ranges used by LiveKit for SIP trunking and RTP media.
Whether LiveKit uses dynamic IP allocation for RTP/media and if so, how to restrict it to static IP blocks.
Any recommended best practices for CPaaS providers that require strict IP whitelisting.
This is a blocker for production deployment, so an exact and definitive answer would be very helpful.
For India, the blocks are 143.223.88.0/21161.115.160.0/19, which match the ranges you have already whitelisted.
Since 143.223.94.x falls within 143.223.88.0/21 this is expected behaviour, so I’m confused why the traffic is rejected due to an unexpected IP range. I assume you are also already pinning your SIP traffic for India, as detailed here: Region pinning for telephony | LiveKit Documentation
The SIP invite looks good to me and it looks like a successful leg doesn’t it? LiveKit is answering the call, media is being exchanged, and then the remote end terminates the call after 10 seconds or so.
Can you help us understand what might be the issue here or what are we missing out? the audio silence is the problem. Attached PCAP for your reference.
In that PCAP you can see the RTP is traveling in both direction so not sure why the caller is not hearing it. When I have seen this in the past it has always been a firewall issue on the SIP provider side or a proxy that sits between.
Is it possible that turn domains and livekit hostnames are not whitelisted but only static IPs are whitelisted being the reason for audio not being heard?
For Example below hostnames and +15 others not whitelisted? :
Looks like the problem is there is a Asterisk in the middle blocking traffic form CPaas to LiveKit and LiveKit to SPaaS. You will need to talk to whoever is running the Asterisk.