Skip to content

PhoneCallOptions

Lejla Solak edited this page Feb 9, 2026 · 3 revisions

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;

Tutorials

Migration guides

Reference documentation

Clone this wiki locally