how to allow every DNIS/DID in livekit inbound sip...
# ask-ai
o
how to allow every DNIS/DID in livekit inbound sip trunk?
t
Thanks for reaching out, Jaivarsan. I'm an AI assistant and I'm here to help. Give me a moment while I research this topic.
You can allow every DNIS/DID by creating the inbound trunk with
numbers
set to an empty array. When
numbers: []
is used, you must also secure the trunk with either
allowed_addresses
(IP or CIDR blocks) or SIP authentication (
auth_username
+
auth_password
). Example JSON (CLI or Dashboard JSON editor):
Copy code
{
  "name": "Allow all DNIS",
  "numbers": [],
  "allowed_addresses": [
    "203.0.113.0/24"
  ]
}
Or with username/password:
Copy code
{
  "name": "Allow all DNIS",
  "numbers": [],
  "auth_username": "myusername",
  "auth_password": "mypassword"
}
Notes: • Use the Dashboard JSON editor or the CLI to apply
numbers: []
. • You still need a dispatch rule to route inbound calls to a room. Would you like the exact CLI command or help drafting the dispatch rule? Sources: SIP inbound trunk | LiveKit docs | SIP APIs | LiveKit docs
o
but the UI says,
Copy code
Either "numbers" or "allowedAddresses" must have at least one valid entry configured.
it doesn't allow numbers: []
t
You're right — the standard UI form enforces that rule. To allow every DNIS/DID you must create the trunk using the JSON editor or CLI and set
numbers: []
plus one of
allowed_addresses
or `auth_username`/`auth_password`. Quick steps: 1. Dashboard JSON editor ◦ Open Telephony Configuration → Create new → Trunk. ◦ Switch to the JSON editor tab. ◦ Paste:
Copy code
{
  "name": "Allow all DNIS",
  "numbers": [],
  "allowed_addresses": [
    "203.0.113.0/24"
  ]
}
• Click Create. 1. Or use the CLI ◦ Save the JSON to
inbound-trunk.json
and run:
Copy code
lk sip inbound create inbound-trunk.json
If you want, tell me whether you'd prefer the CLI or Dashboard steps and I’ll provide the exact JSON tailored to your IPs or credentials.