CallDevice.PhoneParams

View as Markdown

SignalWire.Relay.Calling.CallDevice.PhoneParams

This object represents the parameters specific to a phone device.

Constructor

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

Parameters

None

Examples

Basic Example

1CallDevice device = new CallDevice
2{
3 Type = CallDevice.DeviceType.phone,
4 Parameters = new CallDevice.PhoneParams
5 {
6 ToNumber = "+1XXXXXXXXXX",
7 FromNumber = "+1YYYYYYYYYY",
8 }
9};

Properties

PropertyTypeDescription
FromNumberstringThe source phone number in E164 format.
ToNumberstringThe destination phone number in E164 format.
TimeoutstringThe maximum time in seconds to wait for a call to begin.

Methods

None

Events

None