瀏覽代碼

feat(sip-invite) add room password for sip invite requests

j8
Tudor-Ovidiu Avram 4 年之前
父節點
當前提交
64ab813b55
共有 2 個檔案被更改,包括 5 行新增1 行删除
  1. 1
    0
      react/features/invite/actions.any.js
  2. 4
    1
      react/features/invite/functions.js

+ 1
- 0
react/features/invite/actions.any.js 查看文件

@@ -177,6 +177,7 @@ export function invite(
177 177
             sipInviteUrl,
178 178
             jwt,
179 179
             conference.options.name,
180
+            conference.password,
180 181
             displayName
181 182
         );
182 183
 

+ 4
- 1
react/features/invite/functions.js 查看文件

@@ -812,6 +812,7 @@ export function isSharingEnabled(sharingFeature: string) {
812 812
  * @param {string} sipInviteUrl - The invite service that generates the invitation.
813 813
  * @param {string} jwt - The jwt token.
814 814
  * @param {string} roomName - The name to the conference.
815
+ * @param {string} roomPassword - The password of the conference.
815 816
  * @param {string} displayName - The user display name.
816 817
  * @returns {Promise} - The promise created by the request.
817 818
  */
@@ -821,6 +822,7 @@ export function inviteSipEndpoints( // eslint-disable-line max-params
821 822
         sipInviteUrl: string,
822 823
         jwt: string,
823 824
         roomName: string,
825
+        roomPassword: String,
824 826
         displayName: string
825 827
 ): Promise<void> {
826 828
     if (inviteItems.length === 0) {
@@ -840,7 +842,8 @@ export function inviteSipEndpoints( // eslint-disable-line max-params
840 842
                    callUrlInfo: {
841 843
                        baseUrl,
842 844
                        callName: roomName
843
-                   }
845
+                   },
846
+                   passcode: roomPassword
844 847
                },
845 848
                sipClientParams: {
846 849
                    displayName,

Loading…
取消
儲存