when deploying an agent with code for inbound call...
# ask-ai
b
when deploying an agent with code for inbound calls; we see that the concurrent agent sessions increase for every call, however the actual call never connects. What could cause something like this?
t
Thanks for reaching out, Jose. I'm an AI assistant and I'm here to help. Give me a moment while I research this topic.
Thanks — I’m looking at the symptom you described (concurrent agent sessions incrementing for each inbound call, but the calls never connect). That usually points to one of a few specific issues. Could you confirm or share the following so I can pinpoint the cause? 1. Are you on LiveKit Cloud or self‑hosted? 2. Paste the relevant parts of your dispatch rule JSON (especially
roomConfig.agents
) and the agent startup code showing the
agent_name
/
rtc_session
usage. 3. Any errors in the agent logs or SIP call logs (dashboard) — e.g., 403/404 or agent exceptions? 4. Do your SIP trunks and phone number appear healthy and linked to the dispatch rule? Quick checklist while you gather those: • Verify the
agentName
in the dispatch rule exactly matches the
agent_name
used in the agent code. • Ensure the dispatch rule’s
roomConfig
actually lists that agent. • Confirm trunk/auth settings for SIP participants and check dashboard SIP logs for failure codes. • Check agent startup logs for exceptions before the agent joins the room. Send the dispatch JSON and the agent code snippet and I’ll analyze them and recommend the exact fix. Sources: SIP troubleshooting guide | LiveKit docs | Agents telephony integration | LiveKit Docs | SIP dispatch rule | LiveKit docs | Using Wavix to accept and make calls | LiveKit docs | Streamline Troubleshooting with Agent Observability