|
|
@@ -156,19 +156,6 @@ Moderator.prototype.createConferenceIq = function() {
|
|
156
|
156
|
elem.attrs({ 'session-id': sessionId });
|
|
157
|
157
|
}
|
|
158
|
158
|
|
|
159
|
|
- elem.c(
|
|
160
|
|
- 'property', {
|
|
161
|
|
- name: 'disableRtx',
|
|
162
|
|
- value: Boolean(config.disableRtx)
|
|
163
|
|
- }).up();
|
|
164
|
|
-
|
|
165
|
|
- if (config.audioPacketDelay !== undefined) {
|
|
166
|
|
- elem.c(
|
|
167
|
|
- 'property', {
|
|
168
|
|
- name: 'audioPacketDelay',
|
|
169
|
|
- value: config.audioPacketDelay
|
|
170
|
|
- }).up();
|
|
171
|
|
- }
|
|
172
|
159
|
if (config.startBitrate) {
|
|
173
|
160
|
elem.c(
|
|
174
|
161
|
'property', {
|
|
|
@@ -211,27 +198,9 @@ Moderator.prototype.createConferenceIq = function() {
|
|
211
|
198
|
elem.c(
|
|
212
|
199
|
'property', {
|
|
213
|
200
|
name: 'rtcstatsEnabled',
|
|
214
|
|
- value: rtcstatsEnabled
|
|
215
|
|
- }).up();
|
|
216
|
|
- }
|
|
217
|
|
-
|
|
218
|
|
- const { callStatsID, callStatsSecret, disableThirdPartyRequests, enableCallStats } = this.options.conference;
|
|
219
|
|
- const callstatsDisabled = !callStatsID || !callStatsSecret || !enableCallStats
|
|
220
|
|
-
|
|
221
|
|
- // Even though AppID and AppSecret may be specified, the integration
|
|
222
|
|
- // of callstats.io may be disabled because of globally-disallowed
|
|
223
|
|
- // requests to any third parties.
|
|
224
|
|
- || disableThirdPartyRequests === true;
|
|
225
|
|
-
|
|
226
|
|
- // since the default is true across all the server-side components, only signal if false.
|
|
227
|
|
- if (callstatsDisabled) {
|
|
228
|
|
- elem.c(
|
|
229
|
|
- 'property', {
|
|
230
|
|
- name: 'callstatsEnabled',
|
|
231
|
|
- value: !callstatsDisabled
|
|
|
201
|
+ value: false
|
|
232
|
202
|
}).up();
|
|
233
|
203
|
}
|
|
234
|
|
- elem.up();
|
|
235
|
204
|
|
|
236
|
205
|
return elem;
|
|
237
|
206
|
};
|