mirror of
https://gitee.com/pan648540858/wvp-GB28181-pro.git
synced 2026-05-27 07:27:49 +08:00
Compare commits
3 Commits
c8a6bde19f
...
d935462460
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
d935462460 | ||
|
|
80d35b3231 | ||
|
|
bed4e79061 |
@ -1,4 +1,4 @@
|
|||||||
FROM ringcentral/jdk:11 AS builder
|
FROM ringcentral/jdk:21 AS builder
|
||||||
|
|
||||||
EXPOSE 18978/tcp
|
EXPOSE 18978/tcp
|
||||||
EXPOSE 8116/tcp
|
EXPOSE 8116/tcp
|
||||||
@ -56,11 +56,11 @@ COPY . /build
|
|||||||
WORKDIR /build
|
WORKDIR /build
|
||||||
RUN ls && mvn clean package -Dmaven.test.skip=true
|
RUN ls && mvn clean package -Dmaven.test.skip=true
|
||||||
WORKDIR /build/target
|
WORKDIR /build/target
|
||||||
#确保文件名一致
|
#确保文件名一致
|
||||||
RUN mv wvp-pro-*.jar wvp.jar
|
RUN mv wvp-pro-*.jar wvp.jar
|
||||||
|
|
||||||
|
|
||||||
FROM ringcentral/jdk:11
|
FROM ringcentral/jdk:21
|
||||||
RUN mkdir -p /opt/wvp
|
RUN mkdir -p /opt/wvp
|
||||||
WORKDIR /opt/wvp
|
WORKDIR /opt/wvp
|
||||||
COPY --from=builder /build/target /opt/wvp
|
COPY --from=builder /build/target /opt/wvp
|
||||||
|
|||||||
@ -2,7 +2,6 @@ package com.genersoft.iot.vmp.gb28181.transmit.event.request.impl;
|
|||||||
|
|
||||||
import com.genersoft.iot.vmp.common.InviteSessionType;
|
import com.genersoft.iot.vmp.common.InviteSessionType;
|
||||||
import com.genersoft.iot.vmp.common.VideoManagerConstants;
|
import com.genersoft.iot.vmp.common.VideoManagerConstants;
|
||||||
import com.genersoft.iot.vmp.common.enums.ChannelDataType;
|
|
||||||
import com.genersoft.iot.vmp.conf.DynamicTask;
|
import com.genersoft.iot.vmp.conf.DynamicTask;
|
||||||
import com.genersoft.iot.vmp.conf.SipConfig;
|
import com.genersoft.iot.vmp.conf.SipConfig;
|
||||||
import com.genersoft.iot.vmp.conf.UserSetting;
|
import com.genersoft.iot.vmp.conf.UserSetting;
|
||||||
@ -40,6 +39,7 @@ import javax.sip.RequestEvent;
|
|||||||
import javax.sip.SipException;
|
import javax.sip.SipException;
|
||||||
import javax.sip.header.CallIdHeader;
|
import javax.sip.header.CallIdHeader;
|
||||||
import javax.sip.message.Response;
|
import javax.sip.message.Response;
|
||||||
|
import java.security.SecureRandom;
|
||||||
import java.text.ParseException;
|
import java.text.ParseException;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import java.util.Vector;
|
import java.util.Vector;
|
||||||
@ -481,6 +481,13 @@ public class InviteRequestProcessor extends SIPRequestProcessorParent implements
|
|||||||
try {
|
try {
|
||||||
Gb28181Sdp gb28181Sdp = SipUtils.parseSDP(contentString);
|
Gb28181Sdp gb28181Sdp = SipUtils.parseSDP(contentString);
|
||||||
SessionDescription sdp = gb28181Sdp.getBaseSdb();
|
SessionDescription sdp = gb28181Sdp.getBaseSdb();
|
||||||
|
|
||||||
|
if (ObjectUtils.isEmpty(gb28181Sdp.getSsrc()) ) {
|
||||||
|
String ssrc = Integer.toUnsignedString(new SecureRandom().nextInt());
|
||||||
|
log.warn("来自设备的Invite请求,未携带SSRC,生成随机ssrc: {},requesterId: {}/{}", ssrc, inviteInfo.getRequesterId(), inviteInfo.getSourceChannelId());
|
||||||
|
gb28181Sdp.setSsrc(ssrc);
|
||||||
|
}
|
||||||
|
|
||||||
// 获取支持的格式
|
// 获取支持的格式
|
||||||
Vector mediaDescriptions = sdp.getMediaDescriptions(true);
|
Vector mediaDescriptions = sdp.getMediaDescriptions(true);
|
||||||
|
|
||||||
@ -622,7 +629,9 @@ public class InviteRequestProcessor extends SIPRequestProcessorParent implements
|
|||||||
content.append("a=setup:passive\r\n");
|
content.append("a=setup:passive\r\n");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if (ssrc != null) {
|
||||||
content.append("y=" + ssrc + "\r\n");
|
content.append("y=" + ssrc + "\r\n");
|
||||||
|
}
|
||||||
content.append("f=v/////a/1/8/1\r\n");
|
content.append("f=v/////a/1/8/1\r\n");
|
||||||
|
|
||||||
Platform parentPlatform = new Platform();
|
Platform parentPlatform = new Platform();
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user