Skip to main content
Configure automatic session termination when a user is alone in a call. Idle timeout helps manage resources by ending sessions that have no active participants.

How Idle Timeout Works

When a user is the only participant in a call session, the idle timeout countdown begins. If no other participant joins before the timeout expires, the session automatically ends and the onSessionTimedOut callback is triggered. The timer also restarts when other participants leave and only one user remains in the call. This is useful for:
  • Preventing abandoned call sessions from running indefinitely
  • Managing server resources efficiently
  • Providing a better user experience when the other party doesn’t join

Configure Idle Timeout

Set the idle timeout period using setIdleTimeoutPeriod() in SessionSettingsBuilder. The value is in seconds.

Handle Session Timeout

Listen for the onSessionTimedOut callback using SessionStatusListener to handle when the session ends due to idle timeout:

Disable Idle Timeout

To disable idle timeout and allow sessions to run indefinitely, set a value of 0:
Disabling idle timeout may result in sessions running indefinitely if participants don’t join or leave properly. Use with caution.