Commit ef5018de2d86bd4728a75ddc0eccd11b812375dc

Authored by 648540858
1 parent 668dc8f0

修复合并错误

src/main/java/com/genersoft/iot/vmp/conf/MediaConfig.java
@@ -233,12 +233,4 @@ public class MediaConfig{ @@ -233,12 +233,4 @@ public class MediaConfig{
233 } 233 }
234 return false; 234 return false;
235 } 235 }
236 -  
237 - public String getRtpSendPortRange() {  
238 - return rtpSendPortRange;  
239 - }  
240 -  
241 - public void setRtpSendPortRange(String rtpSendPortRange) {  
242 - this.rtpSendPortRange = rtpSendPortRange;  
243 - }  
244 } 236 }
src/main/java/com/genersoft/iot/vmp/gb28181/conf/ServerLoggerImpl.java
1 package com.genersoft.iot.vmp.gb28181.conf; 1 package com.genersoft.iot.vmp.gb28181.conf;
2 2
  3 +import gov.nist.core.CommonLogger;
3 import gov.nist.core.ServerLogger; 4 import gov.nist.core.ServerLogger;
4 import gov.nist.core.StackLogger; 5 import gov.nist.core.StackLogger;
5 import gov.nist.javax.sip.message.SIPMessage; 6 import gov.nist.javax.sip.message.SIPMessage;
@@ -84,7 +85,7 @@ public class ServerLoggerImpl implements ServerLogger { @@ -84,7 +85,7 @@ public class ServerLoggerImpl implements ServerLogger {
84 } 85 }
85 if(sipStack instanceof SIPTransactionStack) { 86 if(sipStack instanceof SIPTransactionStack) {
86 this.sipStack = (SIPTransactionStack)sipStack; 87 this.sipStack = (SIPTransactionStack)sipStack;
87 - this.stackLogger = this.sipStack.getStackLogger(); 88 + this.stackLogger = CommonLogger.getLogger(SIPTransactionStack.class);
88 } 89 }
89 } 90 }
90 } 91 }
src/main/java/com/genersoft/iot/vmp/vmanager/rtp/RtpController.java
@@ -7,16 +7,12 @@ import com.genersoft.iot.vmp.conf.UserSetting; @@ -7,16 +7,12 @@ import com.genersoft.iot.vmp.conf.UserSetting;
7 import com.genersoft.iot.vmp.conf.exception.ControllerException; 7 import com.genersoft.iot.vmp.conf.exception.ControllerException;
8 import com.genersoft.iot.vmp.media.zlm.SendRtpPortManager; 8 import com.genersoft.iot.vmp.media.zlm.SendRtpPortManager;
9 import com.genersoft.iot.vmp.media.zlm.ZLMServerFactory; 9 import com.genersoft.iot.vmp.media.zlm.ZLMServerFactory;
10 -import com.genersoft.iot.vmp.media.zlm.SendRtpPortManager;  
11 -import com.genersoft.iot.vmp.media.zlm.ZLMRTPServerFactory;  
12 import com.genersoft.iot.vmp.media.zlm.ZlmHttpHookSubscribe; 10 import com.genersoft.iot.vmp.media.zlm.ZlmHttpHookSubscribe;
13 import com.genersoft.iot.vmp.media.zlm.dto.HookSubscribeFactory; 11 import com.genersoft.iot.vmp.media.zlm.dto.HookSubscribeFactory;
14 import com.genersoft.iot.vmp.media.zlm.dto.HookSubscribeForRtpServerTimeout; 12 import com.genersoft.iot.vmp.media.zlm.dto.HookSubscribeForRtpServerTimeout;
15 import com.genersoft.iot.vmp.media.zlm.dto.HookSubscribeForStreamChange; 13 import com.genersoft.iot.vmp.media.zlm.dto.HookSubscribeForStreamChange;
16 import com.genersoft.iot.vmp.media.zlm.dto.MediaServerItem; 14 import com.genersoft.iot.vmp.media.zlm.dto.MediaServerItem;
17 import com.genersoft.iot.vmp.media.zlm.dto.hook.OnRtpServerTimeoutHookParam; 15 import com.genersoft.iot.vmp.media.zlm.dto.hook.OnRtpServerTimeoutHookParam;
18 -import com.genersoft.iot.vmp.service.IDeviceChannelService;  
19 -import com.genersoft.iot.vmp.service.IDeviceService;  
20 import com.genersoft.iot.vmp.service.IMediaServerService; 16 import com.genersoft.iot.vmp.service.IMediaServerService;
21 import com.genersoft.iot.vmp.utils.redis.RedisUtil; 17 import com.genersoft.iot.vmp.utils.redis.RedisUtil;
22 import com.genersoft.iot.vmp.vmanager.bean.ErrorCode; 18 import com.genersoft.iot.vmp.vmanager.bean.ErrorCode;
@@ -39,7 +35,6 @@ import java.util.List; @@ -39,7 +35,6 @@ import java.util.List;
39 import java.util.Map; 35 import java.util.Map;
40 import java.util.UUID; 36 import java.util.UUID;
41 import java.util.concurrent.TimeUnit; 37 import java.util.concurrent.TimeUnit;
42 -import java.util.concurrent.TimeUnit;  
43 38
44 @SuppressWarnings("rawtypes") 39 @SuppressWarnings("rawtypes")
45 @Tag(name = "第三方服务对接") 40 @Tag(name = "第三方服务对接")
@@ -63,15 +58,11 @@ public class RtpController { @@ -63,15 +58,11 @@ public class RtpController {
63 private IMediaServerService mediaServerService; 58 private IMediaServerService mediaServerService;
64 59
65 @Autowired 60 @Autowired
66 - private SendRtpPortManager sendRtpPortManager;  
67 -  
68 - @Autowired  
69 private UserSetting userSetting; 61 private UserSetting userSetting;
70 62
71 @Autowired 63 @Autowired
72 private DynamicTask dynamicTask; 64 private DynamicTask dynamicTask;
73 65
74 -  
75 @Autowired 66 @Autowired
76 private RedisTemplate<Object, Object> redisTemplate; 67 private RedisTemplate<Object, Object> redisTemplate;
77 68
@@ -136,7 +127,7 @@ public class RtpController { @@ -136,7 +127,7 @@ public class RtpController {
136 } 127 }
137 }); 128 });
138 } 129 }
139 - String key = VideoManagerConstants.WVP_OTHER_SEND_RTP_INFO + userSetting.getServerId() + callId; 130 + String key = VideoManagerConstants.WVP_OTHER_SEND_RTP_INFO + userSetting.getServerId() + "_" + callId;
140 OtherRtpSendInfo otherRtpSendInfo = new OtherRtpSendInfo(); 131 OtherRtpSendInfo otherRtpSendInfo = new OtherRtpSendInfo();
141 otherRtpSendInfo.setReceiveIp(mediaServerItem.getSdpIp()); 132 otherRtpSendInfo.setReceiveIp(mediaServerItem.getSdpIp());
142 otherRtpSendInfo.setReceivePortForVideo(localPortForVideo); 133 otherRtpSendInfo.setReceivePortForVideo(localPortForVideo);
@@ -147,7 +138,6 @@ public class RtpController { @@ -147,7 +138,6 @@ public class RtpController {
147 // 将信息写入redis中,以备后用 138 // 将信息写入redis中,以备后用
148 redisTemplate.opsForValue().set(receiveKey, otherRtpSendInfo); 139 redisTemplate.opsForValue().set(receiveKey, otherRtpSendInfo);
149 if (isSend != null && isSend) { 140 if (isSend != null && isSend) {
150 - String key = VideoManagerConstants.WVP_OTHER_SEND_RTP_INFO + userSetting.getServerId() + "_" + callId;  
151 // 预创建发流信息 141 // 预创建发流信息
152 int portForVideo = sendRtpPortManager.getNextPort(mediaServerItem.getId()); 142 int portForVideo = sendRtpPortManager.getNextPort(mediaServerItem.getId());
153 int portForAudio = sendRtpPortManager.getNextPort(mediaServerItem.getId()); 143 int portForAudio = sendRtpPortManager.getNextPort(mediaServerItem.getId());
src/main/java/com/genersoft/iot/vmp/web/gb28181/ApiDeviceController.java
@@ -18,7 +18,6 @@ import org.slf4j.Logger; @@ -18,7 +18,6 @@ import org.slf4j.Logger;
18 import org.slf4j.LoggerFactory; 18 import org.slf4j.LoggerFactory;
19 import org.springframework.beans.factory.annotation.Autowired; 19 import org.springframework.beans.factory.annotation.Autowired;
20 import org.springframework.util.ObjectUtils; 20 import org.springframework.util.ObjectUtils;
21 -import org.springframework.util.StringUtils;  
22 import org.springframework.web.bind.annotation.RequestMapping; 21 import org.springframework.web.bind.annotation.RequestMapping;
23 import org.springframework.web.bind.annotation.RequestParam; 22 import org.springframework.web.bind.annotation.RequestParam;
24 import org.springframework.web.bind.annotation.RestController; 23 import org.springframework.web.bind.annotation.RestController;
@@ -115,20 +114,11 @@ public class ApiDeviceController { @@ -115,20 +114,11 @@ public class ApiDeviceController {
115 @RequestParam(required = false)String q, 114 @RequestParam(required = false)String q,
116 @RequestParam(required = false)Boolean online ){ 115 @RequestParam(required = false)Boolean online ){
117 116
118 -// if (logger.isDebugEnabled()) {  
119 -// logger.debug("查询所有视频设备API调用");  
120 -// } 117 +
121 JSONObject result = new JSONObject(); 118 JSONObject result = new JSONObject();
122 - // 查询设备是否存在  
123 -// Device device = storager.queryVideoDevice(serial);  
124 -// if (device == null) {  
125 -// result.put("ChannelCount", 0);  
126 -// result.put("ChannelList", "[]");  
127 -// return result;  
128 -// }  
129 List<DeviceChannelExtend> deviceChannels; 119 List<DeviceChannelExtend> deviceChannels;
130 List<String> channelIds = null; 120 List<String> channelIds = null;
131 - if (!StringUtils.isEmpty(code)) { 121 + if (!ObjectUtils.isEmpty(code)) {
132 String[] split = code.trim().split(","); 122 String[] split = code.trim().split(",");
133 channelIds = Arrays.asList(split); 123 channelIds = Arrays.asList(split);
134 } 124 }
src/main/resources/wvpssl.jks deleted 100644 → 0
No preview for this file type