浏览代码

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
             sipInviteUrl,
177
             sipInviteUrl,
178
             jwt,
178
             jwt,
179
             conference.options.name,
179
             conference.options.name,
180
+            conference.password,
180
             displayName
181
             displayName
181
         );
182
         );
182
 
183
 

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

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

正在加载...
取消
保存