|
@@ -170,20 +170,16 @@ class AgentEventService:
|
|
called = (device_info.caller if is_agent else device_info.called) if device_info else None
|
|
called = (device_info.caller if is_agent else device_info.called) if device_info else None
|
|
human_service_id = '00000000000000000'
|
|
human_service_id = '00000000000000000'
|
|
|
|
|
|
- self.logger.info('bot_event_channel, event_name=%s, call_id=%s, is_agent=%s, agent_num=%s', event_name, call_id, is_agent, agent_num)
|
|
|
|
|
|
+ if CHANNEL_ANSWER == event_name:
|
|
|
|
+ self.logger.info('bot_event_channel, event_name=%s, call_id=%s, is_agent=%s, agent_num=%s, call_info=%s', event_name, call_id, is_agent, agent_num, call_info)
|
|
|
|
+
|
|
agent = self.data_handle_server.get_agent(saas_id, agent_num)
|
|
agent = self.data_handle_server.get_agent(saas_id, agent_num)
|
|
if not agent:
|
|
if not agent:
|
|
# self.logger.warn("bot event service channel agent is null %s %s %s %s %s", saas_id, event_name, caller, called,
|
|
# self.logger.warn("bot event service channel agent is null %s %s %s %s %s", saas_id, event_name, caller, called,
|
|
# json.dumps(event.serialize('json')))
|
|
# json.dumps(event.serialize('json')))
|
|
- self.logger.info('bot_event_channel, agent is null, return event_name=%s, call_id=%s, is_agent=%s, agent_num=%s', event_name,
|
|
|
|
- call_id, is_agent, agent_num)
|
|
|
|
return
|
|
return
|
|
agent_monitor = self.data_handle_server.get_agent_monitor(saas_id, agent_num)
|
|
agent_monitor = self.data_handle_server.get_agent_monitor(saas_id, agent_num)
|
|
if not agent_monitor:
|
|
if not agent_monitor:
|
|
- self.logger.info(
|
|
|
|
- 'bot_event_channel, agent monitor is null, return event_name=%s, call_id=%s, is_agent=%s, agent_num=%s',
|
|
|
|
- event_name,
|
|
|
|
- call_id, is_agent, agent_num)
|
|
|
|
# self.logger.warn("bot event service channel agentMonitor is null %s %s %s %s %s", saas_id, event_name, caller,
|
|
# self.logger.warn("bot event service channel agentMonitor is null %s %s %s %s %s", saas_id, event_name, caller,
|
|
# called, json.dumps(event.serialize('json')))
|
|
# called, json.dumps(event.serialize('json')))
|
|
return
|
|
return
|