CallAutomationClient
in Azure Communication Services only requires a callback_url
parameter to answer a call. The callback_url
is the URL that the service will use to send events related to the call, such as incoming video or audio streams.
However, if you have a WebSocket server that you want to use to handle the incoming video or audio streams, you will need to implement the WebSocket connection in your own code and pass the necessary information to the CallAutomationClient
to use your WebSocket server instead of the default one.
Also as mentioned-
we are releasing more samples in Python in the coming weeks (Can not share ETA here) but you can refer to the documentation for the WebSocket library you are using to implement the WebSocket connection, and then pass the WebSocket URL to the CallAutomationClient
as a custom header or parameter.
see- https://learn.microsoft.com/en-us/azure/azure-web-pubsub/howto-websocket-connect?tabs=browser
I hope this helps! Let me know if you have any further questions.