|
@@ -31,7 +31,9 @@ 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
|
|
|
- self.logger.info("callback::call_type=%s, call_info=%s, event=%s", call_type, call_info, json.loads(event.serialize('json')))
|
|
|
+ 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:
|