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