【zlm心跳hook】重复查询redis了
变量也不需要多次定义 数据库有的话应该恢复zlm 缓存没有的话需要重新加载缓存
This commit is contained in:
parent
2bf7cdc2df
commit
d6fe626b1c
@ -650,7 +650,12 @@ public class MediaServerServiceImpl implements IMediaServerService {
|
||||
return;
|
||||
}
|
||||
// zlm连接重试
|
||||
logger.warn("[更新ZLM 保活信息]尝试链接默认zml");
|
||||
logger.warn("[更新ZLM 保活信息]尝试链接zml id {}", mediaServerId);
|
||||
SsrcConfig ssrcConfig = new SsrcConfig(mediaServerItem.getId(), null, sipConfig.getDomain());
|
||||
mediaServerItem.setSsrcConfig(ssrcConfig);
|
||||
String key = VideoManagerConstants.MEDIA_SERVER_PREFIX + userSetting.getServerId() + "_" + mediaServerItem.getId();
|
||||
RedisUtil.set(key, mediaServerItem);
|
||||
clearRTPServer(mediaServerItem);
|
||||
}
|
||||
final String zlmKeepaliveKey = zlmKeepaliveKeyPrefix + mediaServerItem.getId();
|
||||
dynamicTask.stop(zlmKeepaliveKey);
|
||||
|
Loading…
Reference in New Issue
Block a user