When I test outbound calls, if I say some message,...
# ask-ai
n
When I test outbound calls, if I say some message, I hear two concurrent different agent generating response. Why is this happening and how can i fix it
t
Thanks for reaching out, Hwuiwon. I'm an AI assistant and I'm here to help. Give me a moment while I research this topic.
Sometimes, hearing two agents at the same time during outbound call testing happens because of certain configuration quirks. No worries though—here are a few friendly steps to help you sort it out: 1. Check RoomInputOptions Configuration: Make sure your
RoomInputOptions
doesn’t include
AGENT
in
participant_types
if you’re not aiming for agent-to-agent chats. If it’s just one agent, sticking with the default setup usually does the trick. 2. Review Logs: Keep an eye out for warnings like "expected to receive only one message generation from the realtime API." That’s a hint that multiple response streams might be getting created. 3. Audio Processing: Try setting up
RoomIO
to handle audio from just one participant to prevent those overlapping voices. 4. SIP Configuration: If SIP is part of your setup, double-check that there’s only one outbound trunk and that your dispatch rules are sending calls to a single spot. Could you share what your current
RoomInputOptions
setup looks like? Also, if you spot any related warnings in your logs, that info would be super helpful to figure out what’s going on.