error where agent never answers inbound call over ...
# ask-ai
k
error where agent never answers inbound call over sip. I think it may be having trouble joining the room
t
Thanks for reaching out, Ethan. I'm an AI assistant and I'm here to help. Give me a moment while I research this topic.
To troubleshoot the issue where the SIP agent is not answering inbound calls or joining the room, follow these steps: 1. Check Trunk Configuration: Ensure the inbound trunk settings are correct, including allowed addresses, phone numbers, and authentication details. 2. Verify Dispatch Rules: Confirm that dispatch rules are properly configured to route calls to the correct room or agent. Check if a PIN is required and configured correctly. 3. Authentication: Look for authentication issues in the logs, such as missing or invalid credentials. Ensure the Proxy-Authorization header is present if required. 4. Monitor Call Flow: Use logs to track the call progression. Look for messages like "processing invite" or "waiting for track subscription(s)." 5. Network and Media: Verify that the SIP and RTP ports are open and properly configured. Check for codec compatibility and encryption settings. 6. Diagnostic Commands: Use the LiveKit CLI to list trunks, dispatch rules, and room statuses:
Copy code
# List trunks
lk sip inbound list

# List dispatch rules
lk sip dispatch list

# Check room status
lk room list
Let me know if you need further assistance with any of these steps or specific logs to analyze. Sources: README.md | protobufs/livekit_sip.proto | Accepting inbound calls | LiveKit Docs | Agents telephony integration | LiveKit Docs