SOLVED

Teams Call API like TAPI for Call Events

Copper Contributor

Hey everyone

 

In last time I had searched long Time for a possibility to become a Event on every starting Call and every Stopped/transferd call on live Time but I didn't find anything.

Do anyone of you know a Solution that works like TAPI for the Phone, because I have to embed our old Ticketing/Phone Lookup System with Teams Phone Call.

 

Thanks in Regard

Swess72

12 Replies
Do you want to create an event every time a call starts? Could you please share more details on what you want to achieve?

Sharing this for your reference - https://docs.microsoft.com/en-us/graph/api/calendar-post-events?view=graph-rest-1.0&tabs=http
Hey Meghana

No, I dont want to make an event in Outlook but I want to have a trigger on every Call, that triggers a function in my Visual Studio Project. Because I have to open a window with the Call data.
Thanks in Regard
Swess

Please go through subscription resource type.  You can subscribe to callRecord and it will send you notifications after a call or meeting in Microsoft Teams.

 

Thanks, 

Meghana

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

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. 

Hey Meghana
Thanks for the Help.

But subscriptions arent a Opinion for me, because I need the Call Data instant.

Do you have any other Solution?

Best Regards
Swess
best response confirmed by Swess72 (Copper Contributor)
Solution

@Swess72 - We got the below response from the engineering team.

we do not have any APIs for adhoc calls. We only have a subscription api for scheduled onlinemeetings(start/stop/participants added/removed).
 

Thanks, 

Meghana

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

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. 

Hi Meghana,

since almost a year passed and we require this functionality as well, do you have an update on this? Is there now an option or a workaround to receive real-time events of incoming PSTN calls in Microsoft Teams for all users of an organization?

The Teams desktop app has the option to open an https web page for accepted calls for CRM purposes however no options for incoming calls or denied calls.

A Teams bot can't get events between two PSTN call participants based on my interpretation of the documentation (https://learn.microsoft.com/en-us/microsoftteams/platform/bots/calls-and-meetings/call-notifications). Is this correct?

Then there are Azure Cloud Communication Services (https://learn.microsoft.com/en-us/azure/communication-services/concepts/call-automation/incoming-cal...) which support incoming call subscriptions but only to phone numbers owned by the service so again it is not possible to receive events for incoming calls between two phone numbers that are not owned by the service.

Finally there are the Graph API notifications which support the required features however not even close to real-time (https://learn.microsoft.com/en-us/graph/webhooks#latency).

Is there any other option available (or planned) that I have missed?

Thanks,
Wladimir
Currently we can get the events only after the call has ended. There are no APIs for adhoc calls.
Hi Meghana,

thanks for the quick response. We will explore the Azure Communication Services option a bit further. Maybe it is possible after all with a little bit more effort by managing the call handling manually and redirecting the calls to the users and call queues.
Hey Meghana

Is there Something new available or planned after the Ignite 2023

Best Regards
Swess72

@Swess72 - Unfortunately it is not in the roadmap currently. 

Hi @Swess72
There is a good solution right now to handle incoming, accepted and missed calls in MS Teams by leveraging the Azure Communication Services APIs. The following documentation page describes it quite well:
https://learn.microsoft.com/en-us/azure/communication-services/concepts/interop/custom-teams-endpoin...

We are already using the JavaScript client successfully for over 150 users. Just keep in mind however that as of today the .NET client is not recommended for this feature - you can receive incoming calls but there is no way to distinguish between accepted or missed calls. You can track the progress on this issue here:
https://github.com/Azure/azure-sdk-for-net/issues/37980

Edit: You may also experience issues with incoming PSTN call events in the .NET client depending on your country:
https://github.com/Azure/azure-sdk-for-net/issues/31167

Hey @wladimir_k_m

 

Thank you very much for this informations. I will look into this.

 

1 best response

Accepted Solutions
best response confirmed by Swess72 (Copper Contributor)
Solution

@Swess72 - We got the below response from the engineering team.

we do not have any APIs for adhoc calls. We only have a subscription api for scheduled onlinemeetings(start/stop/participants added/removed).
 

Thanks, 

Meghana

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

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. 

View solution in original post