@vonage/voice
Version:
The Voice API lets you create outbound calls, control in-progress calls and get information about historical calls.
34 lines (31 loc) • 1.14 kB
text/typescript
import { CommonOutboundCall } from './CommonOutboundCall.mjs';
import { HttpMethod } from '../enums/HttpMethod.mjs';
import '../enums/MachineDetctionBehavior.mjs';
import './Endpoint/CallEndpoint.mjs';
import './Endpoint/PhoneEndpoint.mjs';
import './Endpoint/SIPEndpoint.mjs';
import './Endpoint/VBCEndpoint.mjs';
import './Endpoint/WebsocketEndpoint.mjs';
import './Endpoint/AppEndpoint.mjs';
import './AdvancedMachineDetection.mjs';
import '../enums/AdvancedMachineDetectionMode.mjs';
import './CommonCallFields.mjs';
import './Endpoint/PSTNEndpoint.mjs';
/**
* 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 };