Skip to content

Commit 043f18d

Browse files
authored
Update teams-phone-extensibility-quickstart.md
Adding the specific change on Call Recording for Teams Phone extensibility
1 parent b8a211b commit 043f18d

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

articles/communication-services/quickstarts/tpe/teams-phone-extensibility-quickstart.md

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -474,6 +474,29 @@ await callConnection.TransferCallToParticipantAsync(new TransferToParticipantOpt
474474
...
475475
```
476476

477+
### CCaaS developer: How to start recording session with StartRecordingOptions
478+
479+
For Teams Phone extensibility, you need to use the CallConnectionId received during initiation of the call, when starting the recording session.
480+
481+
- Use RecordingContent to pass the recording content type. Use AUDIO.
482+
- Use RecordingChannel to pass the recording channel type. Use MIXED or UNMIXED.
483+
- Use RecordingFormat to pass the format of the recording. Use WAV.
484+
485+
```csharp
486+
CallAutomationClient callAutomationClient = new CallAutomationClient("<ACSConnectionString>");
487+
488+
StartRecordingOptions recordingOptions = new StartRecordingOptions("<callConnectionId>")
489+
{
490+
RecordingContent = RecordingContent.Audio,
491+
RecordingChannel = RecordingChannel.Unmixed,
492+
RecordingFormat = RecordingFormat.Wav,
493+
RecordingStateCallbackUri = new Uri("<CallbackUri>");
494+
};
495+
Response<RecordingStateResult> response = await callAutomationClient.GetCallRecording()
496+
.StartAsync(recordingOptions);
497+
```
498+
499+
477500
## Alpha SDKs
478501

479502
- [Call Automation C# SDK](https://dev.azure.com/azure-sdk/public/_artifacts/feed/azure-sdk-for-net/NuGet/Azure.Communication.CallAutomation/overview/1.4.0-alpha.20250129.2)

0 commit comments

Comments
 (0)