DavidLiu 4 meses atrás
pai
commit
f464dca8e7

+ 0 - 2
src/core/callcenter/call.py

@@ -50,7 +50,6 @@ class CallService:
                                  conference=None, agent_name=None, from_agent=None, caller=None, called=None, display=None, called_location=None, caller_location=None, ring_start_time=None, ring_end_time=None, answer_time=None, bridge_time=None, end_time=None, talk_time=None, sip_protocol=None, channel_name=None, hangup_cause=None, ring_cause=None, sip_status=None, record=None, record_time=None, record_start_time=None, state=None, apparent_number=None,
                                  )
         call_info.device_list.append(device_id)
-        self.logger.info("liuwei::debugger:1111::call_id=%s, device_id=%s"%(call_id, device_id))
         call_info.next_commands.append(NextCommand(device_id, NextType.NEXT_CALL_OTHER.code))
         call_info.device_info_map = {device_id: device_info}
         self.cache.add_call_info(call_info)
@@ -109,7 +108,6 @@ class CallService:
                             call_time=now, cdr_type=CdrType.TRANSFER.code, device_type=DeviceType.AGENT.code,
                             cti_flow_id=None, agent_key=agent_number, agent_name=None, from_agent=None, called_location=None, caller_location=None, ring_start_time=None, ring_end_time=None, answer_time=None, bridge_time=None, end_time=None, talk_time=None, sip_protocol=None, channel_name=None, hangup_cause=None, ring_cause=None, sip_status=None, record=None, record_time=None, record_start_time=None, state=None, apparent_number=None, caller_display=None)
         call_info.device_list.append(device_id)
-        self.logger.info("liuwei::debugger:2222::call_id=%s, device_id=%s" % (call_id, device_id))
 
         # call_info.caller = agent_number
         call_info.device_info_map[device_id] = device_info

+ 0 - 3
src/core/callcenter/esl/client.py

@@ -620,12 +620,9 @@ class OutboundClient:
                                      cti_flow_id=None, conference=None, agent_name=None, from_agent=None, caller=None, called=None, display=None, called_location=None, caller_location=None, ring_start_time=None, ring_end_time=None, answer_time=None, bridge_time=None, end_time=None, talk_time=None, sip_protocol=None, channel_name=None, hangup_cause=None, ring_cause=None, sip_status=None, record=None, record_time=None, record_start_time=None, state=None, apparent_number=None, caller_display=None)
 
             call_info.device_list.append(device_id)
-            # self.server.logger.info("liuwei::debugger:3333::call_id=%s, device_id=%s" % (call_id, device_id))
             call_info.device_list.append(new_device_id)
-            # self.server.logger.info("liuwei::debugger:4444::call_id=%s, device_id=%s" % (call_id, new_device_id))
             # call_info.next_commands.append(NextCommand(device_id, NextType.NEXT_CALL_BRIDGE.code, new_device_id))
             call_info.device_info_map = {device_id: device_custom, new_device_id: device_bot}
-            # self.server.logger.info("lwoutBound, call_info=%s"%(call_info))
             self.server.cache.add_call_info(call_info)
             return call_info
 

+ 3 - 2
src/core/callcenter/esl/handler/channel_answer_handler.py

@@ -78,7 +78,6 @@ class ChannelAnswerHandler(EslEventHandler):
         device_id = device.device_id
 
         # 启用录音, 生产时候打开
-        self.logger.info("liuwei::debugger::answer, 33333")
         record_url = self.record(event, device_id)
         device.record = record_url
         device.record_start_time = device.answer_time
@@ -89,7 +88,6 @@ class ChannelAnswerHandler(EslEventHandler):
 
         new_device_id = 'D' + str(self.snowflake.next_id())
         call.device_list.append(new_device_id)
-        self.logger.info("liuwei::debugger:5555::call_id=%s, device_id=%s" % (call_id, device_id))
         called = call.called
         self.logger.info("呼另外一侧电话: callId: %s, display:%s, called:%s, deviceId: %s "%(call_id, call.called_display, called, device_id))
 
@@ -158,10 +156,13 @@ class ChannelAnswerHandler(EslEventHandler):
             return
 
         device =call.device_info_map.get(device_id)
+        self.logger.info("answer.record::call_id=%s, device_id=%s, device=%s", call_id, device_id, device)
         if not device:
             self.logger.info("answer.record deviceInfo is null,call_id:%s, device_id:%s"%(call_id, device_id))
             return
+
         _record_url = None
+        self.logger.info("answer.record::call_id=%s, device_id=%s, device_type=%s", call_id, device_id, device.device_type)
         if CallType.BOT_CALL.code == call.call_type:
             if DeviceType.CUSTOMER.code == device.device_type:
                 _record_url = self.start_recording(device_id, get_record_file_name(call_id, CallStage.ALL), call)