648540858
2022-05-06 5d901b5e3f033e8b04e53420d68626cbd87431c8
src/main/java/com/genersoft/iot/vmp/gb28181/transmit/cmd/SIPRequestHeaderProvider.java
@@ -225,11 +225,16 @@
      return request;
   }
   public Request createInfoRequest(Device device, StreamInfo streamInfo, String content, Long cseq)
   public Request createInfoRequest(Device device, StreamInfo streamInfo, String content)
         throws PeerUnavailableException, ParseException, InvalidArgumentException {
      Request request = null;
      if (streamInfo == null) return null;
      if (streamInfo == null) {
         return null;
      }
      Dialog dialog = streamSession.getDialogByStream(streamInfo.getDeviceID(), streamInfo.getChannelId(), streamInfo.getStream());
      if (dialog == null) {
         return null;
      }
      SipURI requestLine = sipFactory.createAddressFactory().createSipURI(device.getDeviceId(),
            device.getHostAddress());
@@ -255,8 +260,8 @@
      // Forwards
      MaxForwardsHeader maxForwards = sipFactory.createHeaderFactory().createMaxForwardsHeader(70);
      cseq = redisCatchStorage.getCSEQ(Request.INVITE);
      Long cseq = redisCatchStorage.getCSEQ(Request.INVITE);
      // ceq
      CSeqHeader cSeqHeader = sipFactory.createHeaderFactory()
            .createCSeqHeader(cseq, Request.INFO);