|
@@ -96,7 +96,7 @@ class ChannelHangupHandler(EslEventHandler):
|
|
bucket_type = call_info.bucket_type if call_info.bucket_type else "EMPTY"
|
|
bucket_type = call_info.bucket_type if call_info.bucket_type else "EMPTY"
|
|
registry.CALL_HANGUP_REQUESTS.labels(f"{bucket_type}", f"{device_info.sip_status}").inc()
|
|
registry.CALL_HANGUP_REQUESTS.labels(f"{bucket_type}", f"{device_info.sip_status}").inc()
|
|
|
|
|
|
- self.logger.info('ChannelHangupHandler, device_id=%s, hangup_reason=%s, device_type=%s, cdr_type=%s, end_time=%s, skip_hangup_all=%s, answer_count=%s, hangup_count=%s' % (device_id, hangup_reason, device_info.device_type, device_info.cdr_type, call_info.end_time, skip_hangup_all, call_info.answer_count, call_info.hangup_count))
|
|
|
|
|
|
+ self.logger.info('ChannelHangupHandler, call_id=%s, device_id=%s, hangup_reason=%s, device_type=%s, cdr_type=%s, end_time=%s, skip_hangup_all=%s, answer_count=%s, hangup_count=%s' % (call_id, device_id, hangup_reason, device_info.device_type, device_info.cdr_type, call_info.end_time, skip_hangup_all, call_info.answer_count, call_info.hangup_count))
|
|
# 如果是转人工
|
|
# 如果是转人工
|
|
# if 'transferToAgent' == hangup_reason and DeviceType.ROBOT.code == device_info.device_type:
|
|
# if 'transferToAgent' == hangup_reason and DeviceType.ROBOT.code == device_info.device_type:
|
|
# call_info.answer_flag = AnswerFlag.TRANSFER_TO_AGENT.code
|
|
# call_info.answer_flag = AnswerFlag.TRANSFER_TO_AGENT.code
|