description |
---|
Automatically generated file. DO NOT MODIFY |
// Code snippets are only available for the latest version. Current version is 5.x// DependenciesusingMicrosoft.Graph.Communications.Calls.Item.RecordResponse;usingMicrosoft.Graph.Models;varrequestBody=newRecordResponsePostRequestBody{BargeInAllowed=true,ClientContext="d45324c1-fcb5-430a-902c-f20af696537c",Prompts=newList<Prompt>{newMediaPrompt{OdataType="#microsoft.graph.mediaPrompt",MediaInfo=newMediaInfo{Uri="https://cdn.contoso.com/beep.wav",ResourceId="1D6DE2D4-CD51-4309-8DAA-70768651088E",},},},MaxRecordDurationInSeconds=10,InitialSilenceTimeoutInSeconds=5,MaxSilenceTimeoutInSeconds=2,PlayBeep=true,StopTones=newList<string>{"#","1","*",},};// To initialize your graphClient, see https://learn.microsoft.com/en-us/graph/sdks/create-client?from=snippets&tabs=csharpvarresult=awaitgraphClient.Communications.Calls["{call-id}"].RecordResponse.PostAsync(requestBody);