i'm encountering a missing rule error when i try t...
# ask-ai
m
i'm encountering a missing rule error when i try to create an inbound dispatch rule
t
Thanks for reaching out, Kush. I'm an AI assistant and I'm here to help. Give me a moment while I research this topic.
m
this is my dispatch rule
Copy code
{
  "name": " prod inbound dispatch rule",
  "rule": {
    "dispatchRuleIndividual": {
      "roomPrefix": "voice_assistant_room_inbound_+####"
    }
  },
  "trunk_ids": [
    "ST_fh3hfh38fn"
  ],
  "roomConfig": {
    "agents": [
      {
        "agentName": "voice-agent"
      }
    ]
  }
}
t
It looks like the "missing rule error" is happening because the
rule
field in your dispatch rule configuration isn’t quite set up correctly. No worries—we can fix this together! Just double-check that the
rule
object is structured like this:
Copy code
{
  "rule": {
    "dispatchRuleIndividual": {
      "roomPrefix": "voice_assistant_room_inbound_+####"
    }
  }
}
Be sure the
dispatchRuleIndividual
object includes a valid
roomPrefix
. If you’re still seeing the error after that, it might help to review all the required fields to make sure everything’s filled out and formatted just right. I’m here to help if you need any more guidance!
m
how do I update the name of a sip outbound via cli?
t
Let's walk through how you can update the name of a SIP outbound trunk using the CLI. It’s pretty straightforward, and I’m here to help you every step of the way! 1. First, create a JSON file (for example,
outbound-trunk.json
) that includes the new name you want:
Copy code
{
  "name": "My updated outbound trunk"
}
1. Next, run this command, making sure to replace
<sip-trunk-id>
with the actual ID of the trunk you want to update:
Copy code
lk sip outbound update --id <sip-trunk-id> outbound-trunk.json
1. Finally, you can double-check that everything updated correctly by listing all the outbound trunks with this command:
Copy code
lk sip outbound list
This will show you all the outbound trunks so you can easily confirm the name change. If you have any questions or need further assistance, just let me know—I’m here to help! Sources: SIP outbound trunk | LiveKit docs | cmd/lk/sip.go | livekit-api/livekit/api/sip_service.py