|
@@ -129,8 +129,6 @@ Statistics.init = function(options) {
|
129
|
129
|
* callstats.
|
130
|
130
|
* @property {string} aliasName - The alias name to use when initializing callstats.
|
131
|
131
|
* @property {string} userName - The user name to use when initializing callstats.
|
132
|
|
- * @property {string} callStatsConfIDNamespace - A namespace to prepend the
|
133
|
|
- * callstats conference ID with.
|
134
|
132
|
* @property {string} confID - The callstats conference ID to use.
|
135
|
133
|
* @property {string} callStatsID - Callstats credentials - the id.
|
136
|
134
|
* @property {string} callStatsSecret - Callstats credentials - the secret.
|
|
@@ -174,10 +172,6 @@ export default function Statistics(xmpp, options) {
|
174
|
172
|
if (!this.options.confID) {
|
175
|
173
|
logger.warn('"confID" is not defined');
|
176
|
174
|
}
|
177
|
|
-
|
178
|
|
- if (!this.options.callStatsConfIDNamespace) {
|
179
|
|
- logger.warn('"callStatsConfIDNamespace" is not defined');
|
180
|
|
- }
|
181
|
175
|
}
|
182
|
176
|
|
183
|
177
|
/**
|
|
@@ -374,7 +368,7 @@ Statistics.prototype.startCallStats = function(tpc, remoteUserID) {
|
374
|
368
|
= new CallStats(
|
375
|
369
|
tpc,
|
376
|
370
|
{
|
377
|
|
- confID: this._getCallStatsConfID(),
|
|
371
|
+ confID: this.options.confID,
|
378
|
372
|
remoteUserID
|
379
|
373
|
});
|
380
|
374
|
|
|
@@ -399,19 +393,6 @@ Statistics._getAllCallStatsInstances = function() {
|
399
|
393
|
return csInstances;
|
400
|
394
|
};
|
401
|
395
|
|
402
|
|
-/**
|
403
|
|
- * Constructs the CallStats conference ID based on the options currently
|
404
|
|
- * configured in this instance.
|
405
|
|
- * @return {string}
|
406
|
|
- * @private
|
407
|
|
- */
|
408
|
|
-Statistics.prototype._getCallStatsConfID = function() {
|
409
|
|
- // The conference ID is case sensitive!!!
|
410
|
|
- return this.options.callStatsConfIDNamespace
|
411
|
|
- ? `${this.options.callStatsConfIDNamespace}/${this.options.roomName}`
|
412
|
|
- : this.options.roomName;
|
413
|
|
-};
|
414
|
|
-
|
415
|
396
|
/**
|
416
|
397
|
* Removes the callstats.io instances.
|
417
|
398
|
*/
|
|
@@ -707,7 +688,7 @@ Statistics.prototype.sendFeedback = function(overall, comment) {
|
707
|
688
|
comment
|
708
|
689
|
});
|
709
|
690
|
|
710
|
|
- return CallStats.sendFeedback(this._getCallStatsConfID(), overall, comment);
|
|
691
|
+ return CallStats.sendFeedback(this.options.confID, overall, comment);
|
711
|
692
|
};
|
712
|
693
|
|
713
|
694
|
Statistics.LOCAL_JID = require('../../service/statistics/constants').LOCAL_JID;
|