# Force waiting room for participants

**URL:** <https://devforum.zoom.us/t/force-waiting-room-for-participants/36897>\
**Category:** Web\
**Created:** [November 25, 2020, 12:04pm UTC](https://devforum.zoom.us/t/force-waiting-room-for-participants/36897 "2020-11-25T12:04:44Z")\
**Posts on this page:** 18\
**Page:** 1

<div class="post-metadata">

**Author:** ![tab.lambros](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/tab.lambros/32/19303_2.png) [@tab.lambros](https://devforum.zoom.us/u/tab.lambros)\
**Post date:** [November 25, 2020, 12:04pm UTC](https://devforum.zoom.us/t/force-waiting-room-for-participants/36897/1 "2020-11-25T12:04:44Z")

</div>

Hello.  
I create a new meeting with the zoom API setting waiting\_room: true. Afterwards, when a participant joins the meeting with web sdk 1.8.1 he is automatically approved. How can I force someone to join the waiting room?  
Moreover is there any way to make sure that a participant can never become host?

I am currently using a free account to test some features.

---

<div class="post-metadata">

**Author:** ![PantherDeveloper](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/pantherdeveloper/32/19077_2.png) [@PantherDeveloper](https://devforum.zoom.us/u/PantherDeveloper)\
**Post date:** [November 25, 2020, 5:41pm UTC](https://devforum.zoom.us/t/force-waiting-room-for-participants/36897/2 "2020-11-25T17:41:22Z")

</div>

@tab.lambros

Thanks for using the Zoom developer forum!

There is 1 possible way that you can do this. But it may work different for different devices. Can you tell me which device you are using, and the version please?  
@PantherDeveloper

---

<div class="post-metadata">

**Author:** ![tab.lambros](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/tab.lambros/32/19303_2.png) [@tab.lambros](https://devforum.zoom.us/u/tab.lambros)\
**Post date:** [November 25, 2020, 9:01pm UTC](https://devforum.zoom.us/t/force-waiting-room-for-participants/36897/3 "2020-11-25T21:01:58Z")

</div>

I dont understand your question. I’m building a web application which will be used both by desktop and mobile devices.

---

<div class="post-metadata">

**Author:** ![tommy](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/tommy/32/72769_2.png) [@tommy](https://devforum.zoom.us/u/tommy)\
**Post date:** [November 30, 2020, 8:56pm UTC](https://devforum.zoom.us/t/force-waiting-room-for-participants/36897/4 "2020-11-30T20:56:03Z")

</div>

Hey @tab.lambros,

> [@tab.lambros](#):
>
> I create a new meeting with the zoom API setting waiting\_room: true.

Can you please share the [response body JSON after you called the Create Meeting API](https://marketplace.zoom.us/docs/api-reference/zoom-api/meetings/meetingcreate)? I am guessing your waiting room settings are being overridden by your account settings.

Thanks,  
Tommy

---

<div class="post-metadata">

**Author:** ![PantherDeveloper](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/pantherdeveloper/32/19077_2.png) [@PantherDeveloper](https://devforum.zoom.us/u/PantherDeveloper)\
**Post date:** [November 30, 2020, 10:05pm UTC](https://devforum.zoom.us/t/force-waiting-room-for-participants/36897/5 "2020-11-30T22:05:45Z")

</div>

@tommy Thanks for helping me with this question.

Gabe  
@PantherDeveloper

---

<div class="post-metadata">

**Author:** ![tab.lambros](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/tab.lambros/32/19303_2.png) [@tab.lambros](https://devforum.zoom.us/u/tab.lambros)\
**Post date:** [December 1, 2020, 7:36am UTC](https://devforum.zoom.us/t/force-waiting-room-for-participants/36897/6 "2020-12-01T07:36:49Z")

</div>

Here it is. I removed host\_id, email, and the urls. I assumed the same but waiting room is enabled in my security settings

array(19) {  
[“uuid”]=\>  
string(24) “”  
[“id”]=\>  
int()  
[“topic”]=\>  
string(12) “test meeting”  
[“type”]=\>  
int(2)  
[“status”]=\>  
string(7) “waiting”  
[“start\_time”]=\>  
string(20) “2020-12-01T07:33:29Z”  
[“duration”]=\>  
int(30)  
[“timezone”]=\>  
string(13) “Europe/Athens”  
[“created\_at”]=\>  
string(20) “2020-12-01T07:33:29Z”  
[“password”]=\>  
string(4) “test”  
[“h323\_password”]=\>  
string(6) “”  
[“pstn\_password”]=\>  
string(6) “”  
[“encrypted\_password”]=\>  
string(32) “”  
[“settings”]=\>  
array(26) {  
[“host\_video”]=\>  
bool(true)  
[“participant\_video”]=\>  
bool(true)  
[“cn\_meeting”]=\>  
bool(false)  
[“in\_meeting”]=\>  
bool(false)  
[“join\_before\_host”]=\>  
bool(true)  
[“mute\_upon\_entry”]=\>  
bool(false)  
[“watermark”]=\>  
bool(false)  
[“use\_pmi”]=\>  
bool(false)  
[“approval\_type”]=\>  
int(2)  
[“audio”]=\>  
string(4) “voip”  
[“auto\_recording”]=\>  
string(4) “none”  
[“enforce\_login”]=\>  
bool(false)  
[“enforce\_login\_domains”]=\>  
string(0) “”  
[“alternative\_hosts”]=\>  
string(0) “”  
[“close\_registration”]=\>  
bool(false)  
[“show\_share\_button”]=\>  
bool(true)  
[“allow\_multiple\_devices”]=\>  
bool(true)  
[“registrants\_confirmation\_email”]=\>  
bool(true)  
[“waiting\_room”]=\>  
bool(true)  
[“request\_permission\_to\_unmute\_participants”]=\>  
bool(false)  
[“contact\_name”]=\>  
string(35) “Λάμπρος Ταμπούρλος”  
[“contact\_email”]=\>  
string(21) “[tab.lambros@gmail.com](mailto:tab.lambros@gmail.com)”  
[“registrants\_email\_notification”]=\>  
bool(true)  
[“meeting\_authentication”]=\>  
bool(false)  
[“encryption\_type”]=\>  
string(19) “enhanced\_encryption”  
[“approved\_or\_denied\_countries\_or\_regions”]=\>  
array(1) {  
[“enable”]=\>  
bool(false)  
}  
}  
[“code”]=\>  
int(201)  
}

---

<div class="post-metadata">

**Author:** ![tommy](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/tommy/32/72769_2.png) [@tommy](https://devforum.zoom.us/u/tommy)\
**Post date:** [December 2, 2020, 11:13pm UTC](https://devforum.zoom.us/t/force-waiting-room-for-participants/36897/7 "2020-12-02T23:13:21Z")

</div>

Hey @tab.lambros,

> [@tab.lambros](#):
>
> [“join\_before\_host”]=\>  
> bool(true)

Can you try setting the `join_before_host` value to false? My thought is since you have `join_before_host` set to true, the participants are able to skip the waiting room.

Can you also try upgrading to version 1.8.3?

Let me know if that sorts it out! 🙂

Thanks,  
Tommy

---

<div class="post-metadata">

**Author:** ![tab.lambros](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/tab.lambros/32/19303_2.png) [@tab.lambros](https://devforum.zoom.us/u/tab.lambros)\
**Post date:** [December 3, 2020, 7:27am UTC](https://devforum.zoom.us/t/force-waiting-room-for-participants/36897/8 "2020-12-03T07:27:42Z")

</div>

Hey. I did what you suggested but nothing changed. I also noticed that joining as participant always fails with  
axiosJsonpCallback1({“status”:false,“errorCode”:3000,“errorMessage”:“The current sdk version doesn’t support register meeting/webinar, please upgrade to the latest version.”})

Many people can join with a host signature ( no waiting room ) but none with a participant one.

I am getting a bit confused. …

---

<div class="post-metadata">

**Author:** ![tommy](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/tommy/32/72769_2.png) [@tommy](https://devforum.zoom.us/u/tommy)\
**Post date:** [December 4, 2020, 8:47pm UTC](https://devforum.zoom.us/t/force-waiting-room-for-participants/36897/9 "2020-12-04T20:47:34Z")

</div>

Hey @tab.lambros,

Gotcha, it sounds like you are using Meeting Registration, but Meeting Registration is not supported on the Web SDK yet. Only for webinars:

> **[Join Webinar - Webinars - Build an App - Web - Client SDKs - Zoom Software...](https://marketplace.zoom.us/docs/sdk/native-sdks/web/build/webinars/join#joining-webinars-with-registration-required)**
>
> Join a Webinar
> 
> Webinars are launched and joined in the Web SDK using the ZoomMtg.init() method to launch the SDK, then the ZoomMtg.join() to join the u...

What is your use case here, or goal? I am happy to help you figure this out! 🙂

Thanks,  
Tommy

---

<div class="post-metadata">

**Author:** ![tab.lambros](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/tab.lambros/32/19303_2.png) [@tab.lambros](https://devforum.zoom.us/u/tab.lambros)\
**Post date:** [December 4, 2020, 9:59pm UTC](https://devforum.zoom.us/t/force-waiting-room-for-participants/36897/10 "2020-12-04T21:59:16Z")

</div>

What I need is to have an ongoing meeting where participants will join the waiting room and the host will accept them one by one.  
My join code is the following:

ZoomMtg.preLoadWasm();  
ZoomMtg.prepareJssdk();

ZoomMtg.init({  
leaveUrl: meetConfig.leaveUrl,  
isSupportAV: true,  
success: function() {  
ZoomMtg.join({  
signature: `{$signature}`,  
apiKey: meetConfig.apiKey,  
meetingNumber: meetConfig.meetingNumber,  
userName: meetConfig.userName,  
passWord: meetConfig.passWord,  
success: function(res) {  
ZoomMtg.record({  
record: true  
});

```
      ZoomMtg.showRecordFunction({
        show: true
      });
    },
     error: function (res) {
      console.log(res);
    },
  })
},
error: function (res) {
  console.log(res);
},

```

})

The signature is produced by the following method

function generateSignature ( $meeting\_number, $role)  
{  
$time = time() \* 1000 - 30000;//time in milliseconds (or close enough)

```
  $data = base64_encode($this->apiKey . $meeting_number . $time . $role);

  $hash = hash_hmac('sha256', $data, $this->apiSecret, true);

  $_sig = $this->apiKey . "." . $meeting_number . "." . $time . "." . $role . "." . base64_encode($hash);

  return rtrim(strtr(base64_encode($_sig), '+/', '-_'), '=');
}

```

join fails when passing role=0 to generateSignature()

---

<div class="post-metadata">

**Author:** ![tommy](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/tommy/32/72769_2.png) [@tommy](https://devforum.zoom.us/u/tommy)\
**Post date:** [December 7, 2020, 9:08pm UTC](https://devforum.zoom.us/t/force-waiting-room-for-participants/36897/11 "2020-12-07T21:08:40Z")

</div>

Hey @tab.lambros,

In that case, you need to have the [Waiting Room](https://support.zoom.us/hc/en-us/articles/115000332726-Waiting-Room) enabled for the meeting.

> [@tab.lambros](#):
>
> join fails when passing role=0 to generateSignature()

What error message do you get in the browser console? Can you share your [Web SDK signature](https://marketplace.zoom.us/docs/sdk/native-sdks/web/build/signature) for a test meeting with the issue so I can help debug further?

Thanks,  
Tommy

---

<div class="post-metadata">

**Author:** ![tab.lambros](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/tab.lambros/32/19303_2.png) [@tab.lambros](https://devforum.zoom.us/u/tab.lambros)\
**Post date:** [December 8, 2020, 7:20am UTC](https://devforum.zoom.us/t/force-waiting-room-for-participants/36897/12 "2020-12-08T07:20:58Z")

</div>

According to the create meeting response, waiting room is enabled for this meeting.

> array(20) {  
> [“uuid”]=\>  
> string(24) “”  
> [“id”]=\>  
> int(96286459112)  
> [“host\_id”]=\>  
> string(22) “”  
> [“topic”]=\>  
> string(12) “test meeting”  
> [“type”]=\>  
> int(2)  
> [“status”]=\>  
> string(7) “waiting”  
> [“start\_time”]=\>  
> string(20) “2020-12-08T07:16:26Z”  
> [“duration”]=\>  
> int(30)  
> [“timezone”]=\>  
> string(13) “Europe/Athens”  
> [“created\_at”]=\>  
> string(20) “2020-12-08T07:16:26Z”  
> [“password”]=\>  
> string(4) “test”  
> [“h323\_password”]=\>  
> string(6) “”  
> [“pstn\_password”]=\>  
> string(6) “”  
> [“encrypted\_password”]=\>  
> string(32) “”  
> [“settings”]=\>  
> array(28) {  
> [“host\_video”]=\>  
> bool(true)  
> [“participant\_video”]=\>  
> bool(true)  
> [“cn\_meeting”]=\>  
> bool(false)  
> [“in\_meeting”]=\>  
> bool(false)  
> [“join\_before\_host”]=\>  
> bool(false)  
> [“mute\_upon\_entry”]=\>  
> bool(false)  
> [“watermark”]=\>  
> bool(false)  
> [“use\_pmi”]=\>  
> bool(false)  
> [“approval\_type”]=\>  
> int(1)  
> [“audio”]=\>  
> string(4) “both”  
> [“auto\_recording”]=\>  
> string(4) “none”  
> [“enforce\_login”]=\>  
> bool(false)  
> [“enforce\_login\_domains”]=\>  
> string(0) “”  
> [“alternative\_hosts”]=\>  
> string(0) “”  
> [“close\_registration”]=\>  
> bool(false)  
> [“show\_share\_button”]=\>  
> bool(true)  
> [“allow\_multiple\_devices”]=\>  
> bool(true)  
> [“registrants\_confirmation\_email”]=\>  
> bool(true)  
> [“waiting\_room”]=\>  
> bool(true)  
> [“request\_permission\_to\_unmute\_participants”]=\>  
> bool(false)  
> [“global\_dial\_in\_countries”]=\>  
> array(1) {  
> [0]=\>  
> string(2) “US”  
> }  
> [“global\_dial\_in\_numbers”]=\>  
> array(6) {  
> [0]=\>  
> array(4) {  
> [“country\_name”]=\>  
> string(2) “US”  
> [“number”]=\>  
> string(13) “+1 6465588656”  
> [“type”]=\>  
> string(4) “toll”  
> [“country”]=\>  
> string(2) “US”  
> }  
> [1]=\>  
> array(4) {  
> [“country\_name”]=\>  
> string(2) “US”  
> [“number”]=\>  
> string(13) “+1 6699009128”  
> [“type”]=\>  
> string(4) “toll”  
> [“country”]=\>  
> string(2) “US”  
> }  
> [2]=\>  
> array(4) {  
> [“country\_name”]=\>  
> string(2) “US”  
> [“number”]=\>  
> string(13) “+1 2532158782”  
> [“type”]=\>  
> string(4) “toll”  
> [“country”]=\>  
> string(2) “US”  
> }  
> [3]=\>  
> array(4) {  
> [“country\_name”]=\>  
> string(2) “US”  
> [“number”]=\>  
> string(13) “+1 3017158592”  
> [“type”]=\>  
> string(4) “toll”  
> [“country”]=\>  
> string(2) “US”  
> }  
> [4]=\>  
> array(4) {  
> [“country\_name”]=\>  
> string(2) “US”  
> [“number”]=\>  
> string(13) “+1 3126266799”  
> [“type”]=\>  
> string(4) “toll”  
> [“country”]=\>  
> string(2) “US”  
> }  
> [5]=\>  
> array(4) {  
> [“country\_name”]=\>  
> string(2) “US”  
> [“number”]=\>  
> string(13) “+1 3462487799”  
> [“type”]=\>  
> string(4) “toll”  
> [“country”]=\>  
> string(2) “US”  
> }  
> }  
> [“registrants\_email\_notification”]=\>  
> bool(true)  
> [“meeting\_authentication”]=\>  
> bool(false)  
> [“encryption\_type”]=\>  
> string(19) “enhanced\_encryption”  
> [“approved\_or\_denied\_countries\_or\_regions”]=\>  
> array(1) {  
> [“enable”]=\>  
> bool(false)  
> }  
> }  
> [“code”]=\>  
> int(201)  
> }

Trying to join with signature

using the code I posted earlier I get

> 1. errorCode: 1
> 2. errorMessage: “Fail to join the meeting.”
> 3. method: “join”
> 4. result: “The current sdk version doesn’t support register meeting/webinar, please upgrade to the latest version.”
> 5. status: false

---

<div class="post-metadata">

**Author:** ![tommy](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/tommy/32/72769_2.png) [@tommy](https://devforum.zoom.us/u/tommy)\
**Post date:** [December 10, 2020, 1:52am UTC](https://devforum.zoom.us/t/force-waiting-room-for-participants/36897/13 "2020-12-10T01:52:44Z")

</div>

Hey @tab.lambros,

> [@tab.lambros](#):
>
> [“approval\_type”]=\>  
> int(1)

`approval_type` needs to be set to `2`. Try that and it should work!

Thanks,  
Tommy

---

<div class="post-metadata">

**Author:** ![tab.lambros](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/tab.lambros/32/19303_2.png) [@tab.lambros](https://devforum.zoom.us/u/tab.lambros)\
**Post date:** [December 10, 2020, 10:53am UTC](https://devforum.zoom.us/t/force-waiting-room-for-participants/36897/14 "2020-12-10T10:53:54Z")

</div>

> [@tab.lambros](#):
>
> approval\_type

It worked! than you so much for your help!

---

<div class="post-metadata">

**Author:** ![tommy](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/tommy/32/72769_2.png) [@tommy](https://devforum.zoom.us/u/tommy)\
**Post date:** [December 10, 2020, 4:42pm UTC](https://devforum.zoom.us/t/force-waiting-room-for-participants/36897/15 "2020-12-10T16:42:54Z")

</div>

Hey @tab.lambros,

You are welcome! 🙂

Let us know if we can help with anything else!

-Tommy

---

<div class="post-metadata">

**Author:** ![tab.lambros](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/tab.lambros/32/19303_2.png) [@tab.lambros](https://devforum.zoom.us/u/tab.lambros)\
**Post date:** [December 15, 2020, 10:55am UTC](https://devforum.zoom.us/t/force-waiting-room-for-participants/36897/16 "2020-12-15T10:55:53Z")

</div>

Hello again guys  
I was hoping you could help me with another issues. If the host accidentally closes the window or clicks leave meeting by accident, is there any way he can join again and become host?

---

<div class="post-metadata">

**Author:** ![MaxM](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/maxm/32/42303_2.png) [@MaxM](https://devforum.zoom.us/u/MaxM)\
**Post date:** [December 16, 2020, 11:22pm UTC](https://devforum.zoom.us/t/force-waiting-room-for-participants/36897/17 "2020-12-16T23:22:53Z")

</div>

Hey @tab.lambros,

Thank you for reaching out to the Zoom Developer Forum. With version 1.8.1 and later, if the host gets disconnected, you can use the same host signature and pass role 1 in order to rejoin the meeting as the Co-Host. If you pass role 0, you will rejoin as a participant.

That being said, the current functionality if the host gets disconnected, one of the participants will be assigned the Host. Once the original Host rejoins, they will be the Co-Host.

I hope that helps! Let me know if you have any questions.

Thanks,  
Max

---

<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:** [January 16, 2021, 9:22am UTC](https://devforum.zoom.us/t/force-waiting-room-for-participants/36897/18 "2021-01-16T09:22:53Z")

</div>

Closed on January 16, 2021, 9:22am UTC

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