|
@@ -46,9 +46,9 @@ class ChannelAnswerHandler(EslEventHandler):
|
|
|
device_info.ring_end_time = EslEventUtil.getEventDateTimestamp(event)
|
|
|
call_info.answer_count = call_info.answer_count + 1
|
|
|
call_info.next_commands.remove(next_command)
|
|
|
- self.logger.info("ysChannelAnswerHandler call_info.answer_time::%s,time:%s", call_info.answer_time, EslEventUtil.getEventDateTimestamp(event))
|
|
|
- if not call_info.answer_time:
|
|
|
- call_info.answer_time = EslEventUtil.getEventDateTimestamp(event)
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
|
|
|
if NextType.NEXT_CALL_OTHER.code == next_command.next_type:
|
|
|
self.call_other(call_info, device_info, event)
|
|
@@ -62,11 +62,11 @@ class ChannelAnswerHandler(EslEventHandler):
|
|
|
self.logger.warn("can not match command :%s, callId :%s", next_command.next_type, call_id)
|
|
|
self.cache.add_call_info(call_info)
|
|
|
|
|
|
- if device_info.device_type == DeviceType.AGENT.code:
|
|
|
- self.logger.info('坐席接听')
|
|
|
- self.dataHandleServer.update_record(call_id, {"status": 1})
|
|
|
- self.push_handler.push_on_agent_work_report(call_info.saas_id, call_info.cti_flow_id, call_info.agent_key, call_info.call_id, AgentScene.ROBOT,WorkStatus.AGENT_ANSWER_INCOMING)
|
|
|
- self.dataHandleServer.update_agent_monitor_service_state(call_info.agent_key,AgentServiceState.CALLING.code)
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
|
|
|
self.logger.info("lwanswer call_id:%s, call_info:%s, event:%s" % (call_id, call_info, json.loads(event.serialize('json'))))
|
|
|
|