|
@@ -32,7 +32,10 @@ class Callback(object):
|
|
|
event, call_info, device_info = self.event_queue.get(timeout=1)
|
|
|
call_type = CallType.get_by_code(call_info.call_type) if call_info else None
|
|
|
if call_type is None:
|
|
|
+ event_name = EslEventUtil.getEventName(event)
|
|
|
+ self.logger.info("callback:call_type_none:return::event_name=%s, call_info=%s, device_info=%s", event_name, call_info, device_info)
|
|
|
continue
|
|
|
+
|
|
|
if CallType.BOT_CALL == call_type or CallType.INCOMING_BOT_CALL == call_type:
|
|
|
self.choose_thread_pool_executor(event).submit(self.agent_event_service.bot_event_channel, event, call_info, device_info)
|
|
|
else:
|
|
@@ -61,7 +64,7 @@ class Callback(object):
|
|
|
self.logger.info("callback:return::event_name=%s, call_id=%s, device_id=%s", event_name, call_id, device_id)
|
|
|
return
|
|
|
device_info = call_info.device_info_map.get(device_id) if call_info and call_info.device_info_map else None
|
|
|
- # self.logger.info("callback::event_name=%s, call_id=%s, device_id=%s", event_name, call_id, device_id)
|
|
|
+ self.logger.info("callback::event_name=%s, call_id=%s, device_id=%s", event_name, call_id, device_id)
|
|
|
self.event_queue.put_nowait((event, call_info, device_info))
|
|
|
|
|
|
|