import { UA, URI } from '@krivega/jssip'; import { default as UAFactory } from './UAFactory'; export type TParametersCheckTelephony = { displayName: string; sipServerIp: string; sipServerUrl: string; userAgent?: string; remoteAddress?: string; extraHeaders?: string[]; }; interface IDependencies { uaFactory: UAFactory; getUaProtected: () => UA; } export default class SipOperations { private readonly uaFactory; private readonly getUaProtected; constructor(dependencies: IDependencies); /** * Отправляет SIP OPTIONS запрос к указанному адресу */ sendOptions(target: URI | string, body?: string, extraHeaders?: string[], timeout?: number): Promise; /** * Отправляет SIP OPTIONS запрос к собственному URI (ping) */ ping(body?: string, extraHeaders?: string[]): Promise; /** * Проверяет доступность телефонии, создавая временное соединение */ checkTelephony({ userAgent, displayName, sipServerIp, sipServerUrl, remoteAddress, extraHeaders, }: TParametersCheckTelephony): Promise; } export {};