if i create a room name using the createParticipan...
# ask-ai
r
if i create a room name using the createParticipant cli, then how dos a disaptch rule paply if it also defines a rule name?
t
Thanks for reaching out, Rhythm. I'm an AI assistant and I'm here to help. Give me a moment while I research this topic.
Hey there! Just wanted to clarify that dispatch rules and the
createParticipant
CLI command work separately. Dispatch rules help decide how incoming SIP calls get routed to rooms and set up room naming based on the rule type (like direct, individual caller, or callee). The rule name is just a friendly label and doesn’t actually affect how rooms are created or how participants are assigned. When you use the
createParticipant
CLI to make a room, you’re directly specifying the room name in the command, so it doesn’t automatically apply any dispatch rules. If you’re aiming for a particular setup with dispatch rules and participant creation, just let me know more about what you’re trying to do—I’m here to help! Sources: SIP dispatch rule | LiveKit Docs | SIP dispatch rule | LiveKit Docs | sip/sip_test.go
r
okay. if i am doing an outbound call do i put dispatch to directt, caller or calee
t
When it comes to outbound calls, the best dispatch rule to use is callee. This rule sets up a new room for each callee, organizing everything by the called phone number, which works really well for outbound situations. If you’d rather create a unique room for every single calling session, the individual dispatch rule is the way to go. On the other hand, the direct rule usually fits better with inbound calls or when all calls need to be sent to one fixed room. Sources: autocomplete/fish_autocomplete | livekit-protocol/src/livekit.rs | SIP APIs | LiveKit Docs