Forum Discussion
Teams bot intercepting incoming call
- Sep 21, 2023
PMcVries - Using the Get call API , you can get the source and targets details of a call and based on that you can take decision of redirecting the call using redirect call API.
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.
PMcVries - Could you please refer this and let us know if this is what you are looking for?
call: redirect - Microsoft Graph v1.0 | Microsoft Learn
- PMcVriesSep 20, 2023Copper Contributor
Hello Prasad_Das-MSFT,
I wasn't quite able to determine whether the redirect resource can enable a third party to intercept an incoming call between two users.
The background is:
My agency has agents with personalized Teams accounts. I want to develope an application that can intercept an incoming call to an agent and notifies the agent with informations about the call and the caller. According to these informations the agent is given the option to answer or decline the call. Is the redirect resource able to do that?
- Prasad_Das-MSFTSep 21, 2023
Microsoft
PMcVries - Using the Get call API , you can get the source and targets details of a call and based on that you can take decision of redirecting the call using redirect call API.
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.
- PMcVriesSep 21, 2023Copper Contributor
In the https://learn.microsoft.com/en-us/graph/api/call-get?view=graph-rest-1.0&tabs=http it is written that i have to use the following url:
GET /communications/calls/{id}
How does a third party receive the call id for a call that is directed from party1 to party2?