UNPKG

react-sip-kit

Version:

A modern **React SIP.js toolkit** for building web softphones and SIP clients. Supports **audio/video calls**, **call recording**, **screen sharing**, and **device management**, all with a clean, extensible, TypeScript-first architecture.

22 lines (21 loc) 1.66 kB
import { SipAccountConfig } from '../../configs/types'; import { LineType, SipSessionDescriptionHandler, SipSessionType } from '../../store/types'; import { CallbackFunction } from '../../types'; import { Bye, Message } from 'sip.js'; import { IncomingRequestMessage, IncomingResponse } from 'sip.js/lib/core'; export declare const sessionEvents: ({ username }: { username: SipAccountConfig["username"]; }) => { onInviteCancel: (lineObj: LineType, response: IncomingRequestMessage, callback?: CallbackFunction<any>) => void; onInviteAccepted: (lineObj: LineType, videoEnabled: boolean, response?: IncomingResponse) => Promise<void>; onInviteTrying: (lineObj: LineType, response: IncomingResponse) => void; onInviteProgress: (lineObj: LineType, response: IncomingResponse) => void; onInviteRejected: (lineObj: LineType, response: IncomingResponse, callback?: CallbackFunction<any>) => void; onInviteRedirected: (lineObj: LineType, response: IncomingResponse) => void; onSessionReceivedBye: (lineObj: LineType, response: Bye, callback?: CallbackFunction<any>) => void; onSessionReinvited: (lineObj: LineType, response: IncomingRequestMessage) => void; onSessionReceivedMessage: (lineObj: LineType, response: Message) => void; onSessionDescriptionHandlerCreated: (lineObj: LineType, sdh: SipSessionDescriptionHandler, provisional: boolean, includeVideo?: boolean) => void; onTrackAddedEvent: (lineObj: LineType, videoEnabled?: boolean) => Promise<void>; onTransferSessionDescriptionHandlerCreated: (lineObj: LineType, session: SipSessionType, sdh: SipSessionDescriptionHandler, includeVideo?: boolean) => void; };