Skip to main content

SignalWire.Relay.Calling.RecordAction

This object returned from RecordAsync method that represents a record operation that is currently active on a call.

Properties

PropertyTypeDescription
ControlIDstringThe identifier used to control the operation.
ResultSignalWire.Relay.Calling.RecordResultFinal result of recording.
StateSignalWire.Relay.Calling.CallRecordStateCurrent state of the record operation.
CompletedboolWhether the record operation has completed.
PayloadSignalWire.Relay.Calling.CallRecordPayload sent to Relay to start the record operation.
UrlstringUrl of the recording provided by Relay, the file may not be present at the URL until the recording is finished.

Methods

Stop

Stop the action immediately.

Parameters

None

Returns

SignalWire.Relay.Calling.StopResult - The result object to interact with.

Examples

Start recording in stereo mode and stop it if agent is not available in 3 seconds.

RecordAction actionRecord = call.RecordAsync(
new CallRecord
{
Audio = CallRecord.AudioParams
{
Stereo = true,
}
});

Thread.Sleep(3000);

if (!agent.IsAvailable)
{
StopResult resultStop = actionRecord.Stop();
}