Options
Menu

Interface ConnectOptions

Options to be passed to Device.connect.

Hierarchy

Index

Properties

Optional connectToken

connectToken: undefined | string

The Call.connectToken to use to manually reconnect to an existing call. A call can be manually reconnected if it was previously received (incoming) or created (outgoing) from a Device instance. A call is considered manually reconnected if it was created using the Call.connectToken. It will always have a Call.direction property set to Call.CallDirection.Outgoing.

Warning: Only unanswered incoming calls can be manually reconnected at this time. Invoking this method to an already answered call may introduce unexpected behavior.

See Device.incomingEvent for an example.

Optional params

params: Record<string, string>

A flat object containing key:value pairs to be sent to the TwiML app.

Optional rtcConfiguration

rtcConfiguration: RTCConfiguration

An RTCConfiguration to pass to the RTCPeerConnection constructor.

Optional rtcConstraints

rtcConstraints: MediaStreamConstraints

MediaStreamConstraints to pass to getUserMedia when making or accepting a Call.

Generated using TypeDoc