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) <noreply@anthropic.com>
This commit is contained in:
2026-04-13 10:52:52 +05:30
parent 01348123e6
commit 5969441868

View File

@@ -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;