修复录像回放中的信令错误

This commit is contained in:
648540858
2022-08-15 15:08:51 +08:00
parent 2591997dfc
commit c041aaccb4
10 changed files with 179 additions and 101 deletions

View File

@@ -17,10 +17,9 @@ public interface IRedisCatchStorage {
/**
* 计数器。为cseq进行计数
*
* @param method sip 方法
* @return
*/
Long getCSEQ(String method);
Long getCSEQ();
/**
* 开始播放时将流存入

View File

@@ -42,8 +42,8 @@ public class RedisCatchStorageImpl implements IRedisCatchStorage {
private UserSetting userSetting;
@Override
public Long getCSEQ(String method) {
String key = VideoManagerConstants.SIP_CSEQ_PREFIX + userSetting.getServerId() + "_" + method;
public Long getCSEQ() {
String key = VideoManagerConstants.SIP_CSEQ_PREFIX + userSetting.getServerId();
long result = redis.incr(key, 1L);
if (result > Integer.MAX_VALUE) {