fix: build errors — JsSIP types, LeadActivity fields, telephony config

- supervisor-sip-client: use RTCSession as any (JsSIP types mismatch)
- patient-360: add missing LeadActivity fields (createdAt, channel, etc)
- telephony-settings: add adminUsername/adminPassword to loadConfig

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-04-12 16:32:02 +05:30
parent ee9da619c1
commit 636badfa31
3 changed files with 6 additions and 5 deletions

View File

@@ -1,4 +1,5 @@
import JsSIP from 'jssip';
type RTCSession = any;
// Lightweight SIP client for supervisor barge sessions.
// Separate from the agent's sip-client.ts — different lifecycle.
@@ -27,13 +28,11 @@ type SupervisorSipConfig = {
class SupervisorSipClient {
private ua: JsSIP.UA | null = null;
private session: JsSIP.RTCSession | null = null;
private config: SupervisorSipConfig | null = null;
private session: RTCSession | null = null;
private listeners = new Map<string, Set<EventCallback>>();
private audioElement: HTMLAudioElement | null = null;
init(config: SupervisorSipConfig): void {
this.config = config;
this.cleanup();
// Hidden audio element for remote call audio
@@ -67,7 +66,7 @@ class SupervisorSipClient {
});
this.ua.on('newRTCSession', (data: any) => {
const rtcSession = data.session as JsSIP.RTCSession;
const rtcSession = data.session as RTCSession;
if (rtcSession.direction !== 'incoming') return;
console.log('[SupervisorSIP] Incoming call — auto-answering');