Skip to content

Jitsi Meet - Secure, Simple and Scalable Video Conferences that you use as a standalone app or embed in your web application.

Prevents from duplicating existing SSRCs with 'source-add' in remote description.

paweldomas50e67a0658b2
diff --git a/modules/xmpp/JingleSession.js b/modules/xmpp/JingleSession.js
index 5d95c00455..7f68fe2545 100644
--- a/modules/xmpp/JingleSession.js
+++ b/modules/xmpp/JingleSession.js
@@ -844,6 +844,10 @@ JingleSession.prototype.addSource = function (elem, fromJid) {
console.warn("Got add stream request for my own ssrc: "+ssrc);
return;
}
+ if (sdp.containsSSRC(ssrc)) {
+ console.warn("Source-add request for existing SSRC: " + ssrc);
+ return;
+ }
$(this).find('>parameter').each(function () {
lines += 'a=ssrc:' + ssrc + ' ' + $(this).attr('name');
if ($(this).attr('value') && $(this).attr('value').length)