|
@@ -87,7 +87,7 @@ class ChannelHangupHandler(EslEventHandler):
|
|
# 更新通话记录
|
|
# 更新通话记录
|
|
# self.dataHandleServer.update_record(call_id, {"time_end": datetime.fromtimestamp(int(device.end_time)),"times":device.talk_time})
|
|
# self.dataHandleServer.update_record(call_id, {"time_end": datetime.fromtimestamp(int(device.end_time)),"times":device.talk_time})
|
|
|
|
|
|
- self.logger.info('debugger::ChannelHangupHandler, hangup_reason=%s, device_type=%s, skip_hangup_all=%s' % (hangup_reason, device.device_type, skip_hangup_all))
|
|
|
|
|
|
+ self.logger.info('debugger::ChannelHangupHandler, hangup_reason=%s, device_type=%s, cdr_type=%s, end_time=%s, skip_hangup_all=%s' % (hangup_reason, device.device_type, device.cdr_type, call.end_time, skip_hangup_all))
|
|
# 如果是转人工
|
|
# 如果是转人工
|
|
# if 'transferToAgent' == hangup_reason and DeviceType.ROBOT.code == device.device_type:
|
|
# if 'transferToAgent' == hangup_reason and DeviceType.ROBOT.code == device.device_type:
|
|
# call.answer_flag = AnswerFlag.TRANSFER_TO_AGENT.code
|
|
# call.answer_flag = AnswerFlag.TRANSFER_TO_AGENT.code
|