774056846 4 months ago
parent
commit
102a5ebeff

+ 1 - 1
src/core/callcenter/esl/client.py

@@ -546,7 +546,7 @@ class OutboundClient:
                     kwargs = json.loads(info.serialize('json'))
                     kwargs['variable_sip_h_P-LIBRA-CallId'] = call_id
                     destination = self.server.agent.register(**kwargs)
-                    self.server.logger.info("device_id=%s, destination=%s, kwargs=%s", device_id, destination, json.dumps(kwargs))
+                    self.server.logger.info("debugger::device_id=%s, destination=%s, new_device_id=%s", device_id, destination, new_device_id)
 
                     self.build_call_info(call_id, device_id, new_device_id, str(destination), **kwargs)
                     Cache.add_device_user_part(device_id, destination)

+ 5 - 5
src/core/callcenter/esl/handler/channel_hangup_handler.py

@@ -29,28 +29,28 @@ class ChannelHangupHandler(EslEventHandler):
         print(json.loads(event.serialize('json')))
         try:
             call_id = EslEventUtil.getCallId(event)
-            print('call_id is ', call_id)
+            print('debugger::call_id is ', call_id)
             sys.stdout.flush()  # 强制刷新输出缓冲区
             if not call_id:
                 self.release(event)
                 print("call_id is null")
                 return
             call = Cache.get_call_info(call_id)
-            print('call_info is ', call)
+            print('debugger::call_info is ', call)
             sys.stdout.flush()  # 强制刷新输出缓冲区
             if not call:
                 print("call:%s is null", call_id)
                 return
             device_id = EslEventUtil.getDeviceId(event)
             device = call.device_info_map.get(device_id)
-            print('device_id is ', device_id)
+            print('debugger::device_id is ', device_id)
             sys.stdout.flush()  # 强制刷新输出缓冲区
             if not device:
                 print("device:%s is null", device_id)
                 return
 
             count = len(call.device_list)
-            print('ChannelHangupHandler, call_id=%s, device_id=%s, count=%s'% (call_id, device_id, count))
+            print('debugger::ChannelHangupHandler, call_id=%s, device_id=%s, count=%s'% (call_id, device_id, count))
             sys.stdout.flush()  # 强制刷新输出缓冲区
             try:
                 call.device_list.remove(device_id)
@@ -82,7 +82,7 @@ class ChannelHangupHandler(EslEventHandler):
             if device.record_start_time:
                 device.record_time = int(device.end_time) - int(device.record_start_time)
             call.device_info_map[device.device_id] = device
-            print('ChannelHangupHandler, hangup_reason=%s, device_type=%s' % (hangup_reason, device.device_type))
+            print('debugger::ChannelHangupHandler, hangup_reason=%s, device_type=%s' % (hangup_reason, device.device_type))
             # 如果是转人工
             sys.stdout.flush()  # 强制刷新输出缓冲区
             if 'transferToAgent' == hangup_reason and DeviceType.ROBOT.code == device.device_type: