Cannot get the Skype calls to work with Azure functions bot
Bot Info
- SDK Platform: .NET
- SDK Version: 3.15.2.2
- Active Channels: Skype
- Deployment Environment: Azure Functions App
Issue Description
I am working on a bot which you can message and call via Skype. The bot runs in Azure functions. I have the message part working. I have configured the bot in Azure to have calling capabilities and I can call the bot, but it returns a spoken message that "You can't talk to this bot just yet, but we are working on it". The call and callback endpoints are configured correctly as far as I can tell (I don't get errors anymore) as well as the bing speech cognitive service connection.
Code Example
Here is the Azure functions 'call' that replaces the CallingController in the sample from https://github.com/Microsoft/BotBuilder-Samples/tree/master/CSharp/skype-CallingBot

And this is the part where the calling events are attached to the callingBotService
I have confirmed that the events are being attached, but the corresponding functions are never invoked.
Reproduction Steps
- Clone the skype calling sample from https://github.com/Microsoft/BotBuilder-Samples/tree/master/CSharp/skype-CallingBot
- Replace the controllers by Azure functions
- Deploy a functions bot in Azure
- Configure the bot service to use the Azure functions endpoints
- Configure the Azure functions app settings for the callbackurl and cognitive services
Expected Behavior
I expected the same behaviour as the skype-calling sample.
Actual Results
Bot responds with: "You can't talk to this bot just yet, but we are working on it" and does not display any errors. For every call I get three invocations in the invocation logs of the call function, all with green check marks. The callback function is never reached.
Duplicate of https://stackoverflow.com/questions/50590652/how-to-make-skype-calls-work-with-an-azure-functions-bot
Closing, since the duplicate post on Stack Overflow has been answered by someone from the Azure Functions team.
@EricDahlvang The answer on the stack-overflow post solved only a part of the problem. The answer there explained how to configure the callback endpoint and got rid of the error message. However it is still not working as expected: the bot responds with "You can't talk to this bot just yet, but we are working on it" and the callback endpoint is not being hit. Furthermore I don't have any error messages to go on.
Azure Functions are probably not the best choice for a Calling Bot. I personally believe that Azure Functions are not a good platform for bot development, period. There are plenty of use-cases for utilizing an azure function within a bot, but hosting the entire bot code within and azure function tends to be problematic (as you've seen with what you're trying to do here).