To set up inbound and outbound agents using LiveKit, follow these best practices:
1.
Separate Rooms for Inbound and Outbound Calls: For routing inbound SIP calls through an agent and then forwarding them as outbound calls, it's recommended to use separate rooms for each call type. The agent should connect to both rooms to manage the audio flow, ensuring that the inbound and outbound calls do not bypass the agent and communicate directly. This setup allows the agent to filter or process audio as needed (
source).
2.
Deploy Agents as Separate Services: Deploy agents as separate services rather than integrating them into existing backends. This approach leverages LiveKit's built-in worker/load balancing system, which is designed for the unique lifecycle of agents (
source).
Would you like more detailed steps on setting up these agents?
Sources:
-
https://livekit-users.slack.com/archives/C07FRP66XGE/p1729161508.517449 👍 0 button 👎 0 button 💡
Hint: Mention @runllm in the thread for followups.