jolly-eve-3916
08/01/2025, 8:43 PMtall-airline-16756
08/01/2025, 8:43 PMtall-airline-16756
08/01/2025, 8:44 PMawait ctx.wait_for_participant() to wait for a participant connection.
• Timeout Constraints: The default timeout for participant connections is 30 seconds, extendable to 80 seconds for SIP participants if WaitUntilAnswered is enabled. Ensure your logic fits within these constraints.
• Loading User-Specific Context: Use participant attributes or job metadata to pass and retrieve user-specific data. For example, store metadata in ctx.job.metadata and load it before starting the session.
This approach ensures personalized conversation history without disrupting LiveKit's flow. Let me know if you need further clarification or examples!
Sources: Handling RAG Delays in Voice Agents | LiveKit Docs | pkg/service/sip.go | Making calls using SIP | LiveKit Docs