UNPKG

@vonage/voice

Version:

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

54 lines (52 loc) 1.21 kB
// lib/classes/OutboundCall.ts import debug from "debug"; debug("@vonage/voice")( "This class is deprecated. Please update to use the CommonOutboundCall type" ); var OutboundCall = class { /** * The list of call endpoints to which the outbound call will be made. */ to; /** * The phone endpoint object representing the caller's information. */ from; /** * Indicates whether to use a random from number (optional). */ randomFromNumber; /** * The list of event URLs (optional). */ eventUrl; /** * The HTTP method to use for event notifications (optional). */ eventMethod; /** * The machine detection behavior (optional). */ machineDetection; /** * The length timer for the call (optional). */ lengthTimer; /** * The ringing timer for the call (optional). */ ringingTimer; /** * Creates a new outbound call. * * @param {CallEndpoint} to - The call endpoint to which the outbound call will be made. * @param {PhoneEndpointObject} [from] - The phone endpoint object representing the caller's information. */ constructor(to, from) { this.to = [to]; this.from = from; } }; export { OutboundCall };