UNPKG

@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.33 kB
import { CallEndpoint } from '../types/Endpoint/CallEndpoint.mjs'; import { PhoneEndpoint } from '../types/Endpoint/PhoneEndpoint.mjs'; import { OutboundCall } from './OutboundCall.mjs'; import '../types/Endpoint/SIPEndpoint.mjs'; import '../types/Endpoint/VBCEndpoint.mjs'; import '../types/Endpoint/WebsocketEndpoint.mjs'; import '../types/Endpoint/AppEndpoint.mjs'; import '../enums/HttpMethod.mjs'; import '../enums/MachineDetctionBehavior.mjs'; /** * 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 };