Hi, there's something weird going on when I initia...
# agents
n
Hi, there's something weird going on when I initiate the outbound call through lk cli. I've followed the directions in here (https://docs.livekit.io/agents/start/telephony/) exactly, but when I join the room and ask a question, two agents start to reply back which is very weird. I am using the same code. What might be the issue and how can I fix it?
r
Are you running two agents? One with
agent_name
set and one without?
Do you have a session id where this happened. It starts with
RM_
I can try and see what is going on in the logs.
Or better the call id
SCL_
n
Yeah
RM_kbi8eTXiEw3g
. Ah it does look like two agents joined to my session..
Is it possible to not allow the default agent to join the outbound call room when using the lk cli dispatch command?
We have one base agent deployed that will read the metadata from the dispatch and then dynamically generate the agent from the config
r
No, if you have an agent with a name they all need to have a name or you will run into this exact issue.
You could potentially set some metadata on the room that the agent can check and not instantiate the agentSession if it is set.
Or something like that. Best is to use an agent_name for all the agents and explicit dispatch.