소스 검색

add hangup_dir

Davidliu 2 달 전
부모
커밋
1cbab448fa
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      src/core/callcenter/esl/handler/channel_hangup_handler.py

+ 1 - 1
src/core/callcenter/esl/handler/channel_hangup_handler.py

@@ -142,7 +142,7 @@ class ChannelHangupHandler(EslEventHandler):
             # 连续报警判断
             self.hook_serial_warn(call_info)
             self.cache.add_call_info(call_info, persistent=True)
-            if CallType.INCOMING_BOT_CALL.code == call_info.call_type and device_info.device_type != DeviceType.ROBOT.code:
+            if device_info.device_type != DeviceType.ROBOT.code:
                 # 释放坐席接听锁
                 self.agent_state_service.handle_release_agent_lock(call_info.agent_key, SAAS_ID)