@vonage/voice
Version:
The Voice API lets you create outbound calls, control in-progress calls and get information about historical calls.
60 lines • 1.75 kB
JavaScript
;
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.OutboundCall = void 0;
const debug_1 = __importDefault(require("debug"));
(0, debug_1.default)('@vonage/voice')('This class is deprecated. Please update to use the CommonOutboundCall type');
/* istanbul ignore next */
/**
* Represents an outbound call.
*
* @deprecated This class is deprecated. Please update to use the CommonOutboundCall type
*/
class OutboundCall {
/**
* 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;
}
}
exports.OutboundCall = OutboundCall;
//# sourceMappingURL=OutboundCall.js.map