To address the issue of your LiveKit agent not picking up the phone and the call continuing to ring, here are some steps to verify and troubleshoot:
• Ensure that your agent is properly running and configured. Verify that the LiveKit client and all necessary integrations (e.g., webhook credentials) are correctly set up.
• Check the dispatch rules for inbound calls to confirm they are correctly configured to route calls to the agent.
• Verify that the agent session is properly initialized and ready to handle the incoming call. The session should be active before the call is received to ensure the agent can respond.
• For inbound calls, ensure that the SIP participant subscribes to remote audio tracks, as this transition is necessary for the call status to change from "ringing" to "active."
If these steps do not resolve the issue, additional debugging may be required to identify the root cause. Let me know if you need further assistance or specific guidance on any of these steps.
Sources:
Inbound calls with Twilio Voice | LiveKit Docs |
SIP participant | LiveKit Docs |
agent.py