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

OnHangupCompleted is never raised in Skype calls

Open Rufus1123 opened this issue 8 years ago • 6 comments

  • SDK Platform: .NET
  • SDK Version: 3.15.2.2
  • Active Channels: Skype
  • Deployment Environment: Azure App Service

Issue Description

The event OnHangupCompleted is never raised; neither when the call is ended by the user, nor when the bot executes a Hangup action.

Code Example

private Task OnHangupCompleted(HangupOutcomeEvent hangupOutcomeEvent)
{
    System.Diagnostics.Trace.TraceInformation(hangupOutcomeEvent.ConversationResult.Id);
    hangupOutcomeEvent.ResultingWorkflow = null;

    return Task.FromResult(true);
 }

Reproduction Steps

  1. Using the Skype-calling-bot example
  2. Deploy to Azure
  3. Set a breakpoint and remote debug
  4. Call the bot and hangup or make the bot hangup after receiving my message

Expected Behavior

I expected the breakpoint to be hit.

Actual Results

Breakpoint is not hit. OnHangupCompleted is never raised.

Edit 1: I found out that onHangupCompleted calls the callback url: Requested URL | https://xxxxxxxxxxx:80/api/calling/callback I think it should be: Requested URL | https://xxxxxxxxxxx.azurewebsites.net:80/api/calling/callback The correct callback url is hit for other cases, but just not on hang-up, so I don't think there is something wrong with my configuration.

Is this a bug? Can I set the callback url somewhere when onHangupComplete is raised?

Rufus1123 avatar Jun 15 '18 09:06 Rufus1123

Hi @Rufus1123, I'm working on duplicating the issue and am curious if you set break points elsewhere in the IVRbot.cs file. Do any hit?

stevkan avatar Jun 20 '18 18:06 stevkan

@stevkan yes, other breakpoints do hit when I set them, e.g. In onRecordCompleted

Rufus1123 avatar Jun 20 '18 18:06 Rufus1123

@Rufus1123, where did you see that the OnHangupCompleted callback Url is https://xxxxxxxxxxx:80/api/calling/callback? All the references I have seen point to the latter implementation.

stevkan avatar Jun 22 '18 00:06 stevkan

@stevkan When I enable Application Logging in Diagnostics Logs in the Azure portal, I get the html code for a website in the Log Stream. I have copied this to a file and opened that in my browser. See the screenshot below.

image

Rufus1123 avatar Jun 22 '18 07:06 Rufus1123

Hi @Rufus1123 - Fyi, we are looking closer at this. Thank you for being patient.

stevkan avatar Jun 26 '18 22:06 stevkan

Hi @Rufus1123,

This does appear to be a legitimate bug in the code. There is no immediate fix and no ETA. As the code is open source, you are welcome to research a solution and submit it as a PR against the Microsoft/BotBuilder-Samples repo. In the mean time, this issue will be closed and a bug opened on that repo for future consideration, #277.

stevkan avatar Jun 27 '18 21:06 stevkan