UNPKG

@vonage/voice

Version:

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

50 lines (47 loc) 1.48 kB
import { CallEndpoint } from '../types/Endpoint/CallEndpoint.mjs'; import { PhoneEndpointObject } from './Endpoint/PhoneEndpointObject.mjs'; import '../types/Endpoint/PhoneEndpoint.mjs'; import '../types/Endpoint/SIPEndpoint.mjs'; import '../types/Endpoint/VBCEndpoint.mjs'; import '../types/Endpoint/WebsocketEndpoint.mjs'; import '../types/Endpoint/AppEndpoint.mjs'; /** * Represents an outbound call configuration. * @deprecated This interface is deprecated. Please update to use the OutboundCall type. */ interface OutboundCall { /** * The call's destination(s). */ to: CallEndpoint[]; /** * The caller's phone number or endpoint. */ from?: PhoneEndpointObject; /** * Indicates whether to use a random caller's phone number. */ randomFromNumber?: boolean; /** * URLs to receive call events. */ eventUrl?: string[]; /** * The HTTP method used to send events to the event URLs. */ eventMethod?: string; /** * Whether machine detection should be enabled for the call. * @deprecated Machine detection behavior should be set separately using `machineDetection` property. */ machineDetection?: boolean; /** * The length of time to wait for a call answer, in seconds. */ lengthTimer?: number; /** * The length of time to ring before assuming a no-answer, in seconds. */ ringingTimer?: number; } export type { OutboundCall };