many-postman-68000
10/21/2025, 1:51 PMtall-airline-16756
10/21/2025, 1:51 PMtall-airline-16756
10/21/2025, 1:53 PMmany-postman-68000
10/21/2025, 2:01 PMmany-postman-68000
10/21/2025, 2:02 PMtall-airline-16756
10/21/2025, 2:03 PMsip:${sipHost};transport=tcp and correctly set as an origination URL in your Twilio trunk. Also, make sure your phone number is linked to the trunk and that the SIP credentials are set up properly.
• Check LiveKit Inbound Trunk Configuration: It’s important that your LiveKit inbound trunk has the right phone number, username, and password matching your Twilio setup. Also, verify that a dispatch rule is in place to route incoming calls to the correct rooms.
• Validate SIP URI Format: Confirm that the LiveKit SIP URI is properly formatted and accessible.
• Review Inbound Method: If you’re using Twilio Programmable Voice instead of Elastic SIP Trunking, please ensure you’ve enabled "Inbound calls with Twilio programmable voice" by setting up TwiML Bins and directing your phone number to the right webhook.
• Re-run Setup Scripts: If you can, try running the setup scripts again (npm run setup:twilio and npm run setup:livekit) to make sure everything is configured correctly.
Could you let me know if you’re using Elastic SIP Trunking or Twilio Programmable Voice for inbound calls? Also, have you followed the setup scripts or configured things manually? This will really help me guide you more precisely.
Sources: SIP troubleshooting guide | LiveKit Docs | README.md | Inbound calls with Twilio Voice | LiveKit Docsmany-postman-68000
10/21/2025, 2:04 PMmany-postman-68000
10/21/2025, 2:05 PMtall-airline-16756
10/21/2025, 2:07 PM<?xml version="1.0" encoding="UTF-8"?>
<Response>
<Dial>
<Sip username="your_username" password="your_password">
sip:your-livekit-sip-uri
</Sip>
</Dial>
</Response>
• Assign the TwiML Bin to All Phone Numbers: For each of your phone numbers, visit the Manage Numbers page, select the number, and set the "A call comes in" option to the TwiML Bin you just created.
• Configure a Single LiveKit Inbound Trunk: Next, set up a LiveKit inbound trunk that accepts calls from any phone number by using the wildcard character (*). Here's an example:
const trunk = await sipClient.createSipInboundTrunk(
'inbound-trunk',
['*'], // Accept calls to any phone number
{
auth_username: 'your_username',
auth_password: 'your_password',
},
);
This way, all your phone numbers will be smoothly routed through the same trunk. If you have any questions or need a hand with any of these steps, please don’t hesitate to ask—I’m here to help!many-postman-68000
10/21/2025, 2:23 PMtall-airline-16756
10/21/2025, 2:26 PM<?xml version="1.0" encoding="UTF-8"?>
<Response>
<Dial>
<Sip username="your_username" password="your_password">
sip:+1234567890@your-livekit-sip-uri
</Sip>
</Dial>
</Response>
• Configure LiveKit Inbound Trunk: Make sure your LiveKit inbound trunk is properly set up to accept calls with the phone number in the SIP URI. Here's an example:
const trunk = await sipClient.createSipInboundTrunk(
'inbound-trunk',
['+1234567890'], // Specify the phone number
{
auth_username: 'your_username',
auth_password: 'your_password',
},
);
• Test the Configuration: Try making a test call to confirm that the phone number is sent as part of the SIP URI and that it routes correctly to LiveKit.
This setup will help ensure the phone number is included in the SIP URI for routing or identification. If you have any questions or need more help, please don’t hesitate to reach out—I’m here for you!
Sources: Inbound calls with Twilio Voice | LiveKit Docs | README.md | SIP APIs | LiveKit Docs | rpc/sip.pb.go | Preserving Caller ID During SIP Transfers in LiveKit Agents