|
@@ -34,20 +34,20 @@ class ChannelHangupHandler(EslEventHandler):
|
|
|
# self.logger.info(json.loads(event.serialize('json')))
|
|
|
try:
|
|
|
call_id = self.get_call_id(event)
|
|
|
- self.logger.info('call_id is %s', call_id)
|
|
|
+ device_id = EslEventUtil.getDeviceId(event)
|
|
|
+ self.logger.info('hangup call_id:%s, device_id:%s', call_id, device_id)
|
|
|
if not call_id:
|
|
|
self.release(event)
|
|
|
self.logger.info("call_id is null, event=%s", json.loads(event.serialize('json')))
|
|
|
return
|
|
|
|
|
|
call_info = self.cache.get_call_info(call_id)
|
|
|
- self.logger.info('call_info is %s', call_info)
|
|
|
+ self.logger.info('hangup call_id:%s, device_id:%s, call_info: %s', call_id, device_id, call_info)
|
|
|
if not call_info:
|
|
|
self.release(event)
|
|
|
self.logger.info("call_info:%s is null", call_id)
|
|
|
return
|
|
|
|
|
|
- device_id = EslEventUtil.getDeviceId(event)
|
|
|
device_info = call_info.device_info_map.get(device_id)
|
|
|
if not device_info:
|
|
|
self.release(event)
|
|
@@ -58,7 +58,7 @@ class ChannelHangupHandler(EslEventHandler):
|
|
|
self.release(event)
|
|
|
|
|
|
count = len(call_info.device_list)
|
|
|
- self.logger.info('ChannelHangupHandler, call_id=%s, device_id=%s, count=%s'% (call_id, device_id, count))
|
|
|
+ self.logger.info('hangup, call_id=%s, device_id=%s, count=%s'% (call_id, device_id, count))
|
|
|
try:
|
|
|
call_info.device_list.remove(device_id)
|
|
|
except:
|