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)