botframework-sdk icon indicating copy to clipboard operation
botframework-sdk copied to clipboard

Cannot get the Skype calls to work with Azure functions bot

Open Rufus1123 opened this issue 8 years ago • 4 comments

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 image

And this is the part where the calling events are attached to the callingBotService image I have confirmed that the events are being attached, but the corresponding functions are never invoked.

Reproduction Steps

  1. Clone the skype calling sample from https://github.com/Microsoft/BotBuilder-Samples/tree/master/CSharp/skype-CallingBot
  2. Replace the controllers by Azure functions
  3. Deploy a functions bot in Azure
  4. Configure the bot service to use the Azure functions endpoints
  5. 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.

Rufus1123 avatar May 30 '18 12:05 Rufus1123

Duplicate of https://stackoverflow.com/questions/50590652/how-to-make-skype-calls-work-with-an-azure-functions-bot

JasonSowers avatar May 30 '18 16:05 JasonSowers

Closing, since the duplicate post on Stack Overflow has been answered by someone from the Azure Functions team.

EricDahlvang avatar May 31 '18 00:05 EricDahlvang

@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.

Rufus1123 avatar May 31 '18 08:05 Rufus1123

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).

EricDahlvang avatar Jun 03 '18 22:06 EricDahlvang