@vonage/voice
Version:
The Voice API lets you create outbound calls, control in-progress calls and get information about historical calls.
36 lines (33 loc) • 1.22 kB
TypeScript
import { CommonOutboundCall } from './CommonOutboundCall.js';
import { HttpMethod } from '../enums/HttpMethod.js';
import '../enums/MachineDetctionBehavior.js';
import './Endpoint/CallEndpoint.js';
import './Endpoint/PhoneEndpoint.js';
import './Endpoint/SIPEndpoint.js';
import './Endpoint/VBCEndpoint.js';
import './Endpoint/WebsocketEndpoint.js';
import './Endpoint/WebsocketAuthorization.js';
import '../enums/Endpoint/WebsocketBitrate.js';
import './Endpoint/AppEndpoint.js';
import './AdvancedMachineDetection.js';
import '../enums/AdvancedMachineDetectionMode.js';
import './CommonCallFields.js';
import './Endpoint/PSTNEndpoint.js';
/**
* Represents an outbound call with an answer URL, including common call properties and the answer URL information.
*/
type CallWithAnswerURL = CommonOutboundCall & {
/**
* The URL(s) to which call events should be sent when the call is answered.
*/
answerUrl: string[];
/**
* The HTTP method used to send events to the answer URL(s), typically "GET" or "POST."
*/
answerMethod?: HttpMethod;
/**
* Provide DTMF digits to send when the call is answerMethod
*/
dtmfAnswer?: string;
};
export type { CallWithAnswerURL };