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)