Hi @Alex I understand you're facing an issue with the Azure Communication Services (ACS) Bot sample code getting stuck on the line var answer_result = await answerCallResult.WaitForEventProcessorAsync();
after deploying it to Azure App Service. This seems related to the linked question about deploying an IVR bot using ACS.
Firstly, the linked question was in relation to using Azure Functions. If you're deploying to a standard Web App in Azure App Service, there might be compatibility issues. Consider using Azure Functions for a more suitable environment for this type of bot.
Secondly, from what you shared it seems like the code might be encountering a deadlock situation where the WaitForEventProcessorAsync()
method is waiting for an event that never arrives. Review the code surrounding this line to see if there are any potential deadlocks. Ensure proper event handling and resource cleanup.
Lastly, please double-check your Azure configuration for ACS Bot to make sure all required resources are provisioned correctly, including:
- Azure Communication Services resource
- Bot Channels registration (SMS, Phone Number)
- Connection strings for accessing ACS resources
- Verify that the bot has the necessary permissions (e.g., "Microsoft.Communication/services/read" and "Microsoft.Communication/users/readall") to access required resources.
Hope that help.
-Grace