@vonage/voice
Version:
The Voice API lets you create outbound calls, control in-progress calls and get information about historical calls.
27 lines • 956 B
TypeScript
import { PSTNEndpoint } from '../../types';
/**
* Represents a PSTN (Public Switched Telephone Network) endpoint for making phone calls.
* @deprecated This class is deprecated. Please update to use the PSTNEndpoint type instead
*/
export declare class PhoneEndpoint implements PSTNEndpoint {
/**
* The type of the endpoint, which is always 'phone'.
*/
type: 'phone';
/**
* The phone number associated with this PSTN endpoint.
*/
number: string;
/**
* Optional DTMF (Dual-Tone Multi-Frequency) answer to send when the call is answered.
*/
dtmfAnswer?: string;
/**
* Create a new PhoneEndpoint instance.
*
* @param {string} phoneNumber - The phone number for the PSTN endpoint.
* @param {string} dtmfAnswer - Optional DTMF answer to send when the call is answered.
*/
constructor(phoneNumber: string, dtmfAnswer?: string);
}
//# sourceMappingURL=PhoneEndpoint.d.ts.map