DavidLiu 3 months ago
parent
commit
8224a3aca4
1 changed files with 0 additions and 5 deletions
  1. 0 5
      src/core/callcenter/callback.py

+ 0 - 5
src/core/callcenter/callback.py

@@ -31,9 +31,6 @@ class Callback(object):
             try:
                 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
-                # event_name = EslEventUtil.getEventName(event)
-                # if 'CHANNEL_HANGUP' == event_name:
-                #     self.logger.info("callback::call_type=%s, call_info=%s, event=%s", call_type, call_info, json.loads(event.serialize('json')))
                 if call_type is None:
                     continue
                 if CallType.BOT_CALL == call_type or CallType.INCOMING_BOT_CALL == call_type:
@@ -60,8 +57,6 @@ class Callback(object):
         if not call_id and device_id:
             call_id = self.cache.get_call_id_by_device_id(device_id)
         call_info = self.cache.get_call_info(call_id)
-        # if 'CHANNEL_HANGUP' == event_name:
-        #     self.logger.info("callback::call_id=%s, device_id=%s, call_info=%s, event=%s", call_id, device_id, call_info, json.loads(event.serialize('json')))
         if not call_info:
             # self.logger.info("callback:return::event_name=%s, call_id=%s, device_id=%s", event_name, call_id, device_id)
             return