From 2e81b70e6c3ce62f04e63964c404a15ba4182a8e Mon Sep 17 00:00:00 2001 From: cregouby Date: Thu, 29 Jan 2015 12:51:40 +0100 Subject: [PATCH] Add QoS marking configuration --- modules/xmpp/xmpp.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/modules/xmpp/xmpp.js b/modules/xmpp/xmpp.js index 7dcb653d3..8e4b3eba1 100644 --- a/modules/xmpp/xmpp.js +++ b/modules/xmpp/xmpp.js @@ -41,6 +41,12 @@ function connect(jid, password, uiCredentials) { connection.jingle.pc_constraints.optional = []; connection.jingle.pc_constraints.optional.push({googIPv6: true}); } + if (config.useDSCP) { + // https://code.google.com/p/webrtc/source/detail?r=7669 + if (!connection.jingle.pc_constraints.optional) + connection.jingle.pc_constraints.optional = []; + connection.jingle.pc_constraints.optional.push({googDSCP: true}); + } if(!password) password = uiCredentials.password;