future-glass-56154
09/16/2025, 12:10 AMdelete_room api function to do this, following https://docs.livekit.io/agents/worker/job/#disconnecting-everyone:
async def hangup_call():
"""Helper function to delete the room and end the call for all participants"""
ctx = get_job_context()
if ctx is None:
# Not running in a job context
return
await ctx.api.room.delete_room(api.DeleteRoomRequest(room=ctx.room.name))
When this function is called, the agent appears to have deleted the room, but the call is left hanging on the user's end. The call ends after about 30 seconds. What could be causing this?refined-appointment-81829
09/16/2025, 12:31 AMrefined-appointment-81829
09/16/2025, 12:32 AMglamorous-oil-12326
09/16/2025, 1:33 AMrefined-appointment-81829
09/16/2025, 2:23 AMglamorous-oil-12326
09/16/2025, 2:25 AMglamorous-oil-12326
09/16/2025, 1:17 PMrefined-appointment-81829
09/16/2025, 1:23 PMrefined-appointment-81829
09/16/2025, 1:28 PM