axis icon indicating copy to clipboard operation
axis copied to clipboard

Session timeouts

Open robbz23 opened this issue 4 years ago • 0 comments

Cameras with the firmware 6.50 will eventually timeout the RTSP session at which point the camera responds with a 454 message instead of 200/ok. I have tried to extend the timeout on the camera or set it to 0. When the timeout is set to 0 or anonymous is allowed, the camera can't even get to its own VMD4 config page. Once the camera starts responding with 454 HA never trys to create a new session and the log is filled with more 454's after that point. Streaming still works but VMD4 events never make it to HA.

Also in my testing, if I did set the camera to one of these modes HA would never contact the camera again no matter how many times I restarted HA or the camera. My only workaround was to edit the device registry file and readd the camera. So that is a separate request to allow us to remove cameras without editing the device registry file.

2020-03-26 00:26:49 DEBUG (MainThread) [axis.rtsp] Received data ['RTSP/1.0 200 OK', 'CSeq: 4', 'Public: OPTIONS, DESCRIBE, GET_PARAMETER, PAUSE, PLAY, SETUP, SET_PARAMETER, TEARDOWN', 'Server: GStreamer RTS
P server', 'Session: rkWgPZCGKBUj7MkC; timeout=60', 'Date: Wed, 25 Mar 2020 23:26:51 GMT', ''] from 192.168.1.41
2020-03-26 00:26:49 DEBUG (MainThread) [axis.rtsp] RTSP session (192.168.1.41) state playing
2020-03-26 00:26:49 DEBUG (MainThread) [axis.rtsp] RTSP session (192.168.1.41) state playing
2020-03-26 00:26:49 DEBUG (MainThread) [axis.rtsp] RTSP session (192.168.1.41) state playing
2020-03-26 00:27:09 DEBUG (MainThread) [axis.rtsp] OPTIONS rtsp://192.168.1.42/axis-media/media.amp?video=0&audio=0&event=on RTSP/1.0
CSeq: 4
User-Agent: HASS Axis
Session: N7_Xkk8ES1PglRDl




2020-03-26 00:27:51 DEBUG (MainThread) [axis.rtsp] Received data ['RTSP/1.0 454 Session Not Found', 'CSeq: 4', 'Server: GStreamer RTSP server', 'Date: Wed, 25 Mar 2020 23:27:54 GMT', ''] from 192.168.1.41
2020-03-26 00:27:51 DEBUG (MainThread) [axis.rtsp] 192.168.1.41 RTSP 454 Session
2020-03-26 00:27:51 DEBUG (MainThread) [axis.rtsp] RTSP session (192.168.1.41) state playing
2020-03-26 00:27:51 DEBUG (MainThread) [axis.rtsp] RTSP session (192.168.1.41) state playing
2020-03-26 00:28:04 DEBUG (MainThread) [axis.rtsp] OPTIONS rtsp://192.168.1.42/axis-media/media.amp?video=0&audio=0&event=on RTSP/1.0
CSeq: 4
User-Agent: HASS Axis
Session: N7_Xkk8ES1PglRDl

robbz23 avatar Mar 27 '20 07:03 robbz23