Forum Discussion
Teams Call API like TAPI for Call Events
- Jul 22, 2022
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.
Swess72 - We got the below response from the engineering team.
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.
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-call-notification) 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
- Meghana-MSFTJun 23, 2023
Microsoft
Currently we can get the events only after the call has ended. There are no APIs for adhoc calls.- Swess72Nov 28, 2023Copper ContributorHey Meghana
Is there Something new available or planned after the Ignite 2023
Best Regards
Swess72- wladimir_k_mNov 28, 2023Copper Contributor
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-endpoint-use-cases#use-case-2-receive-inbound-teams-phone-call
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
- wladimir_k_mJun 23, 2023Copper ContributorHi 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.