简体   繁体   English

Microsoft Teams:使用 Graph API 跟踪/列出通话中的参与者

[英]Microsoft Teams: Tracking / listing the participants in a call using Graph API

I am developing a bot which takes a call from a user then invites other participants.我正在开发一个机器人,它接听用户的电话,然后邀请其他参与者。 It would be advantageous to keep track of the participants in a call, whether they were added by the bot or the user.跟踪通话中的参与者将是有利的,无论他们是由机器人添加的还是由用户添加的。

Once the bot's calling endpoint receives a message that the call has been established, the bot invites participants by making a request to the graph on app/calls/{id}/participants/invite with the participant details in the body.一旦机器人的呼叫端点收到呼叫已建立的消息,机器人就会通过向 app/calls/{id}/participants/invite 上的图表发出请求来邀请参与者,并在正文中包含参与者的详细信息。 This returns a response containing the details of a comms operation.这将返回一个包含通信操作详细信息的响应。 When the invited participant accepts the invitation, the calling endpoint receives a message that the comms operation was deleted and the status is "completed".当受邀参与者接受邀请时,呼叫端点会收到一条消息,表明通信操作已被删除,状态为“已完成”。 So far so good- I now know that the participant is in the call.到目前为止一切顺利 - 我现在知道参与者正在通话中。

The problem is that if a human participant in the call invites someone, there is no message to indicate this on the calling endpoint.问题是,如果呼叫中的人类参与者邀请某人,则在呼叫端点上没有消息表明这一点。 Should there be?应该有吗? Is there a way for the bot to know when a person has been invited by another person in the call?有没有办法让机器人知道一个人何时在通话中被另一个人邀请?

- ——

A related issue is that when I try to request the list of participants in a call (as detailed on https://docs.microsoft.com/en-us/graph/api/call-list-participants?view=graph-rest-beta ) the response suggests there are none.一个相关的问题是,当我尝试请求通话参与者的列表时(详见https://docs.microsoft.com/en-us/graph/api/call-list-participants?view=graph-rest -beta ) 回应表明没有。 For example:例如:

I place a call to the bot, and the calling endpoint receives a notification of an incoming call with id 471f0300-401f-4c4a-9967-3cee9a052519.我向 bot 发出呼叫,呼叫端点收到 ID 为 471f0300-401f-4c4a-9967-3cee9a052519 的来电通知。 The bot answers the call with a POST on:机器人通过 POST 应答呼叫:

https://graph.microsoft.com/beta/app/calls/471f0300-401f-4c4a-9967-3cee9a052519/answer

The bot subsequently receives a message on the calling endpoint that the call has been established.机器人随后在呼叫端点上收到一条消息,表明呼叫已建立。 I can query the graph about this call by making a GET:我可以通过 GET 查询有关此调用的图表:

https://graph.microsoft.com/beta/app/calls/471f0300-401f-4c4a-9967-3cee9a052519

I get a response with code 200 and the details of the call in progress, so the call is clearly valid and accessible.我收到了代码 200 和正在进行的呼叫的详细信息的响应,因此该呼叫显然有效且可访问。 However, if I attempt to get the list of participants with this GET:但是,如果我尝试使用此 GET 获取参与者列表:

https://graph.microsoft.com/beta/app/calls/471f0300-401f-4c4a-9967-3cee9a052519/participants

I get a response with code 200, but the body contains the following:我收到代码为 200 的响应,但正文包含以下内容:

{"@odata.context":"https://graph.microsoft.com/beta/$metadata#app/calls('471f0300-401f-4c4a-9967-3cee9a052519')/participants","value":[]}

Shouldn't this contain the list of participants?这不应该包含参与者列表吗?

- ——

I'd appreciate any insight on what I might be doing wrong here.我很感激任何关于我在这里可能做错的事情的见解。 Thanks a lot.非常感谢。

Anyone who's after more information about this, please check the following:任何想要了解更多信息的人,请检查以下内容:

https://github.com/microsoftgraph/microsoft-graph-comms-samples/issues/102 https://github.com/microsoftgraph/microsoft-graph-comms-samples/issues/102

Roster updates for a call and the ability to query the graph for a list of current participants had been implemented/fixed last time I checked.我上次检查时已实现/修复了呼叫的名册更新以及查询当前参与者列表的图表的功能。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 Microsoft Graph API:从正在进行的团队会议中获取与会者或参与者 - Microsoft Graph API: Get Attendenes or Participants from a ongoing Teams Meeting 如何使用控制台应用程序通过 Microsoft Graph API 调用 Microsoft Teams OnlineMeeting 端点? - How do I Call Microsoft Teams OnlineMeeting endpoints via Microsoft Graph API using a console app? 在 Microsoft Teams 中调用从 MS Graph API 中读取报告 API 但使用此 Api - call Read Reports API from MS Graph API in Microsoft Teams but using this Api Microsoft Teams 会议参与者列表通过 API 报告 - Microsoft Teams meeting participants list report through API 使用 Microsoft Graph API 或 BOT API 发送 MS Teams 消息 - Sending an MS Teams message using the Microsoft Graph API or BOT API 如何使用用户凭据调用 Microsoft Graph APIs for Teams - How to call Microsoft Graph APIs for Teams using user credentials 无法使用 Microsoft Graph 和 Teams 创建 VoIP 呼叫 - Cannot create a VoIP call using Microsoft Graph and Teams 用户同意使用 Microsoft Graph API 读取 Outlook/Teams/Sharepoint - User Consent to read Outlook/Teams/Sharepoint using Microsoft Graph API 使用 Graph API 和委派权限将成员添加到 Microsoft Teams - Add a member to Microsoft Teams using Graph API and delegated permissions 使用 Microsoft Graph API 列出包含团队的组时,过滤器不起作用 - filter is not working when using Microsoft Graph API to List Groups with Teams
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM