# PutInWaitingRoom / ExpelUser do not work properly from the host perspective

**URL:** <https://devforum.zoom.us/t/putinwaitingroom-expeluser-do-not-work-properly-from-the-host-perspective/48905>\
**Category:** Windows\
**Created:** [April 26, 2021, 5:42pm UTC](https://devforum.zoom.us/t/putinwaitingroom-expeluser-do-not-work-properly-from-the-host-perspective/48905 "2021-04-26T17:42:25Z")\
**Posts on this page:** 18\
**Page:** 1

<div class="post-metadata">

**Author:** ![aliaksei.luferau](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/aliaksei.luferau/32/14709_2.png) [@aliaksei.luferau](https://devforum.zoom.us/u/aliaksei.luferau)\
**Post date:** [April 26, 2021, 5:42pm UTC](https://devforum.zoom.us/t/putinwaitingroom-expeluser-do-not-work-properly-from-the-host-perspective/48905/1 "2021-04-26T17:42:25Z")

</div>

**Description**  
App use CustomizedUI / C# wrapper and works as a host  
The issue I am facing is shown in the following:

All initialization succeeds. When a new user connects, I get an event  
**OnWatingRoomUserJoin (uint userId)**  
After that, I can successfully execute  
**AdmitToMeeting (uint userId)**  
Then I receive an event  
**OnWatingRoomUserLeft (uint userId)**  
And further  
**OnUserJoin (List lstUserID)**

1. After that, if the program trying to execute  
**PutInWaitingRoom (uint userId)**  
On the user’s side, everything is fine (user app returns to the waiting room state). However, on the host side, I am not receiving any events such  
**OnWatingRoomUserJoin (uint userId)** and/or **OnUserLeft (List lstUserID)** but VideoElement video stream stopped.

2. Or If the program trying to execute **ExpelUser (uint userId)** on the host side, I receive an event  
**OnWatingRoomUserLeft (uint userId)**  
which is very strange.

**Which Windows Client SDK version?**  
Windows Zoom SDK v.5.5.1 (12509.0330); 5.4.54802.0124; 5.4.54524.1229

**Device (please complete the following information):**

- Device: desktop pc
- OS: Windows 10 Enterprise 1809

Logs: [Zoom SDK Logs](https://www.dropbox.com/s/0wnxnkdyvfg5fyb/logs.zip?dl=0)

---

<div class="post-metadata">

**Author:** ![Michael\_Condon](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/michael_condon/32/13543_2.png) [@Michael\_Condon](https://devforum.zoom.us/u/Michael_Condon)\
**Post date:** [April 27, 2021, 7:07pm UTC](https://devforum.zoom.us/t/putinwaitingroom-expeluser-do-not-work-properly-from-the-host-perspective/48905/2 "2021-04-27T19:07:52Z")

</div>

Hey @aliaksei.luferau,

Thanks for using the dev forum!

> [@aliaksei.luferau](#):
>
> on the host side, I am not receiving any events such  
> **OnWatingRoomUserJoin (uint userId)** and/or **OnUserLeft (List lstUserID)** but VideoElement video stream stopped.

Is this only in regards to the user that was put in the waiting room? Or do these callbacks stop entirely for all users on the host’s side?

Thanks!  
Michael

---

<div class="post-metadata">

**Author:** ![aliaksei.luferau](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/aliaksei.luferau/32/14709_2.png) [@aliaksei.luferau](https://devforum.zoom.us/u/aliaksei.luferau)\
**Post date:** [April 28, 2021, 10:43am UTC](https://devforum.zoom.us/t/putinwaitingroom-expeluser-do-not-work-properly-from-the-host-perspective/48905/3 "2021-04-28T10:43:19Z")

</div>

Michael, thanks for your attention.

Host still receives events from other users.  
I will describe what I observe as a sequence of events and methods:

**Scenery (1)**

userA trying to join  
EVENT **OnWatingRoomUserJoin (userAId\_1)**  
RUN\_METHOD **AdmitToMeeting (userAId\_1)**  
EVENT **OnWatingRoomUserLeft (userAId\_1)**  
EVENT **OnUserJoin (userAId\_2)**  
RUN\_METHOD **PutInWaitingRoom (userAId\_2)**  
no any userA related events; userA VideoElement video stream stopped

userB trying to join  
EVENT **OnWatingRoomUserJoin (userBId\_1)**  
RUN\_METHOD **AdmitToMeeting (userBId\_1)**  
EVENT **OnWatingRoomUserLeft (userBId\_1)**  
EVENT **OnUserJoin (userBId\_2)**

**Scenery (2)**

userA trying to join  
EVENT **OnWatingRoomUserJoin (userAId\_1)**  
RUN\_METHOD **AdmitToMeeting (userAId\_1)**  
EVENT **OnWatingRoomUserLeft (userAId\_1)**  
EVENT **OnUserJoin (userAId\_2)**

userB trying to join  
EVENT **OnWatingRoomUserJoin (userBId\_1)**

RUN\_METHOD **List GetWaitingRoomLst()** received for some reason **List { userAId\_2, userBId\_1}**

RUN\_METHOD **AdmitToMeeting (userBId\_1)**  
EVENT **OnWatingRoomUserLeft (userBId\_1)**  
EVENT **OnUserJoin (userBId\_2)**

**Scenery (3)**

userA trying to join  
EVENT **OnWatingRoomUserJoin (userAId\_1)**  
RUN\_METHOD **AdmitToMeeting (userAId\_1)**  
EVENT **OnWatingRoomUserLeft (userAId\_1)**  
EVENT **OnUserJoin (userAId\_2)**  
RUN\_METHOD **ExpelUser (userAId\_2)**  
EVENT **OnWatingRoomUserLeft (userAId\_2)**  
userA VideoElement video stream stopped

**Scenery (4)**

userA trying to join  
EVENT **OnWatingRoomUserJoin (userAId\_1)**  
RUN\_METHOD **AdmitToMeeting (userAId\_1)**  
EVENT **OnWatingRoomUserLeft (userAId\_1)**  
EVENT **OnUserJoin (userAId\_2)**  
userA leaves from meeting by yourself  
EVENT **OnWatingRoomUserLeft (userAId\_2)**  
userA VideoElement video stream stopped

---

<div class="post-metadata">

**Author:** ![Michael\_Condon](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/michael_condon/32/13543_2.png) [@Michael\_Condon](https://devforum.zoom.us/u/Michael_Condon)\
**Post date:** [April 29, 2021, 6:34pm UTC](https://devforum.zoom.us/t/putinwaitingroom-expeluser-do-not-work-properly-from-the-host-perspective/48905/4 "2021-04-29T18:34:30Z")

</div>

Hey @aliaksei.luferau,

Can you run the C++ Demo application and let me know if you are seeing the same behavior there?

Thanks!  
Michael

---

<div class="post-metadata">

**Author:** ![aliaksei.luferau](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/aliaksei.luferau/32/14709_2.png) [@aliaksei.luferau](https://devforum.zoom.us/u/aliaksei.luferau)\
**Post date:** [May 5, 2021, 9:52am UTC](https://devforum.zoom.us/t/putinwaitingroom-expeluser-do-not-work-properly-from-the-host-perspective/48905/5 "2021-05-05T09:52:44Z")

</div>

Michael,  
This issue probably is not really SDK related. I am 100% sure that your C++ Demo application example works. Before I have also developed an application that uses the same version of the SDK and everything works well. however, in my new project, I ran into the described problem. I do not know what information is stored in the log file, can you see if the SDK is in some wrong state?  
Thank you

---

<div class="post-metadata">

**Author:** ![Michael\_Condon](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/michael_condon/32/13543_2.png) [@Michael\_Condon](https://devforum.zoom.us/u/Michael_Condon)\
**Post date:** [May 5, 2021, 9:56pm UTC](https://devforum.zoom.us/t/putinwaitingroom-expeluser-do-not-work-properly-from-the-host-perspective/48905/6 "2021-05-05T21:56:22Z")

</div>

Hey @aliaksei.luferau,

I will submit the log file to the engineers to see if they can find the issue there, however they do not provide much support for C# projects. Will keep you posted.

Thanks!  
Michael

---

<div class="post-metadata">

**Author:** ![Alex.Peters01](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/alex.peters01/32/18669_2.png) [@Alex.Peters01](https://devforum.zoom.us/u/Alex.Peters01)\
**Post date:** [May 12, 2021, 8:40am UTC](https://devforum.zoom.us/t/putinwaitingroom-expeluser-do-not-work-properly-from-the-host-perspective/48905/7 "2021-05-12T08:40:52Z")

</div>

I am experiencing the exactly the same problem. I am not using multiple threads, but I do useTasks in my code. Having said that, all of them are executed under the same Thread: according to debug, all the requests are executed under Thread #1 (the same thread where Zoom SDK was initialized.

At first I suspected that the issue had to do with using different threads, but according to logs, I am using the same thread. Then I suspected that it may be something to do with racing; however, again, looking at the log output, all the requests and events seem to be in order.

The only difference I see between the new version and old version is the usage of Tasks… Can someone confirm whether or not Tasks break Zoom SDK?

---

<div class="post-metadata">

**Author:** ![jon.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/jon.zoom/32/13495_2.png) [@jon.zoom](https://devforum.zoom.us/u/jon.zoom)\
**Post date:** [May 12, 2021, 4:44pm UTC](https://devforum.zoom.us/t/putinwaitingroom-expeluser-do-not-work-properly-from-the-host-perspective/48905/8 "2021-05-12T16:44:10Z")

</div>

Hi @Alex.Peters01, thanks for using our SDK.

Can you please confirm the following information?

- Whether you are using the C# wrapper or C++ SDK
- What version of the SDK you are using

Thanks!

---

<div class="post-metadata">

**Author:** ![Alex.Peters01](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/alex.peters01/32/18669_2.png) [@Alex.Peters01](https://devforum.zoom.us/u/Alex.Peters01)\
**Post date:** [May 13, 2021, 12:40am UTC](https://devforum.zoom.us/t/putinwaitingroom-expeluser-do-not-work-properly-from-the-host-perspective/48905/9 "2021-05-13T00:40:23Z")

</div>

I am using C# wrapper and version 5.5.1 (12509.0330) . What I find very puzzling is that AdmitToRoom works perfectly and I get all the events. The moment I send the participant into the waiting room, the video elements are removed from the host’s screen, all the signalling on the participant’s side works as expected and participant is moved into the waiting room, yet I do not get any events regarding the participant leaving on the host’s side.

I tried different things to try to debug it, including:

- programmatically pushing the participant into the waiting room 10 seconds after joining
- adding Thread.Sleep(5000) after putInWaitingRoom
- adding a second participant after moving the first one into the waiting room (the second user was able to join and be moved into the waiting room, but there would be no events on the host side indicating that the participant left.

I logged ThreadID and it is all the same… So, we know that we are all operating within the same thread as where SDK was initialized…

If I did not know better, I would think that Zoom just forgets to do the callback… I do not think it is related but I recall a post from a long time ago where there would be a racing condition if an object is destroyed prior to receiving some sort of event from SDK…

---

<div class="post-metadata">

**Author:** ![jon.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/jon.zoom/32/13495_2.png) [@jon.zoom](https://devforum.zoom.us/u/jon.zoom)\
**Post date:** [May 13, 2021, 6:52pm UTC](https://devforum.zoom.us/t/putinwaitingroom-expeluser-do-not-work-properly-from-the-host-perspective/48905/10 "2021-05-13T18:52:28Z")

</div>

Hi @Alex.Peters01,

Thanks for the additional information. Can you please provide the SDK logs?

Thanks!

---

<div class="post-metadata">

**Author:** ![aliaksei.luferau](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/aliaksei.luferau/32/14709_2.png) [@aliaksei.luferau](https://devforum.zoom.us/u/aliaksei.luferau)\
**Post date:** [May 14, 2021, 7:33am UTC](https://devforum.zoom.us/t/putinwaitingroom-expeluser-do-not-work-properly-from-the-host-perspective/48905/11 "2021-05-14T07:33:46Z")

</div>

[Logs from starting post](https://www.dropbox.com/s/0wnxnkdyvfg5fyb/logs.zip?dl=0)

---

<div class="post-metadata">

**Author:** ![jon.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/jon.zoom/32/13495_2.png) [@jon.zoom](https://devforum.zoom.us/u/jon.zoom)\
**Post date:** [May 14, 2021, 5:13pm UTC](https://devforum.zoom.us/t/putinwaitingroom-expeluser-do-not-work-properly-from-the-host-perspective/48905/12 "2021-05-14T17:13:42Z")

</div>

Hi @aliaksei.luferau,

Thank you, but @Michael_Condon has already added the logs from your post to the internal ticket created for this issue. Usually getting logs from multiple users’ instances of an issue makes it a bit easier to isolate the cause of an issue. 🙂

Thanks!

---

<div class="post-metadata">

**Author:** ![SmartSoftware](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/smartsoftware/32/18811_2.png) [@SmartSoftware](https://devforum.zoom.us/u/SmartSoftware)\
**Post date:** [May 24, 2021, 2:08pm UTC](https://devforum.zoom.us/t/putinwaitingroom-expeluser-do-not-work-properly-from-the-host-perspective/48905/13 "2021-05-24T14:08:14Z")

</div>

Hello everyone,

In continuation of this topic, after executing the AdmitToMeeting method, the list that we get from the IMeetingWaitingRoomControllerDotNetWrap.GetWaitingRoomLst method does not change (it continues to display the user who was added to the meeting only with a different id). Is this how it should be?

SDK: 5.5.1 (12511.0422)

---

<div class="post-metadata">

**Author:** ![Michael\_Condon](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/michael_condon/32/13543_2.png) [@Michael\_Condon](https://devforum.zoom.us/u/Michael_Condon)\
**Post date:** [May 24, 2021, 6:55pm UTC](https://devforum.zoom.us/t/putinwaitingroom-expeluser-do-not-work-properly-from-the-host-perspective/48905/14 "2021-05-24T18:55:15Z")

</div>

Hey @SmartSoftware,

I do not believe this is intended behavior and may be an issue with the wrapper. Can you see if the same issue occurs in the C++ SDK?

Thanks!  
Michael

---

<div class="post-metadata">

**Author:** ![Michael\_Condon](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/michael_condon/32/13543_2.png) [@Michael\_Condon](https://devforum.zoom.us/u/Michael_Condon)\
**Post date:** [May 24, 2021, 6:56pm UTC](https://devforum.zoom.us/t/putinwaitingroom-expeluser-do-not-work-properly-from-the-host-perspective/48905/15 "2021-05-24T18:56:43Z")

</div>

Hey @aliaksei.luferau,

The logs did not indicate a clear issue here. This is likely a wrapper issue. Can you verify the SDK callbacks and interfaces are being called on the main thread?

Thanks!  
Michael

---

<div class="post-metadata">

**Author:** ![aliaksei.luferau](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/aliaksei.luferau/32/14709_2.png) [@aliaksei.luferau](https://devforum.zoom.us/u/aliaksei.luferau)\
**Post date:** [June 8, 2021, 1:54pm UTC](https://devforum.zoom.us/t/putinwaitingroom-expeluser-do-not-work-properly-from-the-host-perspective/48905/16 "2021-06-08T13:54:23Z")

</div>

Ended up we discovering one interesting thing.

Usual user connecting process goes like this:

- user got into the waiting room with **USERID\_WAITINGROOM**
- host calls AdmitToMeeting( **USERID\_WAITINGROOM** )
- user leave waiting room with **USERID\_WAITINGROOM**
- user got into the meeting with **USERID\_MEETING**

If on this stage host try to call method

```auto
UserInfo IMeetingWaitingRoomController.GetWaitingRoomUserInfoByID(USERID_MEETING)

```

Host will receive UserInfo object that is **not NULL** and contains actual user data. However, after this call, the Zoom SDK (or wrapper?) breaks down as described at the beginning of the discussion.

Of course in this place there must be a call method (and the replacement solved the described issue)

```auto
UserInfo IMeetingParticipantsController.GetUserByUserID(USERID_MEETING)

```

But probably such a call method

```auto
GetWaitingRoomUserInfoByID(USERID_THAT_NOT_IN_WAITING_ROOM)

```

should return NULL.

---

<div class="post-metadata">

**Author:** ![Michael\_Condon](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/michael_condon/32/13543_2.png) [@Michael\_Condon](https://devforum.zoom.us/u/Michael_Condon)\
**Post date:** [June 8, 2021, 8:35pm UTC](https://devforum.zoom.us/t/putinwaitingroom-expeluser-do-not-work-properly-from-the-host-perspective/48905/17 "2021-06-08T20:35:39Z")

</div>

Hey @aliaksei.luferau,

Thank you for providing this 🙂

Michael

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/6/1/614bdd549b610bbaa46ff934617683a02bdaa03c.png) [@system](https://devforum.zoom.us/u/system)\
**Post date:** [July 9, 2021, 6:36am UTC](https://devforum.zoom.us/t/putinwaitingroom-expeluser-do-not-work-properly-from-the-host-perspective/48905/18 "2021-07-09T06:36:16Z")

</div>

Closed on July 9, 2021, 6:36am UTC

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
