does livekit calls have a session duration, or can...
# ask-ai
n
does livekit calls have a session duration, or can I make it run forever? What is the default and how is it set?
t
Thanks for reaching out, rohit. I'm an AI assistant and I'm here to help. Give me a moment while I research this topic.
Thanks for reaching out! I’m happy to help clarify how LiveKit handles session durations. By default, LiveKit doesn’t set a universal time limit for standard WebRTC participant calls, so your sessions can keep going indefinitely, which is pretty great! • For some features, like media egress, there are specific time limits to keep in mind: ◦ File output (such as MP4): 3 hours ◦ HLS/RTMP streaming: 12 hours If you’re aiming for sessions that run without time limits, here are a couple of tips: • Stick with standard WebRTC connections and avoid setting any session duration limits. • Double-check that no
max_session_duration
parameters are configured in your agents or integrations. Please don’t hesitate to reach out if you’d like a hand with setting this up or if you have any other questions—I’m here to help! Sources: Quotas and limits | LiveKit Docs | livekit-agents/livekit/agents/voice/agent_session.py