Call Ended Events after Teams PSTN Calls

Daniel Dunn 1 Reputation point
2023-08-31T14:16:41.7066667+00:00

Hi we use teams with an SBC so that we can use Teams to make calls from our office to clients.

We also have a system which records the time we spend on various tasks.

What I would like to achieve is when a call ends, a window appears allowing the user to save if needed the details of the call.

I have craeted a lot of Windows Forms programs, but what would I need to do to achieve this?

Thanks

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
10,644 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,866 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Prasad-MSFT 5,621 Reputation points Microsoft Vendor
    2024-04-22T12:53:35.8766667+00:00

    To create a window that appears after a Teams call ends, allowing users to save call details, you can utilize the Microsoft Graph API to listen for call events and then trigger a custom action, such as displaying a form.

    1. You can set up a subscription to listen for call end events.
      https://learn.microsoft.com/en-us/graph/api/resources/callrecords-pstncalllogrow?view=graph-rest-1.0
    2. Once you receive a notification that a call has ended, you can trigger a custom action on your server application. This could be displaying a Windows Form or another type of UI for users to enter details about the call.
    3. After the user enters the details, you can save this information to your system that records the time spent on various tasks.

    Please note that while the Graph API provides access to call records, it does not directly support triggering UI elements on the client side. You might need to develop a custom solution that works with your existing infrastructure to display the form after a call ends.

    Thanks, 

    Prasad Das

    ------------------------------------------------------------------------------------------ 

    If the response is helpful, please click "Mark as Best Response" and like it. You can share your feedback via Microsoft Teams Developer Feedback link. Click here to escalate.