# ZR-CSAPI - starting PMI meeting

**URL:** <https://devforum.zoom.us/t/zr-csapi-starting-pmi-meeting/25574>\
**Category:** API and Webhooks\
**Created:** [July 29, 2020, 9:37am UTC](https://devforum.zoom.us/t/zr-csapi-starting-pmi-meeting/25574 "2020-07-29T09:37:19Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![alexander.zarubkin](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/alexander.zarubkin/32/5296_2.png) [@alexander.zarubkin](https://devforum.zoom.us/u/alexander.zarubkin)\
**Post date:** [July 29, 2020, 9:37am UTC](https://devforum.zoom.us/t/zr-csapi-starting-pmi-meeting/25574/1 "2020-07-29T09:37:19Z")

</div>

**Description**  
I’m using ZR-CSAPI for automating Zoom Rooms software. I’d like to [start a PMI meeting](https://marketplace.zoom.us/docs/guides/zoom-rooms/zoom-rooms-cli/zCommands#zcommand-dial-startpmi). However, when I send the command `zcommand dial startpmi duration:0` (for example) I get a response with meeting ID which changes every time.

**Error**  
Here are the responses (partially):

```auto
zcommand dial startpmi duration:0
OK
*r DialStartPmiResult (status=OK):
** end

*s Call Status: CONNECTING_MEETING
** end

*e NeedWaitForHost Wait: off
** end

*s Call Status: IN_MEETING
** end

*e SpotlightStatusNotification user_id: -1
*e SpotlightStatusNotification present: off

*r InfoResult Info real_meeting_id: cwfNgsYhTLOvA3AfxUnG2A==
*r InfoResult Info meeting_id: ***********
*r InfoResult Info participant_id: 145255
*r InfoResult Info my_userid: 16778240
*r InfoResult Info am_i_original_host: on
*r InfoResult Info is_webinar: off
*r InfoResult Info is_view_only: off
*r InfoResult Info meeting_type: NORMAL
*r InfoResult Info meeting_password: 578320
...

```

and

```auto
zcommand dial startpmi duration:0
OK
*r DialStartPmiResult (status=OK):
** end

*s Call Status: CONNECTING_MEETING
** end

*e NeedWaitForHost Wait: off
** end

*s Call Status: IN_MEETING
** end

*e SpotlightStatusNotification user_id: -1
*e SpotlightStatusNotification present: off

*r InfoResult Info real_meeting_id: u0UDVUkOS+ek9kMfEOE+Ow==
*r InfoResult Info meeting_id: ***********
*r InfoResult Info participant_id: 139507
*r InfoResult Info my_userid: 16778240
*r InfoResult Info am_i_original_host: on
*r InfoResult Info is_webinar: off
*r InfoResult Info is_view_only: off
*r InfoResult Info meeting_type: NORMAL
*r InfoResult Info meeting_password: 772643

```

**How To Reproduce (If applicable)**  
Steps to reproduce the behavior:

1. Send a command `zcommand dial startpmi duration:0`
2. Notice meeting ID in the response. It isn’t equal to room PMI number, by the way.
3. Send a command `zcommand call disconnect` to end the meeting
4. Repeat steps 1-3 again. Notice that meeting ID has changed.

Is it a bug or everything’s working as intended?

\*This post has been edited to remove any meeting / webinar IDs

---

<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:** [July 31, 2020, 8:16pm UTC](https://devforum.zoom.us/t/zr-csapi-starting-pmi-meeting/25574/2 "2020-07-31T20:16:56Z")

</div>

Hey @alexander.zarubkin,

This could be intended. Is the PMI the Zoom Rooms PMI or a users PMI?

Thanks,  
Tommy

---

<div class="post-metadata">

**Author:** ![alexander.zarubkin](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/alexander.zarubkin/32/5296_2.png) [@alexander.zarubkin](https://devforum.zoom.us/u/alexander.zarubkin)\
**Post date:** [July 31, 2020, 8:27pm UTC](https://devforum.zoom.us/t/zr-csapi-starting-pmi-meeting/25574/3 "2020-07-31T20:27:57Z")

</div>

Zoom Rooms PMI, I think.

---

<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:** [August 4, 2020, 6:20am UTC](https://devforum.zoom.us/t/zr-csapi-starting-pmi-meeting/25574/4 "2020-08-04T06:20:53Z")

</div>

Hey @alexander.zarubkin,

Can you try using a number greater than `0`? Also, what meeting number shows up on the scheduling display? Is that number different from the PMI still, or the same?

Thanks,  
Tommy

---

<div class="post-metadata">

**Author:** ![alexander.zarubkin](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/alexander.zarubkin/32/5296_2.png) [@alexander.zarubkin](https://devforum.zoom.us/u/alexander.zarubkin)\
**Post date:** [August 4, 2020, 10:30am UTC](https://devforum.zoom.us/t/zr-csapi-starting-pmi-meeting/25574/5 "2020-08-04T10:30:52Z")

</div>

It’s the same behaviour with `duration:30`: the meeting number always changes. I will check scheduling display later.

---

<div class="post-metadata">

**Author:** ![alexander.zarubkin](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/alexander.zarubkin/32/5296_2.png) [@alexander.zarubkin](https://devforum.zoom.us/u/alexander.zarubkin)\
**Post date:** [August 5, 2020, 2:57pm UTC](https://devforum.zoom.us/t/zr-csapi-starting-pmi-meeting/25574/6 "2020-08-05T14:57:47Z")

</div>

Hi @tommy, I could not start Zoom Rooms controller application on my phone in scheduling display mode. I use Android, I clear the application data, then restart it, log into the system, and it starts in room controller mode. There is no dialog to choose scheduling display mode.

---

<div class="post-metadata">

**Author:** ![alexander.zarubkin](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/alexander.zarubkin/32/5296_2.png) [@alexander.zarubkin](https://devforum.zoom.us/u/alexander.zarubkin)\
**Post date:** [August 5, 2020, 4:01pm UTC](https://devforum.zoom.us/t/zr-csapi-starting-pmi-meeting/25574/7 "2020-08-05T16:01:45Z")

</div>

I think I’ve solved my problem by turning on the option “ **Use Room Meeting ID when starting an instant meeting** ” (in the Zoom Room settings, Schedule meeting section).

Now `zcommand dial startpmi` uses PMI which is specified in the room settings. By the way, `zcommand invite` now uses PMI for the meeting ID too.

---

<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:** [August 6, 2020, 7:02pm UTC](https://devforum.zoom.us/t/zr-csapi-starting-pmi-meeting/25574/8 "2020-08-06T19:02:16Z")

</div>

Happy to hear you got it sorted out! 🙂

Thanks for sharing the solution!

-Tommy

---

<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:** [August 16, 2020, 7:02pm UTC](https://devforum.zoom.us/t/zr-csapi-starting-pmi-meeting/25574/9 "2020-08-16T19:02:17Z")

</div>

Closed on August 16, 2020, 7:02pm UTC

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