a
Hello
t
Thanks for reaching out, Aditya. I'm an AI assistant and I'm here to help. Give me a moment while I research this topic.
I'd love to help you out! Could you please share a bit more about your question or the issue you're experiencing? I'm here to support you every step of the way.
a
Where to configure multiple number to call during outbound calling.. means when i run outbound call, i want agent to call numbers from list.. so wherw to configure those numbers.. currently i am getting call on only my number
t
I'd be happy to help you configure multiple numbers for outbound calling! To do this, you’ll want to define a list of phone numbers within the
SIPOutboundTrunkInfo
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:
Copy code
await client.createSipOutboundTrunk(
  "Trunk Name",
  "sip.example.com",
  ["+1234567890", "+1234567891", "+1234567892"],
  {
    authUsername: "username",
    authPassword: "password"
  }
);
Using the Python SDK:
Copy code
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.go
a
Not the numbers for calling, i want to setup user numbers
t
I'd be happy to help you set up user numbers for outbound calling! You can either configure them directly in the SIP trunk or specify them dynamically during the call. Here’s a simple way to do it: • Assign Specific Numbers: When you create or update an outbound SIP trunk, you can list the user numbers in the
numbers
field. For example:
Copy code
{
  "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:
Copy code
{
  "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 Docs
a
Thats what i am talking.. when i set my sip nimber then i m receiving call.. but not receiving call to any other number if set
t
I'm sorry to hear that outbound calls aren't working for some numbers. Let's work through some common reasons together and find a solution: • Number Format: Double-check that all numbers are in E.164 format (for example,
+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