better-horse-7195
08/09/2025, 1:14 AMtall-airline-16756
08/09/2025, 1:14 AMtall-airline-16756
08/09/2025, 1:14 AMawait session.close()
method isn’t the way to end a call in LiveKit. Instead, you’ll want to use `await session.aclose()`—that’s the asynchronous method designed to close a session properly. This is the best way to wrap up your call.
If you have any questions or want some examples, don’t hesitate to ask—I’m here to help!
Sources: livekit-agents/livekit/agents/voice/agent_activity.py | Agents telephony integration | LiveKit Docsbetter-horse-7195
08/09/2025, 1:15 AMtall-airline-16756
08/09/2025, 1:16 AMsession.aclose()
will close the call in LiveKit by ending the session and freeing up all the resources tied to it. It’s the right way to wrap up a call through code.
If you want me to explain more or share some examples, just give me a shout!
Sources: livekit-plugins/livekit-plugins-google/livekit/plugins/google/beta/realtime... | Agents Core Architecture | livekit/livekit_composite | DeepWiki | basics/exit_message.py