PhoneCallOptions - infobip/infobip-rtc-js GitHub Wiki

extends CallOptions



static builder()

Description

Creates a builder instance used to build a new instance of the PhoneCallOptions.

Arguments

  • none

Returns

Example

let phoneCallOptionsBuilder = PhoneCallOptions.builder();



from()

Description

Getter for the from field.

Arguments

  • none

Returns

  • string - Value of the from field indicating what phone number should be used when making the call.

Example

let phoneCallOptions = PhoneCallOptions.builder().setFrom('33712345678').build();
let from = phoneCallOptions.from;



machineDetectionOptions()

Description

Getter for the machineDetectionOptions field.

Arguments

  • none

Returns

  • MachineDetectionOptions - Value of the machineDetectionOptions field containing configuration for machine detection during the call.

Example

let machineDetectionOptions = MachineDetectionOptions.builder().setEnabled(true).build();
let phoneCallOptions = PhoneCallOptions.builder().setMachineDetectionOptions(machineDetectionOptions).build();
let options = phoneCallOptions.machineDetectionOptions;
⚠️ **GitHub.com Fallback** ⚠️