|
@@ -56,12 +56,22 @@ export function getDialInConferenceID(
|
56
|
56
|
* Sends a GET request for phone numbers used to dial into a conference.
|
57
|
57
|
*
|
58
|
58
|
* @param {string} url - The service that returns confernce dial-in numbers.
|
|
59
|
+ * @param {string} roomName - The conference name to find the associated
|
|
60
|
+ * conference ID.
|
|
61
|
+ * @param {string} mucURL - In which MUC the conference exists.
|
59
|
62
|
* @returns {Promise} - The promise created by the request. The returned numbers
|
60
|
63
|
* may be an array of numbers or an object with countries as keys and arrays of
|
61
|
64
|
* phone number strings.
|
62
|
65
|
*/
|
63
|
|
-export function getDialInNumbers(url: string): Promise<*> {
|
64
|
|
- return doGetJSON(url);
|
|
66
|
+export function getDialInNumbers(
|
|
67
|
+ url: string,
|
|
68
|
+ roomName: string,
|
|
69
|
+ mucURL: string
|
|
70
|
+): Promise<*> {
|
|
71
|
+
|
|
72
|
+ const fullUrl = `${url}?conference=${roomName}@${mucURL}`;
|
|
73
|
+
|
|
74
|
+ return doGetJSON(fullUrl);
|
65
|
75
|
}
|
66
|
76
|
|
67
|
77
|
/**
|
|
@@ -442,7 +452,7 @@ export function getShareInfoText(
|
442
|
452
|
}
|
443
|
453
|
|
444
|
454
|
numbersPromise = Promise.all([
|
445
|
|
- getDialInNumbers(dialInNumbersUrl),
|
|
455
|
+ getDialInNumbers(dialInNumbersUrl, room, mucURL),
|
446
|
456
|
getDialInConferenceID(dialInConfCodeUrl, room, mucURL)
|
447
|
457
|
]).then(([ { defaultCountry, numbers }, {
|
448
|
458
|
conference, id, message } ]) => {
|