|
@@ -37,10 +37,10 @@ class ChannelAnswerHandler(EslEventHandler):
|
|
|
return
|
|
|
|
|
|
if CallType.AGENT_CALL.code == call_info.call_type and device_info.device_type == DeviceType.CUSTOMER.code:
|
|
|
- device_info.record = self.record(event, device_id)
|
|
|
+ self.record(event, device_id)
|
|
|
|
|
|
if (CallType.BOT_CALL.code == call_info.call_type or CallType.INCOMING_BOT_CALL.code == call_info.call_type) and device_info.device_type == DeviceType.ROBOT.code:
|
|
|
- device_info.record = self.record(event, device_id)
|
|
|
+ self.record(event, device_id)
|
|
|
call_info.answer_flag = AnswerFlag.ROBOT_ANSWER.code
|
|
|
registry.CALL_BOT_ANSWER_REQUESTS.labels(f"{call_info.bucket_type}").inc()
|
|
|
|
|
@@ -111,7 +111,7 @@ class ChannelAnswerHandler(EslEventHandler):
|
|
|
self.logger.info("开始桥接电话: callId:%s, caller:%s, called:%s, device1:%s, device2:%s"% (call.call_id,
|
|
|
call.caller, call.called, next_command.device_id, next_command.next_value))
|
|
|
self.logger.info("liuwei::debugger::answer, 33333")
|
|
|
- device.record = self.record(event, device_id=device.device_id)
|
|
|
+ self.record(event, device_id=device.device_id)
|
|
|
device1 = call.device_info_map.get(next_command.device_id)
|
|
|
device2 = call.device_info_map.get(next_command.next_value)
|
|
|
|
|
@@ -129,9 +129,7 @@ class ChannelAnswerHandler(EslEventHandler):
|
|
|
device_id = EslEventUtil.getDeviceId(event)
|
|
|
call.answer_flag = AnswerFlag.AGENT_ANSWER.code
|
|
|
registry.CALL_BOT_TRANSFER_REQUESTS.labels(f"{call.bucket_type}").inc()
|
|
|
-
|
|
|
- device_info = call.device_info_map.get(device_id)
|
|
|
- device_info.record = self.record(event, device_id)
|
|
|
+ self.record(event, device_id)
|
|
|
|
|
|
call.next_commands.append(NextCommand(call.device_list[0], NextType.NEXT_TRANSFER_SUCCESS.code, device_id))
|
|
|
self.logger.info("转接电话中 callId:%s, from:%s, to:%s "% (call.call_id, device_id, next_command.next_value))
|