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

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, 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. 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!

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 to then uses it later in the code, and do something similar with the other properties you want to expose that way.

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.

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 and the existing demos as a reference.