alert-continent-21953
10/12/2025, 11:10 AMtall-airline-16756
10/12/2025, 11:10 AMtall-airline-16756
10/12/2025, 11:11 AMalert-continent-21953
10/12/2025, 11:12 AMtall-airline-16756
10/12/2025, 11:12 AMSIPOutboundTrunkInfo object when you create or update an outbound SIP trunk. When you make an outbound call, one of these numbers will be randomly selected as the caller ID.
You can easily set multiple numbers using either the API or an SDK. Here are some examples to guide you:
Using the Node.js SDK:
await client.createSipOutboundTrunk(
"Trunk Name",
"sip.example.com",
["+1234567890", "+1234567891", "+1234567892"],
{
authUsername: "username",
authPassword: "password"
}
);
Using the Python SDK:
await sip_service.create_outbound_trunk(
name="Trunk Name",
address="sip.example.com",
numbers=["+1234567890", "+1234567891", "+1234567892"],
auth_username="username",
auth_password="password"
)
If you need to update an existing outbound trunk to add or change the list of numbers, you can use the update_outbound_trunk_fields method — it’s quite straightforward!
If you’d like to dive deeper or need more details, feel free to check out the SIP Outbound Trunk documentation. And of course, if you have any questions along the way, I’m here to help!
Sources: packages/livekit-server-sdk/src/SipClient.ts | livekit-protocol/livekit/protocol/sip.pyi | SIP outbound trunk | LiveKit Docs | livekit/sip_test.goalert-continent-21953
10/12/2025, 11:15 AMtall-airline-16756
10/12/2025, 11:16 AMnumbers field. For example:
{
"address": "your-provider.com",
"numbers": [
"+15105550123",
"+15105550124"
],
"auth_username": "your-username",
"auth_password": "your-password"
}
• Dynamic Number Selection: If you prefer, you can leave the numbers field empty in the trunk configuration and specify the user number dynamically during the call using the sip_number parameter in the CreateSIPParticipant API. Here’s an example:
{
"room_sid": "RM123",
"sip_trunk_id": "TRUNK123",
"sip_number": "+15105550123"
}
Just a quick reminder to make sure your SIP trunking provider is set up to allow calls from these numbers and accepts SIP traffic from LiveKit. If you want to dive deeper, you can check out the SIP Outbound Trunk documentation. Feel free to reach out if you have any questions along the way!
Sources: livekit/sip_test.go | SIP outbound trunk | LiveKit Docs | Making outbound calls | LiveKit Docs | Create and configure a Plivo SIP trunk | LiveKit Docsalert-continent-21953
10/12/2025, 11:18 AMtall-airline-16756
10/12/2025, 11:18 AM+19085550100). Sometimes, a small formatting issue can cause calls to fail.
• SIP Trunk Configuration: Make sure the address field in your trunk setup matches the correct SIP URI from your provider, like sip.telnyx.com.
• Authentication: Verify that your auth_username and auth_password are exactly as required by your SIP provider. Incorrect credentials can block calls.
• Regional Compliance: Some areas require calls to stay within national borders. You might need to set the destination_country parameter in your trunk configuration to meet these local rules.
• Provider-Specific Limits: It’s a good idea to check with your SIP provider about any rate limits or restrictions on the numbers you’re trying to call.
• API Call: When making calls, please ensure you’re using the CreateSIPParticipant API correctly, including specifying the right trunk ID and destination number.
Also, take a look at the SIP response codes in your logs (like 403, 404, or 503) — they can give us some useful clues. If you’d like, I’m here to help you troubleshoot any specific errors or settings. Just let me know!
Sources: Using Wavix to accept and make calls | LiveKit Docs | SIP troubleshooting guide | LiveKit Docs | Create and configure a Plivo SIP trunk | LiveKit Docs | livekit/sip_test.go | Making outbound calls | LiveKit Docs