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": "sip.telnyx.com",
"numbers": ["1234567890"],
"auth_username": "<outbound-user>",
"auth_password": "<outbound-pass>"
}
}
caution:

Note that Telnyx numbers must omit the leading + by default.

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.