pull/1023/head
chenzhangyue 2023-08-09 10:59:17 +08:00
parent 0bf0bb2ab7
commit 9c33a7ef10
5 changed files with 13 additions and 8 deletions

View File

@ -43,7 +43,7 @@ start()
then
echo "ERROR: jar file not found"
else
nohup java $JAVA_OPT -Djava.security.egd=file:/dev/./urandom -jar $PWD/$JARFILE > nohup.out 2>&1 &
nohup java $JAVA_OPT -Djava.security.egd=file:/dev/./urandom -jar -Dspring.config.location=./application-prod.yml $PWD/$JARFILE --spring.profiles.active=prod > nohup.out 2>&1 &
echo $! > $PID_FILE
echo "Application $JARFILE starting..."
tail -f nohup.out

View File

@ -12,7 +12,10 @@ import org.springframework.core.annotation.Order;
import org.springframework.core.io.ClassPathResource;
import org.springframework.util.ObjectUtils;
import java.io.*;
import java.io.BufferedReader;
import java.io.File;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.nio.file.Files;
import java.util.Map;

View File

@ -20,6 +20,8 @@ public interface ISIPCommanderForPlatform {
void register(ParentPlatform parentPlatform, SipSubscribe.Event errorEvent , SipSubscribe.Event okEvent) throws InvalidArgumentException, ParseException, SipException;
void register(ParentPlatform parentPlatform, SipTransactionInfo sipTransactionInfo, SipSubscribe.Event errorEvent , SipSubscribe.Event okEvent) throws InvalidArgumentException, ParseException, SipException;
void register(ParentPlatform parentPlatform, SipTransactionInfo sipTransactionInfo, WWWAuthenticateHeader www, SipSubscribe.Event errorEvent , SipSubscribe.Event okEvent, boolean isRegister) throws SipException, InvalidArgumentException, ParseException;
/**

View File

@ -1,5 +1,6 @@
package com.genersoft.iot.vmp.utils.redis;
import com.google.common.collect.Lists;
import org.springframework.data.redis.core.Cursor;
import org.springframework.data.redis.core.RedisCallback;
import org.springframework.data.redis.core.RedisTemplate;
@ -38,7 +39,7 @@ public class RedisUtil {
return keys;
});
return new ArrayList<>(resultKeys);
return Lists.newArrayList(resultKeys);
}
}

View File

@ -77,7 +77,7 @@ media:
# [必须修改] zlm服务器的内网IP
ip: 172.19.128.50
# [必须修改] zlm服务器的http.port
http-port: 80
http-port: 9092
# [可选] 返回流地址时的ip置空使用 media.ip
stream-ip: 172.19.128.50
# [可选] wvp在国标信令中使用的ip此ip为摄像机可以访问到的ip 置空使用 media.ip
@ -87,7 +87,7 @@ media:
# [可选] zlm服务器的http.sslport, 置空使用zlm配置文件配置
http-ssl-port: 443
# [可选] zlm服务器的hook.admin_params=secret
secret: 035c73f7-bb6b-4889-a715-d9eb2d1925cc
secret: 1000
# 启用多端口模式, 多端口模式使用端口区分每路流,兼容性更好。 单端口使用流的ssrc区分 点播超时建议使用多端口测试
rtp:
# [可选] 是否启用多端口模式, 开启后会在portRange范围内选择端口用于媒体流传输
@ -108,10 +108,9 @@ user-settings:
device-status-notify: true
# 跨域配置,配置你访问前端页面的地址即可, 可以配置多个
allowed-origins:
- http://localhost:8080
- http://127.0.0.1:8080
- http://172.19.128.50:8080
- http://localhost:9091
- http://127.0.0.1:9091
- http://172.19.128.50:9091
# [可选] 日志配置, 一般不需要改
logging:
config: classpath:logback-spring-local.xml