@twilio/voice-sdk
    Preparing search index...

    Interface ConnectOptions

    Options to be passed to Device.connect.

    interface ConnectOptions {
        connectToken?: string;
        params?: Record<string, string>;
        rtcConfiguration?: RTCConfiguration;
        rtcConstraints?: MediaStreamConstraints;
    }

    Hierarchy (View Summary)

    Index

    Properties

    connectToken?: 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.

    params?: Record<string, string>

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

    rtcConfiguration?: RTCConfiguration

    An RTCConfiguration to pass to the RTCPeerConnection constructor.

    rtcConstraints?: MediaStreamConstraints

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