774056846 4 сар өмнө
parent
commit
70e160b171

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

@@ -39,6 +39,7 @@ class CallService:
         device_info = DeviceInfo(cti_flow_id=request.cti_flow_id, device_id=device_id, call_time=now, call_id=call_id, device_type=DeviceType.AGENT.code,
                                  agent_key=agent.agent_number, caller_display=route_gateway.name, cdr_type=CdrType.INBOUND.code)
         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)
@@ -90,6 +91,7 @@ class CallService:
         device_info = DeviceInfo(device_id=device_id, caller=caller, display=caller, called=agent_number, call_id=call_id,
                             call_time=now, cdr_type=CdrType.TRANSFER.code, device_type=DeviceType.AGENT.code)
         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

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

@@ -593,7 +593,9 @@ class OutboundClient:
                                      agent_key=destination, cdr_type=CdrType.INBOUND.code)
 
             call_info.device_list.append(device_id)
+            self.logger.info("liuwei::debugger:3333::call_id=%s, device_id=%s" % (call_id, device_id))
             call_info.device_list.append(new_device_id)
+            self.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("lwdebugger::outBound, call_info=%s"%(call_info))

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

@@ -75,6 +75,7 @@ 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))