Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RecordResponseAsync method never returns result #2412

Open
jsweiler opened this issue Apr 5, 2024 · 0 comments
Open

RecordResponseAsync method never returns result #2412

jsweiler opened this issue Apr 5, 2024 · 0 comments

Comments

@jsweiler
Copy link

jsweiler commented Apr 5, 2024

I'm using the Microsoft.Graph.Communications.Calls, Version=1.2.0.10115 package to handle various call related actions. I noticed recently that when I use the ICall.RecordResponse sdk method with code like below the method never returns a result.

var recordOperation = await call.RecordResponseAsync(
    maxRecordDurationInSeconds: 5,
    maxSilenceTimeoutInSeconds: 5,
    playBeep: true
);

However I do have my application setup to receive notifications and I see I do get a notification that has the information of the RecordResponseAsync call. I'm just not sure why the method doesn't return that data.

The notification my app gets looks like this:

{
    "@odata.type": "#microsoft.graph.commsNotifications",
    "value": [
        {
            "@odata.type": "#microsoft.graph.commsNotification",
            "changeType": "deleted",
            "resource": "/app/calls/491f6400-cbfd-419e-ad10-90724b5712f7/operations/46c5be4d-bcad-4f20-941e-eea2f667d308",
            "resourceUrl": "/communications/calls/491f6400-cbfd-419e-ad10-90724b5712f7/operations/46c5be4d-bcad-4f20-941e-eea2f667d308",
            "resourceData": {
                "@odata.type": "#microsoft.graph.recordOperation",
                "recordResourceAccessToken": "tokenRedacted",
                "recordResourceLocation": "https://03-usce.noam.prd.ivr.mediapaas.infra.teams.microsoft.com/api/v1/mediabots/in_59/67eb3535-81f2-4c20-90b1-19e2b822bb08/actions/record/5e5ea978-25ac-4589-8674-9cf30fc2752f/recordedStreams/43ef4fef-ffb1-471c-8e10-83c47ae2e529",
                "recordingLocation": "https://03-usce.noam.prd.ivr.mediapaas.infra.teams.microsoft.com/api/v1/mediabots/in_59/67eb3535-81f2-4c20-90b1-19e2b822bb08/actions/record/5e5ea978-25ac-4589-8674-9cf30fc2752f/recordedStreams/43ef4fef-ffb1-471c-8e10-83c47ae2e529",
                "recordingAccessToken": "tokenRedacted",
                "completionReason": "maxRecordDurationReached",
                "status": "completed",
                "clientContext": "adadff00-38c6-41fb-a5e2-738eb8c867fe",
                "resultInfo": {
                    "@odata.type": "#microsoft.graph.resultInfo",
                    "code": 200,
                    "subcode": 8515,
                    "message": "Action completed, max record duration reached."
                },
                "id": "46c5be4d-bcad-4f20-941e-eea2f667d308"
            }
        }
    ]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant