Browse Source

debug录音

Davidliu 3 weeks ago
parent
commit
0ad8448b5c
1 changed files with 4 additions and 4 deletions
  1. 4 4
      src/core/callcenter/esl/handler/channel_answer_handler.py

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

@@ -36,11 +36,11 @@ class ChannelAnswerHandler(EslEventHandler):
             self.logger.info("answer device_info is null, call_id:%s, call_info:%s", call_id, call_info)
             return
 
-        if CallType.AGENT_CALL.code == call_info.call_type and device_info.device_type == DeviceType.CUSTOMER.code:
-            self.record(event, device_id)
+        self.record(event, device_id)
+        # if CallType.AGENT_CALL.code == call_info.call_type and device_info.device_type == DeviceType.CUSTOMER.code:
 
         if (CallType.BOT_CALL.code == call_info.call_type or CallType.INCOMING_BOT_CALL.code == call_info.call_type) and device_info.device_type == DeviceType.ROBOT.code:
-            self.record(event, device_id)
+            # self.record(event, device_id)
             call_info.answer_flag = AnswerFlag.ROBOT_ANSWER.code
             registry.CALL_BOT_ANSWER_REQUESTS.labels(f"{call_info.bucket_type}").inc()
 
@@ -167,7 +167,7 @@ class ChannelAnswerHandler(EslEventHandler):
         else:
             _record_url = self.start_recording(device_id, get_record_file_name(call_id, CallStage.ALL), call)
         device.record = _record_url
-        self.logger.info("luyincall:%s, device:%s" % (call, device))
+        self.logger.info("luyin::call_id:%s, device_id:%s, call:%s, device:%s" % (call_id, device_id, call, device))
         self.cache.add_call_info(call)
         return _record_url