enough-match-43171
12/09/2025, 9:01 PMtall-airline-16756
12/09/2025, 9:01 PMtall-airline-16756
12/09/2025, 9:01 PMlocation (city/country-like info) and region (the data-center/region the participant connected to). You can fetch this after the session via the Analytics API session details endpoint, or access participant location/region during an agent session via participant metadata in the SDKs.
Would you like the exact Analytics API endpoint and a sample response JSON?
Sources: Analytics API | LiveKit docs | SIP participant | LiveKit docsenough-match-43171
12/09/2025, 9:04 PMtall-airline-16756
12/09/2025, 9:04 PMlocalParticipant.setAttributes({...})).
c. Read attributes from the Python side via the participant object.
• IP-based geolocation (server-side inference)
a. Capture the client IP in your join/token endpoint (e.g., request.remote_addr or X-Forwarded-For).
b. Query an IP geolocation service (MaxMind, IPinfo, etc.).
c. Store/send that info as participant metadata/attributes when creating the token or when the participant joins.
• SIP-specific attributes (only if using SIP)
Use SIP fields (phoneNumber, callSid, etc.) plus telecom lookup services to infer location, then attach to participant attributes.
If you’d like, I can:
• Show a short code snippet for setting attributes from the browser and reading them in Python, or
• Show an example token-generation flow that embeds inferred IP geolocation into participant metadata. Which would help you most? Sources: Analytics API | LiveKit docs | Tool definition and use | LiveKit docs | Managing participants | LiveKit docs | SIP participant | LiveKit docs