Forum Discussion
How to obtain phone number from an unanswered incoming call
I am a developer wanting to build an application to obtain the phone number from an (unanswered) inbound call on Teams in order to query a customer database for prior orders, etc., and open a window showing that data to the user receiving the incoming call.
After a lot of online searching, I learned that it is possible to obtain the incoming phone number using call records, but this will NOT work for me because call records are only created after the call ends.
My question is: Is it possible, through the Graph API or some other method, to extract the phone number from an incoming call on Teams in real-time (or as close as possible) and pass that data to an application that can do something with it?
jimbycat -It seems that extracting the phone number from an incoming call on Teams in real-time using the Graph API is currently not possible. The Graph API does not support real-time notifications for incoming calls with phone numbers.
You can create a bot that interacts with Teams calls and meetings using real-time voice, video, and screen sharing. This bot can 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.
If you need real-time data, creating a bot might be the most viable solution.
3 Replies
- Sayali-MSFT
Microsoft
jimbycat -It seems that extracting the phone number from an incoming call on Teams in real-time using the Graph API is currently not possible. The Graph API does not support real-time notifications for incoming calls with phone numbers.
You can create a bot that interacts with Teams calls and meetings using real-time voice, video, and screen sharing. This bot can 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.
If you need real-time data, creating a bot might be the most viable solution.- Sayali-MSFT
Microsoft
jimbycat - Could you please share your valuable feedback via Microsoft Teams Developer Feedback link.
- Sayali-MSFT
Microsoft
jimbycat- Thanks for reporting your issue.
We will check this at our end and will get back to you.