Multiple Hits to ProcessCallingEventAsync() in Skype Call for every Record Event
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
- Speak into the bot as required.
- 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.
Hi @flatmath,
Are you still experiencing issues? If so, can you provide your AppId so I can look at the activity?
Closing due to no response. Please reopen if you're still experiencing this issue.
@stevkan I'd like to re-open this issue. The AppId is [80dbaddf-68d0-40ee-9326-edbf49a636da].
@flatmath, I'll take a look and let you know what I find.
any updates? @stevkan
@flatmath, I have been testing the sample and came across a couple lines of code that need to change. Could you alter yours to match the following and test again? I have been unable to reproduce the issue and am wondering if your experience is related to the following. Let me know.
-
In Web.config, change the "MicrosoftSpeechRecognitionUri" value to "https://speech.platform.bing.com/speech/recognition/dictation/cognitiveservices/v1?language=en-US". The Uri provided in the sample is incorrect.
- Be sure you generate a Cognitive Services Bing Speech API key, if you haven't already.
-
In MSCongnitiveSpeechService.cs, change line 34 from "var requestUri = this.speechRecognitionUri + Guid.NewGuid();" to "var requestUri = this.speechRecognitionUri;". The Uri doesn't accept an appended value.
-
In MSCongnitiveSpeechService.cs, change line 52 from "return data.header.name" to "return data["DisplayText"]. The return value actually lives in the location I specify
Closing as resolved. If you encounter the issue again, please feel free to reopen.
The Microsoft Bot Framework team prefers that how to questions be submitted on Stack Overflow. The official Bot Framework Github repo is the preferred platform for submitting bug fixes and feature requests.