Skip to content

Commit

Permalink
Log if a jibri request is received and no detectors are configured. (#…
Browse files Browse the repository at this point in the history
…1083)

* Log if a jibri request is received and no detectors are configured.
  • Loading branch information
bgrozev authored Apr 21, 2023
1 parent fb9add1 commit 639b043
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
package org.jitsi.jicofo.xmpp

import org.jitsi.jicofo.ConferenceStore
import org.jitsi.jicofo.JicofoServices
import org.jitsi.jicofo.jibri.BaseJibri
import org.jitsi.jicofo.xmpp.IqProcessingResult.AcceptedWithNoResponse
import org.jitsi.jicofo.xmpp.IqProcessingResult.AcceptedWithResponse
Expand Down Expand Up @@ -64,6 +65,11 @@ class JibriIqHandler(

// No conference accepted the request.
logger.warn("Jibri IQ not accepted by any conference: ${request.iq.toXML()}")
if (JicofoServices.jicofoServicesSingleton?.jibriDetector == null &&
JicofoServices.jicofoServicesSingleton?.sipJibriDetector == null
) {
logger.warn("No jibri detectors configured.")
}
return RejectedWithError(request, StanzaError.Condition.item_not_found)
}
}

0 comments on commit 639b043

Please sign in to comment.