Why Azure Communication Service is not redirecting my calls?

Anonymous
2024-08-07T17:45:44.07+00:00

I am trying to redirect calls using Azure Communication Service. I am using an Azure number to simulate an IVR, and I have enabled the make/receive calls feature. I have written code using Azure functions to answer calls, handle events, and recognize specific keywords during an ongoing call. However, I am unable to redirect the call after recognizing the keyword.

The code in Call Automation works perfectly fine before answering the call, but it does not work after answering the call, using the speech resource, and receiving the "RecognizeCompleted" event. I don't get any error, busy signal, or call disconnection. While I receive the "redirect" operation on my Azure Communication Service insights, nothing actually happens when it tries to redirect it.

const callerIdNumber = { phoneNumber: "+1..." }; //my azure toll-free number const

target = {

	targetParticipant: { phoneNumber: "+1..." }, //my phone number

sourceCallIdNumber: callerIdNumber,

}; 

await callAutomationClient.redirectCall(contextData, target);

Azure Communication Services
Azure Communication Services
An Azure communication platform for deploying applications across devices and platforms.
847 questions
Azure
Azure
A cloud computing platform and infrastructure for building, deploying and managing applications and services through a worldwide network of Microsoft-managed datacenters.
1,035 questions
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.