UNPKG

@vonage/voice

Version:

The Voice API lets you create outbound calls, control in-progress calls and get information about historical calls.

39 lines 1.35 kB
import { HttpMethod, MachineDetectionBehavior } from '../enums'; import { CallEndpoint } from './Endpoint'; import { AdvancedMachineDetection } from './AdvancedMachineDetection'; import { CommonCallFields } from './CommonCallFields'; /** * Represents common fields for defining an outbound call, including the caller (from) and recipient (to) endpoints, * along with additional call parameters. */ export type CommonOutboundCall = Omit<CommonCallFields, 'to'> & { /** * An array of recipient endpoints for the call. */ to: Array<CallEndpoint>; /** * Specifies the behavior for machine detection during the call. */ machineDetection?: MachineDetectionBehavior; /** * Advanced machine detection settings for the call. */ advancedMachineDetection?: AdvancedMachineDetection; /** * The length of time to wait for call answer, in seconds. */ lengthTimer?: number; /** * The length of time to wait for the call to ring before considering it unanswered, in seconds. */ ringingTimer?: number; /** * An array of URLs to notify with call events. */ eventUrl?: string[]; /** * The HTTP method to use when sending events to the specified event URLs. */ eventMethod?: HttpMethod; }; //# sourceMappingURL=CommonOutboundCall.d.ts.map