Inconsistent user_id in ListParticipantsResult


#1

I’m using beta 15 on a Mac with the json output. When someone joins a call, the ListParticipantsResult shows one value for the user_id. However, for subsequent update events it reports a different user_id. Finally, when the user leaves the call, the original user_id is reported.

I’m thinking this is a bug since there’s no other way to uniquely track participants.

I can provide the json objects if that is helpful.

Thanks,
Steve


#2

For the participant ID, the lower 10 bits are “don’t care” bits, and tend to contain random garbage that changes often. When you do any type of comparison or identification of the participant ID, I recommend shifting the participant ID value 10 bits to the right, before doing the comparison.


#3

Thank you! I’ll try that out now.


#4

That was it. Thanks!