648540858
2022-09-02 7db2bf7b51015a7e989ea5b0f4d9486dfd99d4bd
src/main/java/com/genersoft/iot/vmp/gb28181/transmit/event/request/impl/ByeRequestProcessor.java
@@ -107,13 +107,9 @@
                     cmder.streamByeCmd(sendRtpItem.getDeviceId(), channelId, streamId, null);
                  }
                  if (sendRtpItem.getPlayType().equals(InviteStreamType.PUSH)) {
                     MessageForPushChannel messageForPushChannel = new MessageForPushChannel();
                     messageForPushChannel.setType(0);
                     messageForPushChannel.setGbId(sendRtpItem.getChannelId());
                     messageForPushChannel.setApp(sendRtpItem.getApp());
                     messageForPushChannel.setStream(sendRtpItem.getStreamId());
                     messageForPushChannel.setMediaServerId(sendRtpItem.getMediaServerId());
                     messageForPushChannel.setPlatFormId(sendRtpItem.getPlatformId());
                     MessageForPushChannel messageForPushChannel = MessageForPushChannel.getInstance(0,
                           sendRtpItem.getApp(), sendRtpItem.getStreamId(), sendRtpItem.getChannelId(),
                           sendRtpItem.getPlatformId(), null, null, sendRtpItem.getMediaServerId());
                     redisCatchStorage.sendStreamPushRequestedMsg(messageForPushChannel);
                  }
               }
@@ -130,7 +126,7 @@
               SsrcTransaction ssrcTransactionForPlay = streamSession.getSsrcTransaction(device.getDeviceId(), channelId, "play", null);
               if (ssrcTransactionForPlay != null){
                  SIPDialog dialogForPlay = (SIPDialog) SerializeUtils.deSerialize(ssrcTransactionForPlay.getDialog());
                  if (dialogForPlay.getCallId().equals(callIdHeader.getCallId())){
                  if (dialogForPlay.getCallId().getCallId().equals(callIdHeader.getCallId())){
                     // 释放ssrc
                     MediaServerItem mediaServerItem = mediaServerService.getOne(ssrcTransactionForPlay.getMediaServerId());
                     if (mediaServerItem != null) {