From 596944186807ca13ef2b62d857078db1f3677df8 Mon Sep 17 00:00:00 2001 From: saridsa2 Date: Mon, 13 Apr 2026 10:52:52 +0530 Subject: [PATCH] fix: map Ozonetel 'pause' webhook action to break state Ozonetel sends action: 'pause' via webhook when agent is paused, but mapOzonetelAction only handled 'AUX'. The 'pause' action fell through to default (null), so the break SSE event was never emitted. The agent UI stayed on 'Ready' while Ozonetel had the agent PAUSED. Co-Authored-By: Claude Opus 4.6 (1M context) --- src/supervisor/supervisor.service.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/supervisor/supervisor.service.ts b/src/supervisor/supervisor.service.ts index cefcc42..d12a2e7 100644 --- a/src/supervisor/supervisor.service.ts +++ b/src/supervisor/supervisor.service.ts @@ -157,6 +157,7 @@ export class SupervisorService implements OnModuleInit { case 'incall': return 'in-call'; case 'ACW': return 'acw'; case 'logout': return 'offline'; + case 'pause': // Ozonetel sends 'pause' via webhook when agent is paused case 'AUX': // "changeMode" is the brief AUX during login — not a real pause if (eventData === 'changeMode') return null;