diff --git a/extensions/voice-call/src/webhook.ts b/extensions/voice-call/src/webhook.ts index b7ccaf2f6ea..7ceb0bdd0a7 100644 --- a/extensions/voice-call/src/webhook.ts +++ b/extensions/voice-call/src/webhook.ts @@ -10,11 +10,11 @@ import type { VoiceCallConfig } from "./config.js"; import type { CoreConfig } from "./core-bridge.js"; import type { CallManager } from "./manager.js"; import type { MediaStreamConfig } from "./media-stream.js"; +import { MediaStreamHandler } from "./media-stream.js"; import type { VoiceCallProvider } from "./providers/base.js"; +import { OpenAIRealtimeSTTProvider } from "./providers/stt-openai-realtime.js"; import type { TwilioProvider } from "./providers/twilio.js"; import type { NormalizedEvent, WebhookContext } from "./types.js"; -import { MediaStreamHandler } from "./media-stream.js"; -import { OpenAIRealtimeSTTProvider } from "./providers/stt-openai-realtime.js"; const MAX_WEBHOOK_BODY_BYTES = 1024 * 1024; @@ -185,7 +185,9 @@ export class VoiceCallWebhookServer { // Without this, calls can remain active indefinitely after the stream closes. const disconnectedCall = this.manager.getCallByProviderCallId(callId); if (disconnectedCall) { - console.log(`[voice-call] Auto-ending call ${disconnectedCall.callId} on stream disconnect`); + console.log( + `[voice-call] Auto-ending call ${disconnectedCall.callId} on stream disconnect`, + ); void this.manager.endCall(disconnectedCall.callId).catch(() => {}); } if (this.provider.name === "twilio") {