Hi I’ve configured a trunk with my provider to tar...
# ask-ai
a
Hi I’ve configured a trunk with my provider to target the LiveKit SIP URI for my project, calls are getting through but not showing up on the LiveKit end and my agents are not joining the room. What could be the cause for this? My provider said it’s a 404 error
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.
A 404 error for inbound SIP calls to LiveKit indicates that the system could not match the incoming call to a valid trunk or dispatch rule. This prevents the call from being routed to a LiveKit room and stops agents from joining. To resolve this, follow these steps: • Check your SIP trunk configuration: ◦ Verify your SIP provider’s IP addresses are listed in the trunk’s
allowed_addresses
. ◦ Ensure the
numbers
field includes the phone number being called. ◦ If using authentication, confirm
auth_username
and
auth_password
match your provider’s settings. • Review your dispatch rule configuration: ◦ Make sure the dispatch rule’s
trunk_ids
includes your inbound trunk ID. ◦ If the rule specifies
inbound_numbers
, confirm it includes the called number. ◦ Check that the rule type is set correctly (direct, individual, or callee). • Confirm your SIP provider is sending calls to the correct LiveKit SIP URI and that network connectivity is open on the required ports. • If using authentication, ensure your provider responds to 407 Proxy Authentication Required with the correct credentials. A 404 error means the call failed to match either a trunk or a dispatch rule. Focus on verifying these configurations to resolve the issue. Sources: pkg/sip/protocol_test.go | Accepting inbound calls | LiveKit Docs
a
does the dispatch rule, rule type matter?
@alert-easter-19258 does the dispatch rule, rule type matter?
t
Let's chat about dispatch rule types in LiveKit - it's actually pretty important for how your SIP calls get routed! Think of it like a helpful traffic director making sure each caller ends up exactly where they need to be. • Direct: Everyone goes to the same room - simple and straightforward! • Individual: Each caller gets their own private room - personal space for everyone. • Callee: Rooms are assigned based on who's being called - smart and flexible. Here's the deal: picking the right dispatch rule is key. If something doesn't quite match up, your calls might get lost or run into errors. We want to make sure everything flows smoothly, so taking a moment to get this right can save you a lot of headaches down the road. Sources: Accepting inbound calls | LiveKit Docs | SIP APIs | LiveKit Docs | SIP dispatch rule | LiveKit Docs | livekit/livekit_sip.pb.go | SIP overview | LiveKit Docs