Configure Idle Timeout
Set the idle timeout period when creating call settings:| Parameter | Type | Default | Description |
|---|---|---|---|
idleTimeoutPeriod | number | 180 | Seconds before auto-ending when alone |
How It Works
- When all other participants leave the call, the idle timeout timer starts
- A prompt appears 60 seconds before the timeout, allowing the user to extend the session
- If the user doesn’t respond, the session ends automatically
- If another participant joins, the timer is cancelled
Listen for Timeout Events
Session Timeout Event
Listen for when the session times out:Using OngoingCallListener
Disable Idle Timeout
Set a very high value to effectively disable the timeout:Complete Example
Timeout Behavior
| Scenario | Behavior |
|---|---|
| User is alone | Timer starts counting down |
| Another participant joins | Timer is cancelled |
| User extends session | Timer resets |
| Timer expires | Session ends, onSessionTimedOut fires |
Related Documentation
- Session Settings - Configure call settings
- Events - Handle timeout events
- Join Session - Start a call session