busy-spoon-35253
12/22/2025, 6:27 AM{
"rule": {
"dispatchRuleIndividual": {
"roomPrefix": "call-"
}
},
"hidePhoneNumber": true,
"trunkIds": ["ST_fj4X5vtDuCuw", "ST_7uxDBNReo7fx"],
"name": "Farm Equipment SIP Dispatch"
}tall-airline-16756
12/22/2025, 6:27 AMtall-airline-16756
12/22/2025, 6:28 AMcall-, tied to two trunks, and named "Farm Equipment SIP Dispatch".
What to change
• Remove `hidePhoneNumber`: dispatch rules do not support a hidePhoneNumber property. That field is not valid and will be ignored or cause an error.
• Keep name, trunkIds, and rule.dispatchRuleIndividual.roomPrefix — those are supported.
Corrected example
{
"name": "Farm Equipment SIP Dispatch",
"trunkIds": [
"ST_fj4X5vtDuCuw",
"ST_7uxDBNReo7fx"
],
"rule": {
"dispatchRuleIndividual": {
"roomPrefix": "call-"
}
}
}
If you need to hide or mask caller numbers, that must be handled outside the dispatch rule (for example: at participant creation with the appropriate flag, in your agent logic to avoid exposing PII, or via SIP trunk/provider settings). Would you like guidance on implementing caller-number masking in agent sessions or participant creation?
Sources: sip | livekit/livekit_composite | DeepWiki | examples/bank-ivr | livekit/livekit_composite | DeepWiki | Preserving Caller ID During SIP Transfers in LiveKit Agentsbusy-spoon-35253
12/22/2025, 6:30 AMtall-airline-16756
12/22/2025, 6:30 AMdispatchRuleIndividual.roomPrefix to form room names (e.g., call-abc123). LiveKit does not put full phone numbers into room names by default.
• If a phone number appears in your room_name, that is coming from custom logic in your dispatch/agent code or participant creation flow, not the dispatch-rule schema.
What you can do (options):
• Use a static or random roomPrefix (e.g., "call-" or "session-") so room names never include PII.
• Stop inserting caller number into the room name in your dispatch/agent code — generate a random suffix or use a UUID.
• Anonymize the SIP participant identity when creating participants (do not set it to the phone number).
• If you need to keep the phone number for backend use, store it in participant attributes/metadata but never surface it in room names, UI labels, or logs.
To help you fix this, please tell me:
1. Where your current room name is being set — in the SIP dispatch rule, agent logic, or another service?
2. If agent code sets the room name, share the snippet (or describe the logic) that constructs the room name.
I’ll give the exact change you need to stop including the phone number and produce anonymized room names.
Sources: sip | livekit/livekit_composite | DeepWiki | SIP Lifecycle Management Agent | LiveKit docsbusy-spoon-35253
12/22/2025, 6:32 AMtall-airline-16756
12/22/2025, 6:33 AM