diff --git a/src/components/call-desk/active-call-card.tsx b/src/components/call-desk/active-call-card.tsx index 7da9236..6bf1ccc 100644 --- a/src/components/call-desk/active-call-card.tsx +++ b/src/components/call-desk/active-call-card.tsx @@ -124,7 +124,7 @@ export const ActiveCallCard = ({ lead, callerPhone }: ActiveCallCardProps) => {
diff --git a/src/state/sip-manager.ts b/src/state/sip-manager.ts index e3f3214..092c5d4 100644 --- a/src/state/sip-manager.ts +++ b/src/state/sip-manager.ts @@ -50,10 +50,11 @@ export function connectSip(config: SIPConfig): void { // Auto-answer SIP when it's a bridge from our outbound Kookoo call if (state === 'ringing-in' && outboundPending) { outboundPending = false; - // Auto-answer after a brief delay to let SIP negotiate + console.log('[SIP] Outbound bridge detected — auto-answering'); setTimeout(() => { sipClient?.answer(); - stateUpdater?.setCallState('active'); + // Force active state in case SIP callbacks don't fire + setTimeout(() => stateUpdater?.setCallState('active'), 300); }, 500); return; }