|
@@ -34,7 +34,10 @@ class ChannelHangupHandler(EslEventHandler):
|
|
|
# self.logger.info(json.loads(event.serialize('json')))
|
|
|
try:
|
|
|
call_id = EslEventUtil.getCallId(event)
|
|
|
+ device_id = EslEventUtil.getDeviceId(event)
|
|
|
self.logger.info('call_id is %s, event=%s', call_id, json.loads(event.serialize('json')) )
|
|
|
+ if not call_id:
|
|
|
+ call_id = self.cache.get_call_id_by_device_id(device_id)
|
|
|
if not call_id:
|
|
|
other_leg_device_id = event.getHeader("variable_bridge_uuid")
|
|
|
call_id = self.cache.get_call_id_by_device_id(other_leg_device_id)
|