余尚辉 4 月之前
父節點
當前提交
6291f3c885
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      src/core/callcenter/esl/handler/channel_hangup_handler.py

+ 2 - 2
src/core/callcenter/esl/handler/channel_hangup_handler.py

@@ -107,8 +107,8 @@ class ChannelHangupHandler(EslEventHandler):
                 # self.inbound_client.hangup_call(call_id, device_id, CallCause.HANGUP_EVENT)
 
             # 全部挂机以后推送挂机状态
-            self.logger.info('yushanghui::count %s', count)
-            if count == 0:
+            self.logger.info('yushanghui::call_info.device_list %s', call_info.device_list)
+            if len(call_info.device_list) == 0:
                 # 计算当前通话时长
                 if call_info.answer_time:
                     call_info.end_time = timestamp