# Host joining gets Waiting for Host meesage

**URL:** <https://devforum.zoom.us/t/host-joining-gets-waiting-for-host-meesage/84638>\
**Category:** Windows\
**Created:** [March 13, 2023, 6:21pm UTC](https://devforum.zoom.us/t/host-joining-gets-waiting-for-host-meesage/84638 "2023-03-13T18:21:03Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![brandon1](https://avatars.discourse-cdn.com/v4/letter/b/ea666f/32.png) [@brandon1](https://devforum.zoom.us/u/brandon1)\
**Post date:** [March 13, 2023, 6:21pm UTC](https://devforum.zoom.us/t/host-joining-gets-waiting-for-host-meesage/84638/1 "2023-03-13T18:21:03Z")

</div>

**Description**  
Intermittently getting an issue with “Waiting For Host” appearing; despite using the Host account to generate a ZAK and providing it to the Start method.

This issue reproduces infrequently in our much larger main application,  
But was consistently occurring when using the demo application.

It appears to me there is an issue getting the proper ZAK token across the C# - C++/CLI boundary.  
I wouldn’t experience the issue in the demo app when hard coding the ZAK into the following location.  
Found in Meeting\_service\_dotnet\_wrap.cpp  
Start(StartParam startParam) (line 204)  
startParam\_c.param.withoutloginStart.userZak (Line 229)

After changing the method signature to use a Handle parameter, the issue stopped occurring as well.  
Changing  
SDKError CMeetingServiceDotNetWrap::Start(StartParam startParam)  
to  
SDKError CMeetingServiceDotNetWrap::Start(StartParam^ startParam)

I found a similar with enabling debug logs and dump generation.  
That the setting chosen would at times be ignored, and no dump or debug logs generated.  
Again I could hard code the values in the wrapper to be true and get the expect outcome.  
But after changing within  
Zoom\_sdk\_dotnet\_wrap.cpp  
Initialize(InitParam initinfo) (line 27)  
to  
Initialize(InitParam^ initinfo)  
I now consistently produce logs and dump generation.

Can these methods and the others that take Value Classes be updated appropriately ?

**Which Windows Meeting SDK version?**  
C# Wrappers  
First noticed in SDK 5.10.1 and subsequent versions up to 5.13.5  
Still noticed in 5.13.5

---

<div class="post-metadata">

**Author:** ![elisa.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/elisa.zoom/32/47836_2.png) [@elisa.zoom](https://devforum.zoom.us/u/elisa.zoom)\
**Post date:** [March 15, 2023, 4:23pm UTC](https://devforum.zoom.us/t/host-joining-gets-waiting-for-host-meesage/84638/4 "2023-03-15T16:23:22Z")

</div>

Hi @brandon1  
thanks for reaching out to the Zoom developer Forum, I am happy to help here.  
Have you been able to test with the newest version available of the SDK?  
For windows c# there is a v.5.13.10 version available

---

<div class="post-metadata">

**Author:** ![brandon1](https://avatars.discourse-cdn.com/v4/letter/b/ea666f/32.png) [@brandon1](https://devforum.zoom.us/u/brandon1)\
**Post date:** [March 15, 2023, 6:35pm UTC](https://devforum.zoom.us/t/host-joining-gets-waiting-for-host-meesage/84638/5 "2023-03-15T18:35:44Z")

</div>

Just tested with it.  
Yes it is still occuring.

---

<div class="post-metadata">

**Author:** ![brandon1](https://avatars.discourse-cdn.com/v4/letter/b/ea666f/32.png) [@brandon1](https://devforum.zoom.us/u/brandon1)\
**Post date:** [March 16, 2023, 8:24pm UTC](https://devforum.zoom.us/t/host-joining-gets-waiting-for-host-meesage/84638/6 "2023-03-16T20:24:04Z")

</div>

I believe I found a part of my issue.

The InitParams were a mistake in my code.

As for the StartParam and the join as Host appearing.  
There was a misunderstanding about the length of time a ZAK token is valid, this document below states it as 2 hours.  
But there doesn’t appear to be any issue if we use a ZAK token within 5 minutes of it being generated.

[https://marketplace.zoom.us/docs/sdk/native-sdks/auth/#start-meetings-and-webinars-with-a-zoom-users-zak-token](https://marketplace.zoom.us/docs/sdk/native-sdks/auth/#start-meetings-and-webinars-with-a-zoom-users-zak-token)

It would seem you can submit whatever gibberish you want as a ZAK token to the SDK, and it will start/join the meeting, but it will only recognize you as the host if the ZAK is still valid.  
Is there some feedback in the SDK to discover if you have submitted a valid ZAK token versus just assuming your not the host?

---

<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:** [April 16, 2023, 6:24am UTC](https://devforum.zoom.us/t/host-joining-gets-waiting-for-host-meesage/84638/7 "2023-04-16T06:24:59Z")

</div>

Closed on April 16, 2023, 6:24am UTC

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