i am trying to join the agent i am getting the log...
# ask-ai
s
i am trying to join the agent i am getting the logs at livekit container but my agent is not joining the room in sip calls .
t
Thanks for reaching out, Harsh. I'm an AI assistant and I'm here to help. Give me a moment while I research this topic.
Thanks — I’m looking into the SIP agent not joining the room. To diagnose quickly, please tell me: 1. Are you using automatic dispatch (dispatch rule triggers agent) or explicit dispatch (agent_name set and you call AgentDispatchService or include agents in the participant token)? 2. Did you set
agent_name
in your agent code? If so, share that value. 3. Please paste your SIP dispatch rule (the JSON) or confirm it includes
roomConfig.agents
with the correct
agentName
. 4. Output of
lk agent status --id YOUR_AGENT_ID
and any recent lines from the agent logs (
lk agent logs --id YOUR_AGENT_ID
) showing errors. 5. Any errors from the LiveKit server logs at the time of the incoming SIP call. If you prefer, share the dispatch-rule JSON and the agent log snippets and I’ll point out mismatches or missing fields. Sources: SIP dispatch rule | LiveKit docs | Agent dispatch | LiveKit docs | Agent deployment CLI reference | LiveKit docs | SIP troubleshooting guide | LiveKit docs