优化redis存储,alarm默认关闭处理
This commit is contained in:
@@ -29,6 +29,8 @@ public class SipConfig {
|
||||
|
||||
Integer registerTimeInterval = 60;
|
||||
|
||||
private boolean alarm = false;
|
||||
|
||||
public void setIp(String ip) {
|
||||
this.ip = ip;
|
||||
}
|
||||
@@ -104,4 +106,12 @@ public class SipConfig {
|
||||
public Integer getRegisterTimeInterval() {
|
||||
return registerTimeInterval;
|
||||
}
|
||||
|
||||
public boolean isAlarm() {
|
||||
return alarm;
|
||||
}
|
||||
|
||||
public void setAlarm(boolean alarm) {
|
||||
this.alarm = alarm;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -17,9 +17,6 @@ public class WVPTimerTask {
|
||||
@Autowired
|
||||
private IMediaServerService mediaServerService;
|
||||
|
||||
@Autowired
|
||||
private UserSetup userSetup;
|
||||
|
||||
@Value("${server.port}")
|
||||
private int serverPort;
|
||||
|
||||
@@ -31,6 +28,6 @@ public class WVPTimerTask {
|
||||
JSONObject jsonObject = new JSONObject();
|
||||
jsonObject.put("ip", sipConfig.getIp());
|
||||
jsonObject.put("port", serverPort);
|
||||
redisCatchStorage.updateWVPInfo(userSetup.getServerId(), jsonObject, 3);
|
||||
redisCatchStorage.updateWVPInfo(jsonObject, 3);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user