Skip to content

Commit

Permalink
feat: Blocks muting jibri instances.
Browse files Browse the repository at this point in the history
  • Loading branch information
damencho committed Mar 31, 2020
1 parent eda20f6 commit 4b47d13
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/main/java/org/jitsi/jicofo/JitsiMeetConferenceImpl.java
Original file line number Diff line number Diff line change
Expand Up @@ -2331,6 +2331,13 @@ boolean handleMuteRequest(Jid fromJid,
return false;
}


if (doMute && participant.isJibri())
{
logger.warn("Blocking mute request to jibri. ");
return false;
}

logger.info(
"Will " + (doMute ? "mute" : "unmute")
+ " " + toBeMutedJid + " on behalf of " + fromJid);
Expand Down
8 changes: 8 additions & 0 deletions src/main/java/org/jitsi/jicofo/Participant.java
Original file line number Diff line number Diff line change
Expand Up @@ -227,6 +227,14 @@ public boolean isSipGateway()
return supportedFeatures.contains(DiscoveryUtil.FEATURE_JIGASI);
}

/**
* Returns <tt>true</tt> if this participant is a Jibri instance.
*/
public boolean isJibri()
{
return supportedFeatures.contains("http://jitsi.org/protocol/jibri");
}

/**
* Returns <tt>true</tt> if RTP audio is supported by this peer.
*/
Expand Down

0 comments on commit 4b47d13

Please sign in to comment.