@Nagane, Shahadatt It sounds like you’re experiencing an issue with the callback event not being triggered in your Azure Communication Service application when hosted on a public server. This can be a complex issue. I have put together a list of 6 items I would check first.
- Check the Webhook URL: Ensure that the webhook URL is correctly formatted and accessible from the public server. The format should be
https://<site-name>.azurewebsites.net/api/updates
where<site-name>
is the name of your Web App Service. - Verify Network Configuration: On your public server, check if there are any network configurations or firewalls that might be blocking incoming requests to your application.
- Inspect Event Handling: Review the code that handles the callback event. Ensure that it’s correctly set up to handle events and that there are no errors in the logic that would prevent the event from being processed.
- Use EventProcessor: Consider using the Call Automation’s EventProcessor to help with processing the Webhook Callback events. EvenProcesser can help associate each event to its respective call and handle events that could happen anytime during the call.
- Logging and Diagnostics: Increase the logging level to capture more detailed information about the call flow and events. This might provide insights into why the callback event isn’t being triggered.
- Review Call Automation Guides: Microsoft provides detailed guides on managing calls with Call Automation, including how to control and steer calls with actions and events. Review these guides to ensure your implementation aligns with the recommended practices.
Let me know the outcome of the six above suggestions. If you require further assistance, please reply here so we can assist you further.