dry-rainbow-66344
09/06/2025, 8:40 AMtall-airline-16756
09/06/2025, 8:40 AMtall-airline-16756
09/06/2025, 8:41 AM.pstn.twilio.com. Don’t forget to configure authentication and link your Twilio phone number to this trunk.
2. Register the Outbound Trunk in LiveKit: Next, use the LiveKit CLI to set up your outbound trunk configuration. Keep the SIPTrunkID you get—it’ll come in handy soon!
3. Create Your Voice Agent: Use the LiveKit CLI to create a voice agent template or pick one from the examples (Python or Node.js work great). Make sure to include the SIPTrunkID during setup.
4. Make the Outbound Call: Now, use the CreateSIPParticipant API to place your call. Here’s a quick Python example:
await ctx.api.sip.create_sip_participant( api.CreateSIPParticipantRequest( room_name=ctx.room.name, sip_trunk_id='ST_xxxx', # Your outbound trunk ID sip_call_to='+1234567890', # Number to call participant_identity='caller', wait_until_answered=True ))
If you prefer, you can also start a call right from the CLI by creating a sip-participant.json file and running the right command.
For all the nitty-gritty details, check out the Voice AI telephony guide. I’m here if you need any help along the way!
Sources: Create and configure a Twilio SIP trunk | LiveKit Docs | packages/sip--make-a-call/src/make-call.ts | agent.py | Agents telephony integration | LiveKit Docs | Making outbound calls | LiveKit Docs