Преглед изворни кода

feat: Jibri will ignore redirects for visitors.

Any jibri recording. streaming or sip jibri will join the main room.
master
damencho пре 2 година
родитељ
комит
5d3ce8c2b9
1 измењених фајлова са 2 додато и 1 уклоњено
  1. 2
    1
      modules/xmpp/moderator.js

+ 2
- 1
modules/xmpp/moderator.js Прегледај датотеку

@@ -345,7 +345,8 @@ Moderator.prototype._handleSuccess = function(conferenceRequest, callback) {
345 345
         // Reset the non-error timeout (because we've succeeded here).
346 346
         this.getNextTimeout(true);
347 347
 
348
-        if (conferenceRequest.vnode) {
348
+        // we want to ignore redirects when this is jibri (record/live-stream or a sip jibri)
349
+        if (conferenceRequest.vnode && !this.options.iAmRecorder && !this.options.iAmSipGateway) {
349 350
             logger.warn(`Redirected to: ${conferenceRequest.vnode} with focusJid ${conferenceRequest.focusJid} }`);
350 351
 
351 352
             this.eventEmitter.emit(XMPPEvents.REDIRECTED, conferenceRequest.vnode, conferenceRequest.focusJid);

Loading…
Откажи
Сачувај