hi <@U08CKJH7C12>. how can i know if the client is...
# agents
a
hi @refined-appointment-81829. how can i know if the client is a web client or a telephony client?
r
Just look at participant kind
participant.kind == rtc.ParticipantKind.PARTICIPANT_KIND_SIP
https://github.com/livekit/python-sdks/blob/main/livekit-rtc/livekit/rtc/_proto/participant_pb2.pyi#L50
a
ok. how can i know that a call is fully initiated and its not in connecting state? @refined-appointment-81829
r
Depends on your usecase
a
my question was. once i am in the room waiting for the agent. how can i know that agent is also in the room?
actually now i want to log the duration of the call.
exact duration
@refined-appointment-81829
r
list the participants
capture timestamp when call starts and subtract from now when call ends
a
can we please do a small screenshare? the code u sent me works perfect for the telephony but when i try from web. i doesnt. im using the agents playground from your github