2020-05-07 21:55:45 +08:00
|
|
|
package com.genersoft.iot.vmp.conf;
|
|
|
|
|
2020-10-16 16:49:41 +08:00
|
|
|
|
2020-05-07 21:55:45 +08:00
|
|
|
import org.springframework.beans.factory.annotation.Value;
|
|
|
|
import org.springframework.context.annotation.Configuration;
|
|
|
|
|
2020-05-10 22:33:21 +08:00
|
|
|
@Configuration("sipConfig")
|
2020-05-07 21:55:45 +08:00
|
|
|
public class SipConfig {
|
|
|
|
|
|
|
|
@Value("${sip.ip}")
|
2021-01-08 11:02:53 +08:00
|
|
|
private String sipIp;
|
2021-06-04 16:31:45 +08:00
|
|
|
|
|
|
|
/**
|
|
|
|
* 默认使用sip.ip
|
|
|
|
*/
|
2021-07-06 16:38:31 +08:00
|
|
|
@Value("${sip.monitor-ip:0.0.0.0}")
|
2021-06-04 16:31:45 +08:00
|
|
|
private String monitorIp;
|
|
|
|
|
2020-05-07 21:55:45 +08:00
|
|
|
@Value("${sip.port}")
|
2021-01-08 11:02:53 +08:00
|
|
|
private Integer sipPort;
|
2021-06-04 16:31:45 +08:00
|
|
|
|
2020-05-07 21:55:45 +08:00
|
|
|
@Value("${sip.domain}")
|
2021-01-08 11:02:53 +08:00
|
|
|
private String sipDomain;
|
2021-06-04 16:31:45 +08:00
|
|
|
|
2020-05-13 20:38:32 +08:00
|
|
|
@Value("${sip.id}")
|
2021-01-08 11:02:53 +08:00
|
|
|
private String sipId;
|
2021-06-04 16:31:45 +08:00
|
|
|
|
2020-05-07 21:55:45 +08:00
|
|
|
@Value("${sip.password}")
|
2021-01-08 11:02:53 +08:00
|
|
|
private String sipPassword;
|
2020-05-07 21:55:45 +08:00
|
|
|
|
|
|
|
@Value("${sip.ptz.speed:50}")
|
|
|
|
Integer speed;
|
|
|
|
|
2021-07-06 16:38:31 +08:00
|
|
|
@Value("${sip.keepalive-timeout:180}")
|
2021-06-07 15:11:53 +08:00
|
|
|
Integer keepaliveTimeOut;
|
|
|
|
|
2021-07-06 16:38:31 +08:00
|
|
|
@Value("${sip.register-time-interval:60}")
|
2021-06-08 15:49:40 +08:00
|
|
|
Integer registerTimeInterval;
|
|
|
|
|
2021-06-04 16:31:45 +08:00
|
|
|
public String getMonitorIp() {
|
|
|
|
return monitorIp;
|
|
|
|
}
|
|
|
|
|
2020-10-16 16:49:41 +08:00
|
|
|
public String getSipIp() {
|
|
|
|
return sipIp;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public Integer getSipPort() {
|
|
|
|
return sipPort;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public String getSipDomain() {
|
|
|
|
return sipDomain;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public String getSipId() {
|
|
|
|
return sipId;
|
|
|
|
}
|
|
|
|
|
|
|
|
public String getSipPassword() {
|
|
|
|
return sipPassword;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public Integer getSpeed() {
|
|
|
|
return speed;
|
|
|
|
}
|
|
|
|
|
2021-06-07 15:11:53 +08:00
|
|
|
public Integer getKeepaliveTimeOut() {
|
|
|
|
return keepaliveTimeOut;
|
|
|
|
}
|
2021-06-07 15:42:01 +08:00
|
|
|
|
2021-06-08 15:49:40 +08:00
|
|
|
public Integer getRegisterTimeInterval() {
|
|
|
|
return registerTimeInterval;
|
|
|
|
}
|
2020-05-07 21:55:45 +08:00
|
|
|
}
|