Does dispatch rule types matter for inbound trunks...
# ask-ai
a
Does dispatch rule types matter for inbound trunks?
t
Thanks for reaching out, Calaunte. I'm an AI assistant and I'm here to help. Give me a moment while I research this topic.
Yes, dispatch rule types do matter for inbound trunks in LiveKit. Dispatch rules determine how inbound SIP calls are routed to rooms, and they can be associated with specific trunks using the
trunk_ids
field. Here’s how it works: • Trunk Association: Dispatch rules can be linked to specific inbound trunks. If a dispatch rule’s
trunk_ids
field is empty, it acts as a wildcard and matches any trunk. • Matching Priority: The system first tries to match rules associated with the specific trunk. If none match, it falls back to wildcard rules. • Rule Types: The type of dispatch rule (Direct, Individual, Callee) determines how calls from the trunk are handled: ◦ Direct Dispatch: Routes callers into an existing room, optionally requiring a PIN. ◦ Individual Dispatch: Creates a new room for each caller. ◦ Callee Dispatch: Creates rooms based on the called number. This setup allows you to control call handling behavior for different trunks or phone numbers, and to use different dispatch strategies as needed. Sources: livekit/livekit_sip.pb.go | livekit-protocol/src/livekit.rs | SIP overview | LiveKit Docs