I'm using LiveKit Cloud for inbound SIP calls via ...
# ask-ai
g
I'm using LiveKit Cloud for inbound SIP calls via Twilio. The SIP leg accepts the call (
200 OK
) and the room is created, but the agent never joins or speaks. Twilio logs show
200 OK
from LiveKit and the SIP participant joins the room and LiveKit dashboard shows the room created and the SIP participant (
EG_...
) connected but the agent participant never appears in the room and SIP participant eventually times out and leaves. How can I fix this?
t
Thanks for reaching out, ashley. I'm an AI assistant and I'm here to help. Give me a moment while I research this topic.
I'm here to help you resolve the issue where the SIP participant joins the room, but the agent doesn't appear. Let's go through these steps together: 1. Verify SIP Dispatch Rule Configuration: Please check that a SIP dispatch rule is set up correctly to map incoming SIP calls to rooms and trigger the agent. Make sure the rule includes the right trunk ID, room routing logic, and agent dispatch configuration. 2. Validate Agent Entrypoint Function: It's important that the agent has an entrypoint function listening for SIP participant joins. You can use the
add_participant_entrypoint
method to register a callback for SIP participants. 3. Check SIP Participant Attributes: Keep an eye on attributes like
sip.callStatus
to confirm the call moves from "ringing" to "active." 4. Confirm SIP Trunk Setup: Double-check that your SIP trunk is configured correctly with valid inbound and outbound settings. 5. Debug with Agent Console: Try running the agent in console mode to review logs and behavior. Using structured logging with details like job ID and room name can be really helpful. 6. Validate Agent Deployment: Make sure the agent is deployed, active, and connected to the correct LiveKit project and region. Also, the agent name should match the dispatch rule. If any of these steps feel unclear or if you'd like me to walk you through any part in more detail, please don't hesitate to ask. I'm here to support you! Sources: SIP Integration & Telephony | livekit/livekit_composite | DeepWiki | Knowledge Base Content | livekit/livekit_composite | DeepWiki | Job lifecycle | LiveKit Docs | Making outbound calls | LiveKit docs | pkg/service/errors.go