Commit d8011e9ee7b624bb2641c629e42d81f9665974fc
1 parent
cb1f1417
去除只有udp收流支持ssrc校验的判断
Showing
3 changed files
with
7 additions
and
2 deletions
src/main/java/com/genersoft/iot/vmp/gb28181/transmit/cmd/impl/SIPCommander.java
| ... | ... | @@ -615,15 +615,16 @@ public class SIPCommander implements ISIPCommander { |
| 615 | 615 | public void streamByeCmd(Device device, String channelId, String stream, String callId, SipSubscribe.Event okEvent) throws InvalidArgumentException, SipException, ParseException, SsrcTransactionNotFoundException { |
| 616 | 616 | List<SsrcTransaction> ssrcTransactionList = streamSession.getSsrcTransactionForAll(device.getDeviceId(), channelId, callId, stream); |
| 617 | 617 | if (ssrcTransactionList == null || ssrcTransactionList.isEmpty()) { |
| 618 | + logger.info("[发送BYE] 未找到事务信息,设备: device: {}, channel: {}", device.getDeviceId(), channelId); | |
| 618 | 619 | throw new SsrcTransactionNotFoundException(device.getDeviceId(), channelId, callId, stream); |
| 619 | 620 | } |
| 620 | 621 | |
| 621 | 622 | for (SsrcTransaction ssrcTransaction : ssrcTransactionList) { |
| 623 | + logger.info("[发送BYE] 设备: device: {}, channel: {}, callId: {}", device.getDeviceId(), channelId, ssrcTransaction.getCallId()); | |
| 622 | 624 | mediaServerService.releaseSsrc(ssrcTransaction.getMediaServerId(), ssrcTransaction.getSsrc()); |
| 623 | 625 | |
| 624 | 626 | mediaServerService.closeRTPServer(ssrcTransaction.getMediaServerId(), ssrcTransaction.getStream()); |
| 625 | 627 | streamSession.removeByCallId(ssrcTransaction.getDeviceId(), ssrcTransaction.getChannelId(), ssrcTransaction.getCallId()); |
| 626 | - | |
| 627 | 628 | Request byteRequest = headerProvider.createByteRequest(device, channelId, ssrcTransaction.getSipTransactionInfo()); |
| 628 | 629 | sipSender.transmitRequest(sipLayer.getLocalIp(device.getLocalIp()), byteRequest, null, okEvent); |
| 629 | 630 | } | ... | ... |
src/main/java/com/genersoft/iot/vmp/media/zlm/ZLMHttpHookListener.java
| ... | ... | @@ -534,11 +534,15 @@ public class ZLMHttpHookListener { |
| 534 | 534 | if (info != null) { |
| 535 | 535 | cmder.streamByeCmd(device, inviteInfo.getChannelId(), |
| 536 | 536 | inviteInfo.getStream(), null); |
| 537 | + }else { | |
| 538 | + logger.info("[无人观看] 未找到设备的点播信息: {}, 流:{}", inviteInfo.getDeviceId(), param.getStream()); | |
| 537 | 539 | } |
| 538 | 540 | } catch (InvalidArgumentException | ParseException | SipException | |
| 539 | 541 | SsrcTransactionNotFoundException e) { |
| 540 | 542 | logger.error("[无人观看]点播, 发送BYE失败 {}", e.getMessage()); |
| 541 | 543 | } |
| 544 | + }else { | |
| 545 | + logger.info("[无人观看] 未找到设备: {},流:{}", inviteInfo.getDeviceId(), param.getStream()); | |
| 542 | 546 | } |
| 543 | 547 | |
| 544 | 548 | inviteStreamService.removeInviteInfo(inviteInfo.getType(), inviteInfo.getDeviceId(), | ... | ... |
src/main/java/com/genersoft/iot/vmp/service/impl/MediaServerServiceImpl.java
| ... | ... | @@ -170,7 +170,7 @@ public class MediaServerServiceImpl implements IMediaServerService { |
| 170 | 170 | } |
| 171 | 171 | int rtpServerPort; |
| 172 | 172 | if (mediaServerItem.isRtpEnable()) { |
| 173 | - rtpServerPort = zlmServerFactory.createRTPServer(mediaServerItem, streamId, (ssrcCheck && tcpMode == 0) ? Long.parseLong(ssrc) : 0, port, reUsePort, tcpMode); | |
| 173 | + rtpServerPort = zlmServerFactory.createRTPServer(mediaServerItem, streamId, ssrcCheck ? Long.parseLong(ssrc) : 0, port, reUsePort, tcpMode); | |
| 174 | 174 | } else { |
| 175 | 175 | rtpServerPort = mediaServerItem.getRtpProxyPort(); |
| 176 | 176 | } | ... | ... |