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