Scale videocall on multiple Janus servers

220 views
Skip to first unread message

Hiếu Nguyễn Công

unread,
Feb 26, 2021, 3:10:32 AM2/26/21
to meetecho-janus
Hi guys,

First of all, I have multiple (2) Janus servers and I want to implement videocall using Janus videocall API in distributed fashion. I have read a presentation about Scaling WebRTC applications with Janus from Lorenzo Miniero on https://www.slideshare.net/LorenzoMiniero/scaling-webrtc-applications-with-janus.
And I decided to use Media Resources Brokering with Round Robin algorithm to distribute user's "register" requests equally on 2 Janus servers. But I don't know how user A on the first Janus server can make a call to user B on the second Janus server.
I've heard about forwarding the SDP offer request from a Janus server to another but I can't managed to work out how can it be done.

Does anyone know or have ideas of how to achieve scale videocall on multiple Janus servers?

Thanks in advanced

Lorenzo Miniero

unread,
Feb 26, 2021, 3:38:56 AM2/26/21
to meetecho-janus
They can't: the VideoCall plugin only works if both users are on the same server.

If the purpose is just video calls, you may want to handle registration your own way out of band, and when one person wants to call the other, you have them connect to the same server first and do the registration via VideoCall instead. As an alternative, you can use SIP as the "glue" instead, using a proxy like Kamailio or OpenSIPS to handle registrations, in which case users can indeed connect wherever they want.

L.
Reply all
Reply to author
Forward
Message has been deleted
0 new messages