From 64ab813b55b88319bc69da896b9c608a61387d59 Mon Sep 17 00:00:00 2001 From: Tudor-Ovidiu Avram Date: Mon, 19 Apr 2021 15:10:28 +0300 Subject: [PATCH] feat(sip-invite) add room password for sip invite requests --- react/features/invite/actions.any.js | 1 + react/features/invite/functions.js | 5 ++++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/react/features/invite/actions.any.js b/react/features/invite/actions.any.js index 20b3e3c5b..2bae83ef9 100644 --- a/react/features/invite/actions.any.js +++ b/react/features/invite/actions.any.js @@ -177,6 +177,7 @@ export function invite( sipInviteUrl, jwt, conference.options.name, + conference.password, displayName ); diff --git a/react/features/invite/functions.js b/react/features/invite/functions.js index 2059a5f6b..dbfbf85be 100644 --- a/react/features/invite/functions.js +++ b/react/features/invite/functions.js @@ -812,6 +812,7 @@ export function isSharingEnabled(sharingFeature: string) { * @param {string} sipInviteUrl - The invite service that generates the invitation. * @param {string} jwt - The jwt token. * @param {string} roomName - The name to the conference. + * @param {string} roomPassword - The password of the conference. * @param {string} displayName - The user display name. * @returns {Promise} - The promise created by the request. */ @@ -821,6 +822,7 @@ export function inviteSipEndpoints( // eslint-disable-line max-params sipInviteUrl: string, jwt: string, roomName: string, + roomPassword: String, displayName: string ): Promise { if (inviteItems.length === 0) { @@ -840,7 +842,8 @@ export function inviteSipEndpoints( // eslint-disable-line max-params callUrlInfo: { baseUrl, callName: roomName - } + }, + passcode: roomPassword }, sipClientParams: { displayName,