774056846 4 місяців тому
батько
коміт
9cafa84ca1
1 змінених файлів з 1 додано та 1 видалено
  1. 1 1
      src/core/callcenter/agent.py

+ 1 - 1
src/core/callcenter/agent.py

@@ -150,7 +150,7 @@ class AgentOperService:
         if agent_monitor.service_state == AgentServiceState.CALLING.code or agent_monitor.service_state == AgentServiceState.DIALING.code:
             raise BizException(BizErrorCode.AGENT_CALLING_NOT_HANG)
 
-        if scene == AgentScene.ROBOT.code:
+        if scene == AgentScene.MANUAL.code:
             self.agent_state_service.idle(agent.saas_id, agent.out_id, agent.phone_num)
         else:
             self.agent_state_service.busy(agent.saas_id, agent.out_id, agent.phone_num)