File Configuration of Janus

347 views
Skip to first unread message

Meirza Arson

unread,
Aug 8, 2018, 3:12:48 AM8/8/18
to meetecho-janus
If i'm added new Audio Bridge Room with API, Janus will modify the janus.plugin.audiobridge.cfg file. 

is there possibility the configuration save to database (redis/mysql/postgresql) ?

Chad Phillips

unread,
Aug 8, 2018, 1:46:46 PM8/8/18
to meetecho-janus
There's a lot you can do with the Audio Bridge API, including managing rooms: https://janus.conf.meetecho.com/docs/audiobridge.html

From there you can manage the room data using any data store you like -- you will of course need to implement all this logic yourself.

Meirza Arson

unread,
Sep 4, 2018, 2:08:07 AM9/4/18
to meetecho-janus
From where should i start to implement the logic?

The point is we want Janus read configuration not from file (janus.plugin.audiobridge.cfg) but from database like redis, mongodb.

Lorenzo Miniero

unread,
Sep 4, 2018, 5:51:28 AM9/4/18
to meetecho-janus
Janus and its plugins have no support for redis/mongodb for configuration files. You'll have to implement that yourself, either directly in the plugin code (replacing the parts where it reads from the config object) or modifying the config.c code to read/write there instead of INI files.

Lorenzo

Chad Phillips

unread,
Sep 4, 2018, 12:57:00 PM9/4/18
to meetecho-janus
I'd recommend wrapping the Janus API, and manage the storage solution and dynamic create/destroy of audio rooms from there. That's what I've done, a little more work, but much cleaner.

jja...@gmail.com

unread,
Sep 4, 2018, 1:36:50 PM9/4/18
to meetecho-janus
As Chad writes, you can implement the logic you require by using almost any language. We use server based Node to manage Janus. We do not use MongoDB or something like that. We use XML-files for a practically similar purpose.

But in any case, you can easily implement the logic by using JavaScript in Node, PHP, Python, C(++), etc. Just store the configuration in the way you want. Then start your management program. The management program reads and manages the configuration files/database. The management program interacts with Janus by using the APIs (we use the HTTP-interface) and changes the configuration in the way we want. Much, much easier than changing the code of Janus. 

Meirza Arson

unread,
Sep 5, 2018, 1:45:11 AM9/5/18
to meetecho-janus
Thank you all, for the suggestion.
Reply all
Reply to author
Forward
0 new messages