SIP Outbound Trunk

How to create and configure a Outbound Trunk to make outgoing calls.

To provision an Outbound Trunk with the SIP Service, use the CreateSIPOutboundTrunk API. It returns an SIPOutboundTrunkInfo object that describes the created SIP Trunk. These parameters can also be queried at any time using the ListSIPOutboundTrunk API.

SIP Outbound Trunk with user/pass authentication

The following creates a SIP Outbound Trunk with user/password authentication. It will make outbound calls from number +1234567890.

{
"trunk": {
"name": "Demo Outbound Trunk",
"address": "my-twilio-trunk.pstn.twilio.com",
"numbers": ["+1234567890"],
"auth_username": "<outbound-user>",
"auth_password": "<outbound-pass>"
}
}
caution:

Note that Twilio numbers must start with a leading +.

Then create the Outbound Trunk using lk:

lk sip outbound create outboundTrunk.json

IP address range for LiveKit Cloud SIP

LiveKit Cloud nodes do not have a static IP address range, thus there's no way currently to use IP range for outbound authentication.

Thus, prefer setting user/password authentication on SIP Trunk Provider.

If it's unavailable, or IP range is required in addition to user/password, set range(s) that include all IPs: e.g. 0.0.0.0/0 or 0.0.0.0/1+128.0.0.0/1.