774056846 4 months ago
parent
commit
9cafa84ca1
1 changed files with 1 additions and 1 deletions
  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)