creamy-scientist-61602
11/12/2025, 10:11 PMtall-airline-16756
11/12/2025, 10:11 PMtall-airline-16756
11/12/2025, 10:12 PM{
"trunk": {
"name": "My outbound trunk",
"address": "sip.provider.com",
"numbers": [
"+15105550100"
],
"authUsername": "your_username",
"authPassword": "your_password"
}
}
Just replace the placeholders with your SIP provider’s details.
1. Then, run this command: lk sip outbound create outbound-trunk.json.
Method 2: Using the LiveKit Server SDK
import { SipClient } from 'livekit-server-sdk';
const sipClient = new SipClient(
process.env.LIVEKIT_URL,
process.env.LIVEKIT_API_KEY,
process.env.LIVEKIT_API_SECRET
);
const trunk = await sipClient.createSipOutboundTrunk(
'My trunk',
'sip.provider.com',
['+15105550100'],
{
auth_username: 'your_username',
auth_password: 'your_password'
}
);
Method 3: Using the LiveKit Cloud Dashboard
1. Sign in to LiveKit Cloud.
2. Navigate to Telephony → Configuration.
3. Click Create new → Trunk.
4. Choose Outbound as the trunk direction.
5. Switch to the JSON editor tab and paste your JSON configuration.
6. Click Create.
If you have any questions along the way or need help tailoring this to your specific setup, please don’t hesitate to reach out. I’m here to support you!
Sources: SIP outbound trunk | LiveKit docs | Making outbound calls | LiveKit docstall-airline-16756
11/13/2025, 9:11 AMcreamy-scientist-61602
11/13/2025, 9:13 AM{callId: "SCL_kpYdLYt3c8wL"
trunkId: "ST_gCHP*****"
region: "ofrankfurt1b"
roomName: "my-sip-room"
participantIdentity: "sip-test"
participantAttributes: {
sip.callID: "SCL_kpYdLYt3c8wL"
sip.callStatus: "dialing"
sip.phoneNumber: "233554804690"
sip.trunkID: "ST_gCHPmcMdpH3h"
sip.trunkPhoneNumber: "+233552571977"
}
fromUri: {
user: "+2335*****"
host: "10jm****.sip.livekit.cloud"
ip: "161.115.161.21"
port: 9000
}
toUri: {
user: "233554****"
host: "196.210.50.139"
port: 5060
transport: "SIP_TRANSPORT_UDP"
}
callDirection: "SCD_OUTBOUND"
callStatus: "SCS_ERROR"
createdAtNs: "1762897182501595889"
endedAtNs: "1762897182714979543"
error: "unexpected status from INVITE response: sip status: 603: Declined"
callStatusCode: {
code: "SIP_STATUS_GLOBAL_DECLINE"
status: "Declined"
}
}tall-airline-16756
11/13/2025, 9:13 AM