@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
TypeScript
import { SIPEndpoint as SIPEndpoint$1 } from '../../types/Endpoint/SIPEndpoint.js';
/**
* Represents a SIP (Session Initiation Protocol) endpoint for making voice calls.
* @deprecated This class is deprecated. Please update to use the SIPEndpointType type instead.
*/
declare class SIPEndpoint implements SIPEndpoint$1 {
/**
* The type of the endpoint, which is always 'sip'.
*/
type: 'sip';
/**
* The SIP URI associated with this endpoint.
*
* @param {string} uri - The SIP URI for the SIP endpoint.
*/
uri: string;
/**
* Optional custom headers to include in SIP requests.
*
* @param {Array<Record<string, unknown>>} headers - Optional custom headers as an array of key-value pairs.
*/
headers?: Record<string, unknown>;
/**
* Create a new SIPEndpoint instance.
*
* @param {string} uri - The SIP URI for the SIP endpoint.
* @param {Array<Record<string, unknown>>} headers - Optional custom headers as an array of key-value pairs.
*/
constructor(uri: string, headers?: Array<Record<string, unknown>>);
}
export { SIPEndpoint };