diff --git a/gb28181-service/src/main/java/cn/skcks/docking/gb28181/service/play/PlayService.java b/gb28181-service/src/main/java/cn/skcks/docking/gb28181/service/play/PlayService.java index a252b1d..09bc0bf 100644 --- a/gb28181-service/src/main/java/cn/skcks/docking/gb28181/service/play/PlayService.java +++ b/gb28181-service/src/main/java/cn/skcks/docking/gb28181/service/play/PlayService.java @@ -204,6 +204,7 @@ public class PlayService { subscribe.getSipResponseSubscribe().delPublisher(subscribeKey); } }; + // 1小时自动关闭 byeSubscribe(inviteRequestBuilder,provider,callId,3600,()->{ RedisUtil.KeyOps.delete(key); });