UNPKG

@vonage/voice

Version:

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

39 lines (36 loc) 991 B
import { OutboundCall } from "./chunk-Q6P5XSES.mjs"; // lib/classes/OutboundCallWithAnswerURL.ts import debug from "debug"; debug("@vonage/voice")( "This class is deprecated. Please update to use the CallWithAnswerURL type" ); var OutboundCallWithAnswerURL = class extends OutboundCall { /** * The list of answer URLs. */ /* tslint:disable-next-line */ answer_url; /** * The list of answer URLs. * * @deprecated Use `answer_url` instead. */ answerUrl; /** * 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, to, from) { super(to, from); this.answer_url = [answerUrl]; this.answerUrl = [answerUrl]; } }; export { OutboundCallWithAnswerURL };