creamy-tiger-14805
09/01/2025, 10:06 AMtall-airline-16756
09/01/2025, 10:06 AMtall-airline-16756
09/01/2025, 10:07 AMagent_name so explicit dispatch works smoothly.
2. Create a Dispatch: You can use the LiveKit CLI or Python API to create a dispatch. Just specify the agent name and include the phone number in the metadata. For example:
◦ CLI: lk dispatch create --new-room --agent-name outbound-caller --metadata '{"phone_number": "+1234567890"}'
◦ Python API: Use agent_dispatch.create_dispatch() to create a dispatch programmatically.
1. Place the Outbound Call: When the agent joins the room, it will read the phone number from the metadata and use the CreateSIPParticipant API to dial the number.
Just make sure you have an outbound SIP trunk configured and all the necessary environment variables set up. If you want, I’m here to help with any part of this!
Sources: Making calls using SIP | LiveKit Docs | README.md | Agent dispatch | LiveKit Docs | Agents telephony integration | LiveKit Docs