feat: add JsSIP SIP client and useSipPhone hook for Ozonetel softphone integration

This commit is contained in:
2026-03-17 18:03:31 +05:30
parent 4f9bdc7312
commit d5feaab75a
5 changed files with 425 additions and 0 deletions

11
src/types/sip.ts Normal file
View File

@@ -0,0 +1,11 @@
export type SIPConfig = {
displayName: string;
uri: string;
password: string;
wsServer: string;
stunServers: string;
};
export type ConnectionStatus = 'disconnected' | 'connecting' | 'connected' | 'registered' | 'error';
export type CallState = 'idle' | 'ringing-in' | 'ringing-out' | 'active' | 'ended' | 'failed';