Microsoft Graph with Teams Call

Swess72 1 Reputation point
2022-02-16T13:41:28.567+00:00

Hey everyone

I made a new C# Console Application in Visual Studio 2019. This is connected with Microsoft Graph and this works perfect.

But now I want to make that my Application waits for new Teams Call and give back the Data of the Call. I already saw Teams Call Recard, but this takes too long. Now my Question, is this Possible or something similar. I must take the phonenumber and Phone start time instant out of Teams.

Thanks for any Help
Swess

Microsoft Teams
Microsoft Teams
A Microsoft customizable chat-based workspace.
9,067 questions
Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
10,582 questions
C#
C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
10,238 questions
Microsoft Teams Development
Microsoft Teams Development
Microsoft Teams: A Microsoft customizable chat-based workspace.Development: The process of researching, productizing, and refining new or existing technologies.
2,843 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Meghana-MSFT 3,771 Reputation points Microsoft Vendor
    2024-01-23T10:36:39.8433333+00:00

    It is possible to create a bot that interacts with Teams calls and meetings using real-time voice, video, and screen sharing. This bot can be used to receive call data such as the phone number and call start time. To achieve this, you need to use the Microsoft Graph APIs for calls and online meetings. These APIs allow your Teams app to interact with users using voice and video to enhance the experience. Here are the steps to create a bot that interacts with Teams calls: Install the Microsoft.Graph.Calls.Media.NET library NuGet package within your Visual Studio project. This library is required for an application-hosted media bot. Create a bot and specify some additional information and permissions. The Teams app manifest should include two more settings supportsCalling and supportsVideo. Register the bot. In registering a calls and meetings bot for Teams, the Webhook URL is mentioned, which is the webhook endpoint for all incoming calls to your bot. Deploy the bot on a Windows Server machine or Windows Server guest Operating System (OS) in Azure. Here is a sample bot that demonstrates how a bot can receive media streams for recording: Policy recording bot Please note that APIs under the /beta version in Microsoft Graph are subject to change. Use of these APIs in production applications is not supported. Also, remember that bots on Teams support only a specific set of media formats for audio and video content. For more information, you can refer to the requirements and considerations for application-hosted media bots and Microsoft Graph APIs for calls and online meetings.

    0 comments No comments