# Error joining webinar as panelist on iOS with \`MobileRTCMeetError(rawValue: 21)\`

**URL:** <https://devforum.zoom.us/t/error-joining-webinar-as-panelist-on-ios-with-mobilertcmeeterror-rawvalue-21/77936>\
**Category:** Meeting SDK\
**Created:** [October 26, 2022, 4:32pm UTC](https://devforum.zoom.us/t/error-joining-webinar-as-panelist-on-ios-with-mobilertcmeeterror-rawvalue-21/77936 "2022-10-26T16:32:35Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![jj1](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/jj1/32/41208_2.png) [@jj1](https://devforum.zoom.us/u/jj1)\
**Post date:** [October 26, 2022, 4:32pm UTC](https://devforum.zoom.us/t/error-joining-webinar-as-panelist-on-ios-with-mobilertcmeeterror-rawvalue-21/77936/1 "2022-10-26T16:32:35Z")

</div>

**Description**

We have an iOS app and are using `v5.11.10` of the iOS Meetings SDK. When trying to join a Zoom Webinar as a panelist, the following error is being produced.

```auto
MobileRTCMeetError: MobileRTCMeetError(rawValue: 21) join the webinar from the link

```

…which appears to make reference to this in `MobileRTCConstants.h`

```auto
    ///User needs to register an account if he wants to join the webinar by the link.
    MobileRTCMeetError_RegisterWebinarPanelistRegister = 21,

```

We’re not quite sure what this means and have not been able to find any information on it.

With the iOS Meeting SDK, a participant is only able to join as a panelist if they enter as an attendee then get promoted to a panelist. At this point, the app will exit and a message will show they are rejoining as a panelist. However, if the user leaves the webinar now, they will not be able to rejoin with the same error as above. They need to be removed as a panelist in order to rejoin the webinar.

Here’s the code we’re using to join the Webinar.

```nohighlight
    func joinMeeting(meetingNumber: String, meetingPassword: String) {
        // Obtain the MobileRTCMeetingService from the Zoom SDK, this service can start meetings, join meetings, leave meetings, etc.
        if let meetingService = MobileRTC.shared().getMeetingService() {

            // Set the ViewController to be the MobileRTCMeetingServiceDelegate
            meetingService.delegate = self
            // Create a MobileRTCMeetingJoinParam to provide the MobileRTCMeetingService with the necessary info to join a meeting and avoid name/email prompt when joining webinar or meeting.
            let user = MobileRTCMeetingStartParam4WithoutLoginUser.init()
            user.userName = kSDKUserName
            user.userID = kSDKEmail
            // In this case, we will only need to provide a meeting number and password.
            let joinMeetingParameters = MobileRTCMeetingJoinParam()
            joinMeetingParameters.meetingNumber = meetingNumber
            joinMeetingParameters.password = meetingPassword
            joinMeetingParameters.userName = kSDKUserName
            // Call the joinMeeting function in MobileRTCMeetingService. The Zoom SDK will handle the UI for you, unless told otherwise.
            // If the meeting number and meeting password are valid, the user will be put into the meeting. A waiting room UI will be presented or the meeting UI will be presented.
            meetingService.joinMeeting(with: joinMeetingParameters)
            meetingService.delegate = self
        }
    }

```

Again, it works fine when joining as a webinar attendee, but not as a panelist. We have similar code for our WebSDK implementation and that one works for panelists.

**Error?**

`MobileRTCMeetError: MobileRTCMeetError(rawValue: 21) join the webinar from the link`

**Troubleshooting Routes**

- Tried updating to latest version of Meeting SDK (`v.5.12.2`) and still experiencing the issue.

**How To Reproduce**  
_Steps to reproduce the behavior including:_

1. Set up a webinar
2. Set webinar registration settings to “required” and “automatically approve”
3. Add a panelist with email address
4. Join the webinar using the panelist name, email, webinar # and password.

---

<div class="post-metadata">

**Author:** ![donte.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/donte.zoom/32/24412_2.png) [@donte.zoom](https://devforum.zoom.us/u/donte.zoom)\
**Post date:** [October 28, 2022, 3:26am UTC](https://devforum.zoom.us/t/error-joining-webinar-as-panelist-on-ios-with-mobilertcmeeterror-rawvalue-21/77936/2 "2022-10-28T03:26:10Z")

</div>

Thank you for providing details, @jj1! Based on the error it seems like when rejoining the webinar, the user is not being identified. Can you share if the user rejoins the webinar via the same link or is the tk parameter used ? If not, can you try rejoining the webinar with the registration token and see if the problem persists?

### 1.4 Meeting error codes

 ![image](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/0/9/090d9982ca6759011e9daf5d0d4b4eac1cdb5dc7.png)

[https://marketplace.zoom.us/docs/sdk/native-sdks/iOS/resource/error-codes/](https://marketplace.zoom.us/docs/sdk/native-sdks/iOS/resource/error-codes/)

> [@Join meeting through registration token using native sdk](https://devforum.zoom.us/t/join-meeting-through-registration-token-using-native-sdk/63907):
>
> Description We are generating a registration token(tk) on our backend using the below api [https://api.zoom.us/v2/meetings/$meetingID/registrants](https://api.zoom.us/v2/meetings/%24meetingID/registrants) And now our requirement is we have to use that token “tk” to join the meeting from our android native sdk. We tried different ways but could not succeed, please help us resolve this Which Android Meeting SDK version? v5.9.1.3674

---

<div class="post-metadata">

**Author:** ![jj1](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/jj1/32/41208_2.png) [@jj1](https://devforum.zoom.us/u/jj1)\
**Post date:** [October 28, 2022, 5:14am UTC](https://devforum.zoom.us/t/error-joining-webinar-as-panelist-on-ios-with-mobilertcmeeterror-rawvalue-21/77936/3 "2022-10-28T05:14:45Z")

</div>

@donte.zoom

We aren’t passing the `tk` param anywhere at the moment, but we do have it. I’m assuming we should then be using it for `MobileRTCMeetingJoinParam`? If so, which property should we set the registrant token to `webinarToken`? `join_token`?

 ![image](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/4/d/4d27e9d0775d40dc7f6a912dcc8b56bfc43fcbfc.png)

---

<div class="post-metadata">

**Author:** ![donte.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/donte.zoom/32/24412_2.png) [@donte.zoom](https://devforum.zoom.us/u/donte.zoom)\
**Post date:** [October 28, 2022, 10:36am UTC](https://devforum.zoom.us/t/error-joining-webinar-as-panelist-on-ios-with-mobilertcmeeterror-rawvalue-21/77936/4 "2022-10-28T10:36:21Z")

</div>

@jj1 ,  
The registration token should be passed as the Webinar token.
