# Setting maximum number of participants. Providing field to visitor to enter pin value

**URL:** <https://janus.discourse.group/t/setting-maximum-number-of-participants-providing-field-to-visitor-to-enter-pin-value/1554>\
**Category:** General\
**Created:** [March 21, 2025, 2:24pm UTC](https://janus.discourse.group/t/setting-maximum-number-of-participants-providing-field-to-visitor-to-enter-pin-value/1554 "2025-03-21T14:24:11Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![antrod](https://avatars.discourse-cdn.com/v4/letter/a/ecc23a/32.png) [@antrod](https://janus.discourse.group/u/antrod)\
**Post date:** [March 21, 2025, 2:24pm UTC](https://janus.discourse.group/t/setting-maximum-number-of-participants-providing-field-to-visitor-to-enter-pin-value/1554/1 "2025-03-21T14:24:11Z")

</div>

In my attempt to increase privacy, I added the following to the file janus.plugin.videoroom.jcfg  
room-9876: {  
description = “Something to think about”  
is\_private = true  
notify\_joining = true  
secret = “to do or not to cook”  
publishers = 3  
}  
but there are some issues that I don’t know how to solve. I am able to pass the string ?room=9876 to the server, following the example in [Janus WebRTC Server (multistream): Video Room Demo](https://janus.conf.meetecho.com/demos/videoroom.html), and the room is created. When I tried to include a pin in my adaptation, with the line pin=2233, the room is created, but I am unable to pass the pin value to the server. Tried ?room=9876&pin=2233, but it doesn’t work. The server asks me for the pin value anyway. I wonder if there is a way that I could provide a field to the visitor, similar to what you obtain in [Janus WebRTC Server: Admin/Monitor](https://janus1.debian.net/demos/admin.html). This would be great. Also, is there a variable that I could include to limit the number of participants, say, to 3 again, in any given room?  
Thanks!

---

<div class="post-metadata">

**Author:** ![lorenzo](https://yyz2.discourse-cdn.com/free1/user_avatar/janus.discourse.group/lorenzo/32/425_2.png) [@lorenzo](https://janus.discourse.group/u/lorenzo)\
**Post date:** [March 24, 2025, 7:14am UTC](https://janus.discourse.group/t/setting-maximum-number-of-participants-providing-field-to-visitor-to-enter-pin-value/1554/2 "2025-03-24T07:14:52Z")

</div>

The demo pages only expose a limited number of settings via query string. If you want to add more, check how the demo initializes the `myroom` variable [here](https://github.com/meetecho/janus-gateway/blob/master/html/demos/mvideoroom.js#L12-L14) to then uses it later in the code, and do something similar with the other properties you want to expose that way.

---

<div class="post-metadata">

**Author:** ![antrod](https://avatars.discourse-cdn.com/v4/letter/a/ecc23a/32.png) [@antrod](https://janus.discourse.group/u/antrod)\
**Post date:** [March 24, 2025, 5:32pm UTC](https://janus.discourse.group/t/setting-maximum-number-of-participants-providing-field-to-visitor-to-enter-pin-value/1554/3 "2025-03-24T17:32:07Z")

</div>

Thanks! Do I create a _js file in “/etc/janus”? I am using freedombox in debian 12. I haven’t found any place in the system where the "_.js" files are located, except in “/usr/share/janus/duktape/”. Could you indicate where they would be?  
Thanks again Lorenzo.

---

<div class="post-metadata">

**Author:** ![lorenzo](https://yyz2.discourse-cdn.com/free1/user_avatar/janus.discourse.group/lorenzo/32/425_2.png) [@lorenzo](https://janus.discourse.group/u/lorenzo)\
**Post date:** [March 25, 2025, 9:12am UTC](https://janus.discourse.group/t/setting-maximum-number-of-participants-providing-field-to-visitor-to-enter-pin-value/1554/4 "2025-03-25T09:12:09Z")

</div>

From what you write there’s a bit of confusion as to how Janus is configured and used. Please do take some time to go through the [documentation](https://janus.conf.meetecho.com/docs/) and the existing demos as a reference.
