@vonage/voice
Version:
The Voice API lets you create outbound calls, control in-progress calls and get information about historical calls.
38 lines (35 loc) • 1.32 kB
TypeScript
import { CallEndpoint } from '../types/Endpoint/CallEndpoint.js';
import { PhoneEndpoint } from '../types/Endpoint/PhoneEndpoint.js';
import { OutboundCall } from './OutboundCall.js';
import '../types/Endpoint/SIPEndpoint.js';
import '../types/Endpoint/VBCEndpoint.js';
import '../types/Endpoint/WebsocketEndpoint.js';
import '../types/Endpoint/AppEndpoint.js';
import '../enums/HttpMethod.js';
import '../enums/MachineDetctionBehavior.js';
/**
* Represents an outbound call with an answer URL.
*
* @deprecated This class is deprecated. Please update to use the CallWithAnswerURL type
*/
declare class OutboundCallWithAnswerURL extends OutboundCall {
/**
* The list of answer URLs.
*/
answer_url: string[];
/**
* The list of answer URLs.
*
* @deprecated Use `answer_url` instead.
*/
answerUrl: string[];
/**
* Creates a new outbound call with an answer URL.
*
* @param {string} answerUrl - The answer URL for the 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(answerUrl: string, to: CallEndpoint, from?: PhoneEndpoint);
}
export { OutboundCallWithAnswerURL };