mirror of
https://dev.azure.com/globalhealthx/EMR/_git/helix-engage-server
synced 2026-05-18 20:08:19 +00:00
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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user