|  |  | 
 |  |  | 
 | 
 |  |  |       // Event
 | 
 |  |  |       EventHeader eventHeader = sipFactory.createHeaderFactory().createEventHeader(event);
 | 
 |  |  | 
 | 
 |  |  |       int random = (int)Math.random() * 1000000000;
 | 
 |  |  |       eventHeader.setEventId(random + "");
 | 
 |  |  |       request.addHeader(eventHeader);
 | 
 |  |  | 
 | 
 |  |  |       ContentTypeHeader contentTypeHeader = sipFactory.createHeaderFactory().createContentTypeHeader("Application", "MANSCDP+xml");
 | 
 |  |  | 
 |  |  |       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;
 | 
 |  |  |       Dialog dialog = streamSession.getDialog(streamInfo.getDeviceID(), streamInfo.getChannelId());
 | 
 |  |  |       Dialog dialog = streamSession.getDialogByStream(streamInfo.getDeviceID(), streamInfo.getChannelId(), streamInfo.getStream());
 | 
 |  |  |       if (dialog == null) return null;
 | 
 |  |  | 
 | 
 |  |  |       SipURI requestLine = sipFactory.createAddressFactory().createSipURI(device.getDeviceId(),
 | 
 |  |  |             device.getHostAddress());
 | 
 |  |  | 
 |  |  | 
 | 
 |  |  |       // Forwards
 | 
 |  |  |       MaxForwardsHeader maxForwards = sipFactory.createHeaderFactory().createMaxForwardsHeader(70);
 | 
 |  |  |       if (cseq == null) {
 | 
 |  |  |          cseq = redisCatchStorage.getCSEQ(Request.INFO);
 | 
 |  |  |       }
 | 
 |  |  | 
 | 
 |  |  |       Long cseq = redisCatchStorage.getCSEQ(Request.INVITE);
 | 
 |  |  |       // ceq
 | 
 |  |  |       CSeqHeader cSeqHeader = sipFactory.createHeaderFactory()
 | 
 |  |  |             .createCSeqHeader(cseq, Request.INFO);
 |