Hello, I am using LiveKit cloud - I have SIP trunk...
# server-api
d
Hello, I am using LiveKit cloud - I have SIP trunking setup and I am using Python SDK. When the incoming call arrives and the
entrypoint(ctx)
is invoked I perform
await ctx.connect(...)
. When the call completes I noticed that
ctx.room.remote_participants
is sometimes empty and I need to wait before I can see a participant. Questions: • Is this an expected behavior for
remote_participants
not to be up to date immediately after
connect
returns? • What is the recommended method to block the execution until remote participant information shows up in the room?
c
Check this : https://docs.livekit.io/agents/v0/build/session/#customizing-for-participant You can wait for specific time to wait for the participant not infinite time, if the participant joins then continue else you can discard and close the room.