Revert broken voice_start patch

This commit is contained in:
Yera All
2026-04-07 00:24:32 +05:00
parent e2148a5cb3
commit 02df90138d
+1 -5
View File
@@ -231,14 +231,10 @@ def ai_voice_config_for_queue(queue_code: str | None) -> dict[str, Any] | None:
next_queue_id = queue_map().get(next_queue_code)
if stage == "voice_start" and not handoff_queue_id:
handoff_queue_id = next_queue_id
agent_profile = str(item.get("agent_profile") or "voice_support").strip() or "voice_support"
if (key.startswith("ivr_") and "_ai" in key) or key == "voice_lab_ivr":
agent_profile = "voice_start"
return {
"queue_code": key,
"mode": "ai_first",
"agent_profile": agent_profile,
"agent_profile": str(item.get("agent_profile") or "voice_support").strip() or "voice_support",
"language": str(item.get("language") or "").strip() or None,
"stage": stage,
"next_queue_code": next_queue_code,