DavidLiu před 3 měsíci
rodič
revize
3630a594c5

+ 3 - 0
src/core/callcenter/esl/handler/channel_hangup_handler.py

@@ -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)