CallTapDevice

View as Markdown

SignalWire.Relay.Calling.CallTapDevice

This object represents call tap device, this may represent a source or destination.

Constructor

The only constructor is the default constructor, properties should all be assigned by initializer or after construction.

Parameters

None

Examples

Basic Example

1CallTapDevice device = new CallTapDevice
2{
3 Type = CallTapDevice.DeviceType.rtp,
4 Parameters = new CallTapDevice.RTPParams
5 {
6 Address = "1.2.3.4",
7 Port = 12345,
8 }
9};

Properties

PropertyTypeDescription
TypeSignalWire.Relay.Calling.CallTapDevice.DeviceTypeThis is the type of the device.
ParametersobjectThis is the object that represents the parameters specific to the type, see SignalWire.Relay.Calling.CallTapDevice.DeviceType for more information.

Methods

ParametersAs<T>()

This is a helper method to convert the Parameters to the real type.

Parameters

ParameterTypeRequiredDescription
TTyperequiredThis is the data type for the conversion, see SignalWire.Relay.Calling.CallMedia.MediaType for more information.

Returns

T - This is an instance of the data type resulting from the conversion, see SignalWire.Relay.Calling.CallMedia.MediaType for more information.

Examples

1CallTapDevice.RTPParams rtpParams = device.ParametersAs<CallTapDevice.RTPParams>();

Events

None