修复CSEQ重置错误 #1449

This commit is contained in:
648540858
2024-05-28 10:23:17 +08:00
parent de390d3982
commit c69b64c756
3 changed files with 18 additions and 29 deletions

View File

@@ -82,12 +82,8 @@ public class RedisCatchStorageImpl implements IRedisCatchStorage {
@Override
public void resetAllCSEQ() {
String scanKey = VideoManagerConstants.SIP_CSEQ_PREFIX + userSetting.getServerId() + "_*";
List<Object> keys = RedisUtil.scan(redisTemplate, scanKey);
for (Object o : keys) {
String key = (String) o;
redisTemplate.opsForValue().set(key, 1);
}
String key = VideoManagerConstants.SIP_CSEQ_PREFIX + userSetting.getServerId();
redisTemplate.opsForValue().set(key, 1);
}
@Override