nice-fish-21757
02/23/2025, 10:27 AMawait lk_api.sip.create_sip_dispatch_rule(
create=api.CreateSIPDispatchRuleRequest(
trunk_ids=[trunk_id],
name=rule_name,
rule=api.SIPDispatchRule(
dispatch_rule_individual=api.SIPDispatchRuleIndividual(
room_prefix=room_prefix,
)
),
room_config=api.RoomConfiguration(
agents=[api.RoomAgentDispatch(
agent_name=agent_name,
)]
)
)
)
gray-monkey-83525
02/23/2025, 10:28 AMdispatchRuleIndividual
is used to route each caller into an individual room with the agent. Ensure that the trunk_id
and agent_name
are correctly configured and match the settings on your LiveKit server.
Additionally, verify that your LiveKit server version supports the dispatch_rule_individual
feature, as older versions might not have this functionality. You might also want to check if the agent_name
is correctly set in the WorkerOptions
and that the agent is properly registered to receive job requests.
Would you like more detailed troubleshooting steps or information on setting up the dispatch rule?
Sources:
- LiveKit documentation š 0 button š 0 button š” Hint: Mention @runllm in the thread for followups.