# Waiting room callback sequence problem

**URL:** <https://devforum.zoom.us/t/waiting-room-callback-sequence-problem/26279>\
**Category:** Meeting SDK\
**Created:** [August 5, 2020, 3:12am UTC](https://devforum.zoom.us/t/waiting-room-callback-sequence-problem/26279 "2020-08-05T03:12:47Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![15604510000](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/15604510000/32/12797_2.png) [@15604510000](https://devforum.zoom.us/u/15604510000)\
**Post date:** [August 5, 2020, 3:12am UTC](https://devforum.zoom.us/t/waiting-room-callback-sequence-problem/26279/1 "2020-08-05T03:12:47Z")

</div>

**Description**  
The first is a custom UI that shows the waiting room interface when you join a meeting with a waiting room. Upon the moderator’s agreement, DestructionZoomMeetingVC will receive a callback that will lead me to believe that the meeting is closed. How can I do agree to join the meeting not to go DestructionZoomMeetingVC but to directly inform me of the status of the waiting room to send changes. I handle the UI myself.  
**Which version?**  
4.6.21666.0428

- Device: IPhoneX
- OS: iOS13.0

---

<div class="post-metadata">

**Author:** ![carson.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/carson.zoom/32/785_2.png) [@carson.zoom](https://devforum.zoom.us/u/carson.zoom)\
**Post date:** [August 7, 2020, 10:29pm UTC](https://devforum.zoom.us/t/waiting-room-callback-sequence-problem/26279/2 "2020-08-07T22:29:27Z")

</div>

Hi @15604510000,

Thanks for the post. It is by design that if a user has been admitted to the main session, the user will first leave the meeting and then rejoin the meeting. If you would like to get the event when the waiting room status has changed, you may use the following callback:

```auto
/*!
 @brief Callback event that waiting room status changes. 
 */
- (void)onWaitingRoomStatusChange:(BOOL)needWaiting;

```

You could refer to the implementation in our demo app:

- [https://github.com/zoom/zoom-sdk-ios/blob/e1f67dd1155e7890da6198f78cc1f88c379e898c/MobileRTCSample/MobileRTCSample/CustomMeeting/CustomMeetingViewController%2BMeetingDelegate.m#L103](https://github.com/zoom/zoom-sdk-ios/blob/e1f67dd1155e7890da6198f78cc1f88c379e898c/MobileRTCSample/MobileRTCSample/CustomMeeting/CustomMeetingViewController%2BMeetingDelegate.m#L103)

Thanks!

---

<div class="post-metadata">

**Author:** ![nitin1](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/nitin1/32/1333_2.png) [@nitin1](https://devforum.zoom.us/u/nitin1)\
**Post date:** [January 27, 2021, 7:53am UTC](https://devforum.zoom.us/t/waiting-room-callback-sequence-problem/26279/3 "2021-01-27T07:53:50Z")

</div>

@carson.zoom It does not make sense to me. Currently we are simply getting a callback in

- ( **void** )onMeetingStateChange:(MobileRTCMeetingState)state  
with state value as Meeting\_Ended, how am i supposed to know that is temporary and the user has not been kicked out. What can I look at for me separate one scenario from the other.

---

<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:** [January 27, 2021, 6:02pm UTC](https://devforum.zoom.us/t/waiting-room-callback-sequence-problem/26279/4 "2021-01-27T18:02:40Z")

</div>

Hey @nitin1,

The MobileRTCMeetingServiceDelegate provides other callbacks that are more useful for waiting room events than onMeetingStateChange.  
The callback onWaitingRoomStatusChange is called with true as a parameter when the user has been put into the waiting room. It is called again with false as a parameter when the user has left the waiting room or has been admitted from the waiting room.

Thanks!  
Michael
