DavidLiu 4 meses atrás
pai
commit
0306863bcc

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

@@ -34,7 +34,7 @@ class ChannelAnswerHandler(EslEventHandler):
             self.logger.info("liuwei::debugger::answer, 11111")
             self.record(event, device_id)
 
-        if CallType.BOT_CALL.code == call_info.call_type and device_info.device_type == DeviceType.ROBOT.code:
+        if CallType.BOT_CALL.code == call_info.call_type and (device_info.device_type == DeviceType.ROBOT.code or device_info.device_type == DeviceType.AGENT.code):
             self.logger.info("liuwei::debugger::answer, 22222")
             self.record(event, device_id)
             call_info.answer_flag = AnswerFlag.ROBOT_ANSWER.code