MS Graph API - Real time call notifications

vtdev24 1 Reputation point
2022-08-09T09:44:05.54+00:00

I am exploring the MS graph APIs to build integration with MS Teams. In order to do that, I need real-time notifications or information about calling activities like incoming calls, transferred, on hold, hung up etc within.

I read through the MS Graph API documentation a couple of times but couldn't find anything related to it. I came across this system-messages, and checked how it works. I got a few notifications when the call started in a channel or when a group call started, but it does not send any messages related to a 1-to-1 call.

I also tried the cloud-communications-callrecords APIs, but this is not real-time. It sends the notification 12 mins or so after the call ended.

Has anyone in the community worked with real-time notifications related to calls? If yes, please do share details. Also if it is not possible with MS graph APIs then is there any other way to get real-time updates on calls?

I would really appreciate it if I get any help or pointers on this.

Thank you!

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
10,716 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Srinivasa Rao Darna 6,696 Reputation points Microsoft Vendor
    2022-09-02T09:38:12.517+00:00

    Hi @vtdev24 ,

    According to this callrecords-callrecord-get documentation, to get id of a call record we have to methods:

    • Subscribe to change notifications to the /communications/callRecords endpoint.
    • Use the callChainId property of a call. The call record is available only after the associated call is completed.

    Could you please try to use the callChainId property to get the call record.

    Hope this helps.
    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    0 comments No comments