Skype for Business Web SDK - 重新加入对话不起作用

Skype for Business Web SDK - rejoining a conversation is not working

问题场景如下:

  1. 我们通过 SDK 创建一个 Skype 对话,并添加 3 或 4 个参与者,使其成为一个带有对话 URI 的 Skype 会议
  2. 我们将对话 URI 保存在我们的数据库中,以便我们可以在断开连接时重新加入
  3. 第二天,当我们尝试重新连接到该对话 URI 时,出现错误:

    Error: The person or meeting doesn't exist. at Error (native) at String.Exception (https://latest-swx.cdn.skype.com/jLync/master_0.4.212/sdk.js:3801:31) at Object.EInvitationFailed (https://latest-swx.cdn.skype.com/jLync/master_0.4.212/sdk.js:17564:38) at https://latest-swx.cdn.skype.com/jLync/master_0.4.212/sdk.js:33747:56 at Task.exec2 (https://latest-swx.cdn.skype.com/jLync/master_0.4.212/sdk.js:4509:63) at Task.exec (https://latest-swx.cdn.skype.com/jLync/master_0.4.212/sdk.js:4489:26) at Task._complete (https://latest-swx.cdn.skype.com/jLync/master_0.4.212/sdk.js:4471:30) at Task.resolve (https://latest-swx.cdn.skype.com/jLync/master_0.4.212/sdk.js:4433:33) at handler (https://latest-swx.cdn.skype.com/jLync/master_0.4.212/sdk.js:15297:34) at Event._invoke (https://latest-swx.cdn.skype.com/jLync/master_0.4.212/sdk.js:5133:32)

我们遵循在线文档并使用此处提供的代码示例:https://msdn.microsoft.com/EN-US/library/office/dn962176(v=office.16).aspx

正是这一行引发了错误:

conversation.chatService.start().then(function() {…});

值得注意的是,此行为与此处文档中的内容相矛盾:https://msdn.microsoft.com/en-us/library/office/dn962151(v=office.16).aspx

具体来说,如果找不到现有对话,它将创建一个新对话的部分:

getConversationByUri 查找现有的 multi-party 对话模型或创建新的。

如有任何帮助,我们将不胜感激!

getConversationByUri 尝试查找现有的对话模型,如果找不到,则会创建一个新模型。它不会创建新会议。当您启动聊天服务时,它会尝试加入该会议。 你的情况是你正在将 p2p 升级到临时会议,其到期时间约为 1 天(将很快确认到期时间)。在该 uri 过期后,您不能再使用它来加入会议。 您将需要创建一个新会议(通过使用安排会议 api https://msdn.microsoft.com/en-us/skype/websdk/schedulemeeting)或简单地创建一个新对话并向其中添加相同的参与者。