403 Forbidden error when setting up outbound trunk with Twilio

This question originally came up in our Slack community and the thread has been consolidated here for long-term reference.

I’m trying to set up an outbound trunk with LiveKit Cloud and Twilio Elastic Trunk, but getting this error:

SIPStatusCode: 403
SIPStatus: Forbidden
rpc error: code = PermissionDenied desc = unexpected status from INVITE response

I think there’s an issue with the ACL of IPs, but LiveKit Cloud doesn’t have static outbound IP addresses and Twilio doesn’t allow 0.0.0.0/0. How can I solve this?

LiveKit Cloud does have static IP addresses for SIP. You can find the IP address ranges here:

Add these IP ranges to your Twilio ACL to resolve the 403 Forbidden error.