microsoft-graph-comms-samples icon indicating copy to clipboard operation
microsoft-graph-comms-samples copied to clipboard

PolicyRecordingBot return to me exception when request log URL

Open omar-ababneh opened this issue 1 year ago • 3 comments

Describe the issue I upload the PolicyRecordingBot in the Azure cloud service (extend support) and it working fine also i create Azure bot and i configured the microsoft teams and add webhock

when i try to make test call the notification bar it appear (Recording is started). but when i try to requrest logs url : https://bot.globitel.com:10101/logs it return to me this exception

$>2024-08-14T15:42:25.4750320Z Error: ExceptionLogger.cs:37 LogAsync Exception processing HTTP request. exception: Bytes to be written to the stream exceed the Content-Length bytes size specified. StackTrace: at System.Net.HttpResponseStream.BeginWrite(Byte[] buffer, Int32 offset, Int32 size, AsyncCallback callback, Object state) at Microsoft.Owin.Host.HttpListener.RequestProcessing.ExceptionFilterStream.BeginWrite(Byte[] buffer, Int32 offset, Int32 count, AsyncCallback callback, Object state) at System.Threading.Tasks.TaskFactory1.FromAsyncImpl[TArg1,TArg2,TArg3](Func6 beginMethod, Func2 endFunction, Action1 endAction, TArg1 arg1, TArg2 arg2, TArg3 arg3, Object state, TaskCreationOptions creationOptions) at System.Net.Http.HttpContent.CopyToAsync(Stream stream, TransportContext context) at System.Web.Http.Owin.HttpMessageHandlerAdapter.<SendResponseContentAsync>d__33.MoveNext()

the same thing in calls url : https://bot.globitel.com:10101/calls it does not return any call.

omar-ababneh avatar Aug 14 '24 15:08 omar-ababneh

I need to show the audio and video packet in logs

omar-ababneh avatar Aug 14 '24 15:08 omar-ababneh

Does not look like something that is happening inside the Graph Calls SDK, so it is a bit off topic for this repo.

Without code nobody will be able to help. However, this Stackoverflow might help you.

InDieTasten avatar Aug 18 '24 11:08 InDieTasten

Does not look like something that is happening inside the Graph Calls SDK, so it is a bit off topic for this repo.

Without code nobody will be able to help. However, this Stackoverflow might help you.

OK thank you for your comment

I have question how i can show the audio packet that arrive to PolicyRecordingBot I do not have knowledge about GraphLogger ?

This is the code that logs the audio packet :

        private void OnAudioMediaReceived(object sender, AudioMediaReceivedEventArgs e)
        {
            this.GraphLogger.Info($"Received Audio: [VideoMediaReceivedEventArgs(Data=<{e.Buffer.Data.ToString()}>, Length={e.Buffer.Length}, Timestamp={e.Buffer.Timestamp})]");

            // TBD: Policy Recording bots can record the Audio here
            e.Buffer.Dispose();
        }

omar-ababneh avatar Aug 19 '24 06:08 omar-ababneh