fix: reset outboundPending on call end to prevent inbound poisoning

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-03-20 18:39:33 +05:30
parent 3a5bbc3f2a
commit 5d3b564356

View File

@@ -75,6 +75,7 @@ export function connectSip(config: SIPConfig): void {
// Reset outbound flag when call ends // Reset outbound flag when call ends
if (state === 'ended' || state === 'failed') { if (state === 'ended' || state === 'failed') {
outboundActive = false; outboundActive = false;
outboundPending = false;
} }
}, },
); );