Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Session timeouts #18

Open
robbz23 opened this issue Mar 27, 2020 · 0 comments
Open

Session timeouts #18

robbz23 opened this issue Mar 27, 2020 · 0 comments

Comments

@robbz23
Copy link

robbz23 commented Mar 27, 2020

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant