774056846 4 місяців тому
батько
коміт
7d5858a7a3

+ 2 - 1
src/core/callcenter/esl/handler/channel_hangup_handler.py

@@ -82,8 +82,9 @@ 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))
             # 如果是转人工
+            sys.stdout.flush()  # 强制刷新输出缓冲区
             if 'transferToAgent' == hangup_reason and DeviceType.ROBOT.code == device.device_type:
                 call.answer_flag = AnswerFlag.TRANSFER_TO_AGENT.code
                 service_id = EslEventUtil.getLIBRAServiceId(event)