余尚辉 4 months ago
parent
commit
6a258d985a
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/core/callcenter/esl/handler/channel_hangup_handler.py

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

@@ -113,7 +113,7 @@ class ChannelHangupHandler(EslEventHandler):
                 if call_info.answer_time:
                     call_info.end_time = timestamp
                     call_info.talk_time = int(call_info.end_time) - int(call_info.answer_time)
-                    self.dataHandleServer.update_record(call_id, {"time_end": datetime.utcnow(), "times": call_info.talk_time / 1_000_000 })
+                    self.dataHandleServer.update_record(call_id, {"time_end": datetime.utcnow(), "times": int(call_info.talk_time / 1_000_000) })
 
             # 判断挂机方向 && 更新缓存
             self.hangup_dir(call_info, device_info, cause)