adventurous-activity-14752
08/01/2025, 1:42 AMtall-airline-16756
08/01/2025, 1:42 AMtall-airline-16756
08/01/2025, 1:43 AMdispatchRuleCallee configuration. Here’s how to configure it:
1. Create a dispatch rule with the following configuration:
{
"rule": {
"dispatchRuleCallee": {
"roomPrefix": "",
"randomize": false
}
},
"name": "My dispatch rule"
}
• Set roomPrefix to an empty string to avoid adding extra text to the room name.
• Set randomize to false to prevent adding a random suffix.
1. Save this configuration in a file (e.g., dispatch-rule.json).
2. Use the LiveKit CLI to create the dispatch rule:
lk sip dispatch create dispatch-rule.json
1. Alternatively, you can create the dispatch rule programmatically using the LiveKit API:
const dispatchRule = {
rule: {
dispatchRuleCallee: {
roomPrefix: '',
randomize: false
}
},
name: 'My dispatch rule'
};
const response = await lk.sip.createSIPDispatchRule(dispatchRule);
This setup ensures that the room name will exactly match the phone number called. Let me know if you need further assistance!
Sources: SIP dispatch rule | LiveKit Docs | SIP dispatch rule | LiveKit Docsadventurous-activity-14752
08/01/2025, 1:44 AMtall-airline-16756
08/01/2025, 1:45 AM{
"rule": {
"dispatchRuleCallee": {
"roomPrefix": "",
"randomize": true
}
},
"name": "Custom Room Name"
}
• `roomPrefix`: You can leave this empty or add your own prefix (like "call-").
• `randomize`: Set this to true so it tacks on a random suffix to keep things unique.
1. Save this as a file, maybe call it dispatch-rule.json.
2. Then, use the LiveKit CLI to create the dispatch rule by running:
lk sip dispatch create dispatch-rule.json
1. If you prefer, you can also set it up programmatically with the LiveKit API like this:
const dispatchRule = {
rule: {
dispatchRuleCallee: {
roomPrefix: '',
randomize: true
}
},
name: 'Custom Room Name'
};
const response = await lk.sip.createSIPDispatchRule(dispatchRule);
And that’s it! This way, your room names will nicely include the number called, the number called to, and a random suffix to keep them unique. If you hit any bumps or want to chat more about it, just let me know—I’m here to help!
Sources: SIP dispatch rule | LiveKit Docs | livekit/livekit_sip.pb.go | SIP dispatch rule | LiveKit Docsadventurous-activity-14752
08/03/2025, 5:56 AMtall-airline-16756
08/03/2025, 5:56 AMsip.phoneNumber attribute for inbound calls. But when it comes to the callee's phone number, there isn't a direct attribute or method mentioned. If you have a particular situation in mind, just let me know—I’m happy to help you figure it out!adventurous-activity-14752
08/03/2025, 5:57 AMtall-airline-16756
08/03/2025, 6:01 AMadventurous-activity-14752
08/03/2025, 6:06 AM