DavidLiu 4 месяцев назад
Родитель
Сommit
bfe6eeb264
1 измененных файлов с 7 добавлено и 7 удалено
  1. 7 7
      src/core/callcenter/esl/handler/channel_answer_handler.py

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

@@ -42,7 +42,7 @@ class ChannelAnswerHandler(EslEventHandler):
 
 
         if device_info.device_type == DeviceType.CUSTOMER.code:
-            self.record(event, device_id)
+            # self.record(event, device_id)
             self.push_handler.push_on_ring_start(saas_id=call_info.saas_id, flow_id=call_info.cti_flow_id, user_id=call_info.agent_key, scene=AgentScene.MANUAL, call_id=call_info.call_id)
 
         device_info.answer_time = EslEventUtil.getEventDateTimestamp(event)
@@ -67,10 +67,10 @@ class ChannelAnswerHandler(EslEventHandler):
         device_id = device.device_id
 
         # 启用录音, 生产时候打开
-        record_url = self.record(event, device_id)
-        device.record = record_url
-        device.record_start_time = device.answer_time
-        self.dataHandleServer.update_record(call_id, {"url": record_url})
+        # record_url = self.record(event, device_id)
+        # device.record = record_url
+        # device.record_start_time = device.answer_time
+        # self.dataHandleServer.update_record(call_id, {"url": record_url})
 
         call.direction = Direction.OUTBOUND.code
         call.answer_flag = AnswerFlag.AGENT_ANSWER.code
@@ -102,7 +102,7 @@ class ChannelAnswerHandler(EslEventHandler):
     def call_bridge(self, call: CallInfo, device: DeviceInfo, next_command: NextCommand, event):
         self.logger.info("开始桥接电话: callId:%s, caller:%s, called:%s, device1:%s, device2:%s"% (call.call_id,
                          call.caller, call.called, next_command.device_id, next_command.next_value))
-        self.record(event, device_id=device.device_id)
+        # self.record(event, device_id=device.device_id)
         device1 = call.device_info_map.get(next_command.device_id)
         device2 = call.device_info_map.get(next_command.next_value)
 
@@ -118,7 +118,7 @@ class ChannelAnswerHandler(EslEventHandler):
         # 转接电话 deviceInfo为被转接设备
         from_device_id = next_command.device_id
         device_id = EslEventUtil.getDeviceId(event)
-        self.record(event, device_id)
+        # self.record(event, device_id)
         call.next_commands.append(NextCommand(device_id, NextType.NEXT_TRANSFER_SUCCESS.code, call.device_list[1]))
         self.logger.info("转接电话中 callId:%s, from:%s, to:%s "% (call.call_id, from_device_id, device_id))
         self.inbound_client.transfer_call(device_id, next_command.next_value)