little-cat-78276
09/16/2025, 2:24 PMtall-airline-16756
09/16/2025, 2:24 PMtall-airline-16756
09/16/2025, 2:25 PMagent_name set in their WorkerOptions. This step is key because it turns off automatic dispatch and lets us route calls explicitly. 2. Create Dispatch Rules: You’ll want to define SIP dispatch rules that clearly specify which agent should take each incoming call. It’s really important that the agentName in your dispatch rule exactly matches the agent_name in the agent’s setup. 3. Use Appropriate Rule Types: Depending on how you want to route calls, you have some options: - Individual Dispatch: Sends each caller to their own dedicated room. - Direct Dispatch: Routes all callers into a shared room. - Callee Dispatch: Routes calls based on the number being called. 4. Apply Rules: You can use the LiveKit CLI to create these dispatch rules from JSON files. For example: bash lk sip dispatch create dispatch-rule.json If you find calls still aren’t routing quite right, it’s a good idea to double-check that the agent_name and agentName match perfectly. And of course, I’m here to help if you want to go over anything else or need a hand! Sources: Agents telephony integration | LiveKit Docs | SIP troubleshooting guide | LiveKit Docs | SIP dispatch rule | LiveKit Docs