colossal-lock-10836
08/14/2025, 3:18 PMtall-airline-16756
08/14/2025, 3:18 PMtall-airline-16756
08/14/2025, 3:18 PMoutbound-trunk.json
) with this structure. Don’t forget to swap out the placeholders with your actual info:
`{
"trunk": {
"name": "My outbound trunk",
"address": "<my-trunk>.pstn.twilio.com",
"numbers": ["+15105550100"],
"auth_username": "<username>",
"auth_password": "<password>"
}
}`Here’s what to replace:
◦ <my-trunk>
— your trunk domain name.
◦ +15105550100
— the phone number you want to register.
◦ <username>
and <password>
— your SIP provider’s login details.
1. Create the Outbound Trunk Using the CLI:
Next, use the LiveKit CLI to create your outbound trunk by running:
`lk sip outbound create outbound-trunk.json`You’ll get back a SIPTrunkID
— keep this handy because you’ll need it to make calls.
2. Initiate an Outbound Call:
Once your trunk is ready, you can start making calls! Create another JSON file (maybe participant.json
) with this setup:
`{
"sip_number": "+15105550100",
"sip_trunk_id": "<your-trunk-id>",
"sip_call_to": "+12135550100",
"room_name": "open-room",
"participant_identity": "sip-test",
"participant_name": "Test call participant",
"wait_until_answered": true
}`Don’t forget to update: Then, kick off the call by running:
lk sip participant create participant.json
◦ <your-trunk-id>
— with the trunk ID you got earlier.
◦ +15105550100
— your registered phone number.
◦ +12135550100
— the number you want to call.
If you want to dive deeper or need more info, check out the LiveKit SIP Outbound Trunk Documentation. I’m here if you have any questions!colossal-lock-10836
08/14/2025, 3:38 PMcolossal-lock-10836
08/14/2025, 3:38 PMtall-airline-16756
08/14/2025, 3:38 PM