<div dir="ltr"><div>Hi,</div><div><br></div><div>You are receiving an additional response to Describe command that was previously received completely (
CSeq: 4).</div><div>Your setup sent with
CSeq: 5 but response came to
CSeq: 4 - Handler for this was already completed.</div><div>Try to implement a timeout handler - I had an issue with different vendor of cameras that were messing with sockets and it helped(although I dodn't received 408 code but yes I was receiving unexpected responses).</div><div>I then raised the idea of setting timeout value for each command but Ross's suggestion was to run a custom timer (via Live library) and track timeouts - I implemented this and this worked.</div><div><br></div><div>Best regards,</div><div>Alexander.<br></div><div><br>
</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Oct 2, 2020 at 2:26 PM Eric Beuque <<a href="mailto:eric.beuque@jet1oeil.com">eric.beuque@jet1oeil.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div>Hello,</div><div><br></div><div>I'm facing a problem with a Samsung camera that sometimes answer a "408 Request timeout", to a SETUP command, this lead to the RTSP stream to be in a dead lock state :</div><div>- Nothing append in the callback of the sendSetupCommand (same problem using both TCP or UDP).<br></div><div>- I also won't receive nothing in the callback given in to scheduleDelayedTask.</div><div><br></div><div>I'm using Debian Buster which is using Livemedia 2018.11.26. Unfortunately i cannot upgrade the livemedia version to know if this will happen on latest version.<br></div><div><br></div><div>I check the ChangeLog, but i don't see any modification that can fix this.</div><div><br></div><div>I look in the RTSPClient.cpp file and i saw there is no handling for the 408 response, but i'm not able to know if something is missing or not (even in last version).</div><div><br></div><div>Maybe, it's a bug in the camera RTSP server, but this block the client application.</div><div><br></div><div>Is someone has an idea about this problem ?</div><div><br></div><div>Thank you very much !<br></div><div><br></div><div>Please find the logs I got : <br></div><div><br></div><div>[Access::livemedia] Starting access to rtsp://admin:********@<a href="http://192.168.1.3/onvif/profile2/media.smp" target="_blank">192.168.1.3/onvif/profile2/media.smp</a><br>[Access::livemedia] Start with transport TCP: 1<br>[Access::livemedia] RTSP client created<br>[Access::livemedia] Creating authenticator<br>[Access::livemedia] Sending command OPTIONS<br>[LibLiveMedia] Created new TCP socket 73 for connection<br>[LibLiveMedia] Connecting to 192.168.1.3, port 554 on socket 73...<br>[Access::livemedia] Starting event loop: 0<br>[LibLiveMedia] ...remote connection opened<br>[LibLiveMedia] Sending request: OPTIONS rtsp://<a href="http://192.168.1.3/onvif/profile2/media.smp" target="_blank">192.168.1.3/onvif/profile2/media.smp</a> RTSP/1.0<br>[LibLiveMedia] CSeq: 2<br>[LibLiveMedia] User-Agent: LIVE555 Streaming Media v2018.11.26<br>[LibLiveMedia] <br>[LibLiveMedia] Received 230 new bytes of response data.<br>[LibLiveMedia] Received a complete OPTIONS response:<br>[LibLiveMedia] RTSP/1.0 401 Unauthorized<br>[LibLiveMedia] CSeq: 2<br>[LibLiveMedia] Date: Thu, 01 Oct 2020 22:42:57 GMT<br>[LibLiveMedia] Expires: Thu, 01 Oct 2020 22:42:57 GMT<br>[LibLiveMedia] Cache-Control: must-revalidate<br>[LibLiveMedia] WWW-Authenticate: Digest realm="iPOLiS", nonce="D7F927DE0E1CFD4D568014FB31A4D1FF"<br>[LibLiveMedia] <br>[LibLiveMedia] Resending...<br>[LibLiveMedia] Sending request: OPTIONS rtsp://<a href="http://192.168.1.3/onvif/profile2/media.smp" target="_blank">192.168.1.3/onvif/profile2/media.smp</a> RTSP/1.0<br>[LibLiveMedia] CSeq: 3<br>[LibLiveMedia] Authorization: Digest username="admin", realm="iPOLiS", nonce="D7F927DE0E1CFD4D568014FB31A4D1FF", uri="rtsp://<a href="http://192.168.1.3/onvif/profile2/media.smp" target="_blank">192.168.1.3/onvif/profile2/media.smp</a>", response="f7890ac2189e5c1597d8d9a3eff67689"<br>[LibLiveMedia] User-Agent: LIVE555 Streaming Media v2018.11.26<br>[LibLiveMedia] <br>[LibLiveMedia] Received 224 new bytes of response data.<br>[LibLiveMedia] Received a complete OPTIONS response:<br>[LibLiveMedia] RTSP/1.0 200 OK<br>[LibLiveMedia] CSeq: 3<br>[LibLiveMedia] Date: Thu, 01 Oct 2020 22:43:10 GMT<br>[LibLiveMedia] Expires: Thu, 01 Oct 2020 22:43:10 GMT<br>[LibLiveMedia] Cache-Control: must-revalidate<br>[LibLiveMedia] Public: DESCRIBE, SETUP, TEARDOWN, PLAY, PAUSE, OPTIONS, GET_PARAMETER, SET_PARAMETER<br>[LibLiveMedia] <br>[Access::livemedia] Got a OPTIONS description: DESCRIBE, SETUP, TEARDOWN, PLAY, PAUSE, OPTIONS, GET_PARAMETER, SET_PARAMETER<br>[LibLiveMedia] Sending request: DESCRIBE rtsp://<a href="http://192.168.1.3/onvif/profile2/media.smp" target="_blank">192.168.1.3/onvif/profile2/media.smp</a> RTSP/1.0<br>[LibLiveMedia] CSeq: 4<br>[LibLiveMedia] Authorization: Digest username="admin", realm="iPOLiS", nonce="D7F927DE0E1CFD4D568014FB31A4D1FF", uri="rtsp://<a href="http://192.168.1.3/onvif/profile2/media.smp" target="_blank">192.168.1.3/onvif/profile2/media.smp</a>", response="1985e1946fc5962ee079257c9e7167b0"<br>[LibLiveMedia] User-Agent: LIVE555 Streaming Media v2018.11.26<br>[LibLiveMedia] Accept: application/sdp<br>[LibLiveMedia] <br>[LibLiveMedia] Received 1177 new bytes of response data.<br>[LibLiveMedia] Received a complete DESCRIBE response:<br>[LibLiveMedia] RTSP/1.0 200 OK<br>[LibLiveMedia] CSeq: 4<br>[LibLiveMedia] Date: Thu, 01 Oct 2020 22:43:11 GMT<br>[LibLiveMedia] Expires: Thu, 01 Oct 2020 22:43:11 GMT<br>[LibLiveMedia] Cache-Control: must-revalidate<br>[LibLiveMedia] Content-Base: rtsp://<a href="http://192.168.1.3/onvif/profile2/media.smp" target="_blank">192.168.1.3/onvif/profile2/media.smp</a><br>[LibLiveMedia] Content-Type: application/sdp<br>[LibLiveMedia] Content-Length: 866<br>[LibLiveMedia] x-Accept-Retransmit: our-retransmit<br>[LibLiveMedia] x-Accept-Dynamic-Rate: 1<br>[LibLiveMedia] <br>[LibLiveMedia] v=0<br>[LibLiveMedia] o=- 0 0 IN IP4 192.168.1.250<br>[LibLiveMedia] s=Media Presentation<br>[LibLiveMedia] i=samsung<br>[LibLiveMedia] c=IN IP4 0.0.0.0<br>[LibLiveMedia] b=AS:7240<br>[LibLiveMedia] t=0 0<br>[LibLiveMedia] a=control:rtsp://<a href="http://192.168.1.3/onvif/profile2/media.smp" target="_blank">192.168.1.3/onvif/profile2/media.smp</a><br>[LibLiveMedia] a=range:npt=now-<br>[LibLiveMedia] m=video 45344 RTP/AVP 98<br>[LibLiveMedia] b=AS:7168<br>[LibLiveMedia] a=rtpmap:98 H264/90000<br>[LibLiveMedia] a=control:rtsp://<a href="http://192.168.1.3/onvif/profile2/media.smp/trackID=v" target="_blank">192.168.1.3/onvif/profile2/media.smp/trackID=v</a><br>[LibLiveMedia] a=cliprect:0,0,1024,1280<br>[LibLiveMedia] a=framesize:98 1280-1024<br>[LibLiveMedia] a=framerate:10.0<br>[LibLiveMedia] a=fmtp:98 packetization-mode=1;profile-level-id=640032;sprop-parameter-sets=J2QAMq2EBUViuKxUcQgKisVxWKjiECSFITk8nyfk/k/J8nm5s00IEkKQnJ5Pk/J/J+T5PNzZphcqAUAIGmyAAAH0AAAnEHAAAA4AAAMAAOAABe91lA==,KP4Piw==<br>[LibLiveMedia] m=audio 45346 RTP/AVP 0<br>[LibLiveMedia] b=AS:64<br>[LibLiveMedia] a=rtpmap:0 PCMU/8000<br>[LibLiveMedia] a=control:rtsp://<a href="http://192.168.1.3/onvif/profile2/media.smp/trackID=a" target="_blank">192.168.1.3/onvif/profile2/media.smp/trackID=a</a><br>[LibLiveMedia] a=recvonly<br>[LibLiveMedia] m=application 45348 RTP/AVP 107<br>[LibLiveMedia] b=AS:8<br>[LibLiveMedia] a=rtpmap:107 vnd.onvif.metadata/90000<br>[LibLiveMedia] a=control:rtsp://<a href="http://192.168.1.3/onvif/profile2/media.smp/trackID=m" target="_blank">192.168.1.3/onvif/profile2/media.smp/trackID=m</a><br>[LibLiveMedia] a=recvonly<br>[Access::livemedia] Got a SDP description : v=0<br>o=- 0 0 IN IP4 192.168.1.250<br>s=Media Presentation<br>i=samsung<br>c=IN IP4 0.0.0.0<br>b=AS:7240<br>t=0 0<br>a=control:rtsp://<a href="http://192.168.1.3/onvif/profile2/media.smp" target="_blank">192.168.1.3/onvif/profile2/media.smp</a><br>a=range:npt=now-<br>m=video 45344 RTP/AVP 98<br>b=AS:7168<br>a=rtpmap:98 H264/90000<br>a=control:rtsp://<a href="http://192.168.1.3/onvif/profile2/media.smp/trackID=v" target="_blank">192.168.1.3/onvif/profile2/media.smp/trackID=v</a><br>a=cliprect:0,0,1024,1280<br>a=framesize:98 1280-1024<br>a=framerate:10.0<br>a=fmtp:98 packetization-mode=1;profile-level-id=640032;sprop-parameter-sets=J2QAMq2EBUViuKxUcQgKisVxWKjiECSFITk8nyfk/k/J8nm5s00IEkKQnJ5Pk/J/J+T5PNzZphcqAUAIGmyAAAH0AAAnEHAAAA4AAAMAAOAABe91lA==,KP4Piw==<br>m=audio 45346 RTP/AVP 0<br>b=AS:64<br>a=rtpmap:0 PCMU/8000<br>a=control:rtsp://<a href="http://192.168.1.3/onvif/profile2/media.smp/trackID=a" target="_blank">192.168.1.3/onvif/profile2/media.smp/trackID=a</a><br>a=recvonly<br>m=application 45348 RTP/AVP 107<br>b=AS:8<br>a=rtpmap:107 vnd.onvif.metadata/90000<br>a=control:rtsp://<a href="http://192.168.1.3/onvif/profile2/media.smp/trackID=m" target="_blank">192.168.1.3/onvif/profile2/media.smp/trackID=m</a><br>a=recvonly<br>[Access::livemedia] Session name: Media Presentation<br>[Access::livemedia] Using transport TCP<br>[Access::livemedia] Initiate video/H264 subsession<br>[Access::livemedia] Initiated the video/H264 subsession (client port 45344)<br>[LibLiveMedia] Sending request: SETUP rtsp://<a href="http://192.168.1.3/onvif/profile2/media.smp/trackID=v" target="_blank">192.168.1.3/onvif/profile2/media.smp/trackID=v</a> RTSP/1.0<br>[LibLiveMedia] CSeq: 5<br>[LibLiveMedia] Authorization: Digest username="admin", realm="iPOLiS", nonce="D7F927DE0E1CFD4D568014FB31A4D1FF", uri="rtsp://<a href="http://192.168.1.3/onvif/profile2/media.smp" target="_blank">192.168.1.3/onvif/profile2/media.smp</a>", response="a09a1329a96a4f271446fe4957d60ce0"<br>[LibLiveMedia] User-Agent: LIVE555 Streaming Media v2018.11.26<br>[LibLiveMedia] Transport: RTP/AVP/TCP;unicast;interleaved=0-1<br>[LibLiveMedia] <br>[LibLiveMedia] Received 151 new bytes of response data.<br>[LibLiveMedia] Received a complete (unknown) response:<br>[LibLiveMedia] RTSP/1.0 408 Request Time-out<br>[LibLiveMedia] CSeq: 4<br>[LibLiveMedia] Date: Thu, 01 Oct 2020 22:44:11 GMT<br>[LibLiveMedia] Expires: Thu, 01 Oct 2020 22:44:11 GMT<br>[LibLiveMedia] Cache-Control: must-revalidate<br>[LibLiveMedia] </div><div><br></div><div><div><div dir="ltr"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"> <br></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div>
_______________________________________________<br>
live-devel mailing list<br>
<a href="mailto:live-devel@lists.live555.com" target="_blank">live-devel@lists.live555.com</a><br>
<a href="http://lists.live555.com/mailman/listinfo/live-devel" rel="noreferrer" target="_blank">http://lists.live555.com/mailman/listinfo/live-devel</a><br>
</blockquote></div>