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

Multiple Hits to ProcessCallingEventAsync() in Skype Call for every Record Event

Open cystema opened this issue 8 years ago • 3 comments

Bot Info

  • SDK Platform: .NET
  • SDK Version: 3.14.0.7
  • Active Channels: Skype
  • Deployment Environment: Azure Bot Service, Azure App Service

Issue Description

We have:

[Route("callback")]
public async Task<HttpResponseMessage> ProcessCallingEventAsync()
{
    return await CallingConversation.SendAsync(this.Request, CallRequestType.CallingEvent);
}

Sometimes (but almost always, at least 4-5 times in a call), this method is hit thrice in a row for the same event. Before the first fired event can finish processing, this event is hit a second and then third time, which causes some flags set in the code to change and ruin the intended flow.

Similar to https://github.com/Microsoft/BotBuilder/issues/2016.

Reproduction Steps

  1. Speak into the bot as required.
  2. Wait for issue to occur.

Expected Behavior

For every Record event, the ProcessCallingEventAsync() method should be hit once. Hence, the event handler OnRecordCompleted() should be hit just once.

Actual Results

The method is hit thrice in a row - causing the OnRecordCompleted() event to fired thrice. This muddles the intended flow.

Re-open of issue https://github.com/Microsoft/BotBuilder/issues/4644

AppId is [80dbaddf-68d0-40ee-9326-edbf49a636da].

cystema avatar Jun 18 '18 08:06 cystema

@stevkan @JasonSowers Re-opened issue https://github.com/Microsoft/BotBuilder/issues/4644.

cystema avatar Jun 18 '18 08:06 cystema

@stevkan the AppId is [80dbaddf-68d0-40ee-9326-edbf49a636da]

cystema avatar Jun 19 '18 13:06 cystema

Closing as referencing/duplicate issue, #4644, is resolved.

stevkan avatar Aug 06 '18 18:08 stevkan