Alvin Saldanha
Alvin Saldanha

Reputation: 916

How to send custom data in Microsoft.Communication.RecordingFileStatusUpdated event of Event Grid

I am using Azure communication service APIs to start a Group video/audio call in my Angular / .Net Core application. I am also using the Azure.Communication.CallingServer to record the calls. I use the Azure Event Grid Webhook on the Microsoft.Communication.RecordingFileStatusUpdated event so Azure can notify my API when the Recording is available for download. All this works well and I'm able to download the recording stream.

The issue I'm having is trying to map the recording file to the meeting record in my application database. The event grid Event Subscription is created at design time in Azure and it cannot seem to pass any custom data. When the recording becomes available for download, can Event Grid send me custom data about the recording that I may have previously passed at runtime?

Upvotes: 0

Views: 225

Answers (1)

rocky
rocky

Reputation: 7696

You can persist the call ID and/or recording ID (a part of the StartRecording response) by the time you're starting the recording and then map the RecordingFileStatusUpdated event to those IDs by utilizing the data in the subject.

Check out how this sample uses recordingData to persist the recording status.

Upvotes: 2

Related Questions