Forum Discussion
Subscribe to call answered events
I have a contact centre application (Awaken scripting by Awaken Intelligence) and wish to integrate it into teams. The idea being when the user receives a call via PSTN and they answer the call in team, the scripting application can hear the event of the interaction being answered and launch the appropriate agent guidance to the user. This event would need to be raised with the appropriate data such as DDI dialled, customer number, queue it was routed via etc.
Is there already an API to allow me to subscribe to interaction answered events for a user?
- Saonti-MSFTMicrosoft
Hi andrewhemingway , Yes there is an API for this which can subscribe for calling feature.
Please find details in this Docs .
- andrewhemingwayCopper Contributor
Saonti-MSFT this is fine for obtaining information about a call once I am aware the call exists (as you need the call ID). I am specifically looking for a way to subscribe to events occurring and something like an onMessage event being raised that I can subscribe to. I don't want to poll and then look for anything. Does this type of mechanism exist? Or does it always require me to create a bot that is capable of hearing these answer events to then invoke my code from the bot?
- Saonti-MSFTMicrosoft
andrewhemingway We do have a mechanism which will notify you on an event update in this case call event. For more details check out this documentation: Use the Microsoft Graph API to get change notifications - Microsoft Graph v1.0 | Microsoft Docs
- chrisbrownawakenCopper ContributorI'm looking for similar capabilities in Teams. Knowing about these event APIs, if they exist, would be really helpful to me too.