@vonage/voice
Version:
The Voice API lets you create outbound calls, control in-progress calls and get information about historical calls.
41 lines (39 loc) • 1 kB
JavaScript
// lib/classes/Endpoint/SIPEndpoint.ts
import debug from "debug";
debug("@vonage/voice")(
"This class is deprecated. Please update to use the SIPEndpointType type instead"
);
var SIPEndpoint = class {
/**
* The type of the endpoint, which is always 'sip'.
*/
type;
/**
* The SIP URI associated with this endpoint.
*
* @param {string} uri - The SIP URI for the SIP endpoint.
*/
uri;
/**
* 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;
/**
* 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, headers) {
this.type = "sip";
this.uri = uri;
if (headers) {
this.headers = headers[0];
}
}
};
export {
SIPEndpoint
};