|  |  |  | 
|---|
|  |  |  | 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.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); | 
|---|