AI Integration Quick Reference
AI Integration Quick Reference
- Default idle timeout: 180 seconds (3 minutes) alone in a session
- Warning dialog appears at 120 seconds with stay/leave options
- Auto-terminates after 60 more seconds if no action taken
- Listen for
onSessionTimeoutevent to handle auto-termination - Customize timeout with
setIdleTimeoutPeriod(seconds)in CallSettings (v4.1.0+)
Overview
The Calls SDK automatically handles idle session timeouts to prevent abandoned calls from consuming resources. Default behavior (participant alone in session for 180 seconds):- At 120 seconds: Warning dialog appears with “Stay” or “Leave” options
- At 180 seconds: Call auto-terminates if no action taken
setIdleTimeoutPeriod(seconds) in CallSettingsBuilder.
Session Timeout Flow
TheonSessionTimeout event fires when the call auto-terminates due to inactivity.
Next Steps
Default Calling
Implement ringing call flows with accept/reject functionality
Standalone Calling
Implement calling without the Chat SDK