From fdd7ef6dfdb7ced5cdd516ed1cd39da0953d9fca Mon Sep 17 00:00:00 2001 From: singhharsh1708 Date: Mon, 16 Nov 2026 03:00:04 +0530 Subject: [PATCH] fix: send Netcat and Reolink ONVIF reboot to the device service --- scripts/ZoneMinder/lib/ZoneMinder/Control/Netcat.pm | 2 +- scripts/ZoneMinder/lib/ZoneMinder/Control/Reolink.pm | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/ZoneMinder/lib/ZoneMinder/Control/Netcat.pm b/scripts/ZoneMinder/lib/ZoneMinder/Control/Netcat.pm index 62ecf1d73b..50640f8d9f 100644 --- a/scripts/ZoneMinder/lib/ZoneMinder/Control/Netcat.pm +++ b/scripts/ZoneMinder/lib/ZoneMinder/Control/Netcat.pm @@ -322,7 +322,7 @@ sub autoStop { sub reset { Debug('Camera Reset'); my $self = shift; - my $cmd = ''; + my $cmd = 'onvif/device_service'; my $msg = ''.authentificationHeader($username, $password).''; my $content_type = 'application/soap+xml; charset=utf-8; action="http://www.onvif.org/ver10/device/wsdl/SystemReboot"'; $self->sendCmd($cmd, $msg, $content_type); diff --git a/scripts/ZoneMinder/lib/ZoneMinder/Control/Reolink.pm b/scripts/ZoneMinder/lib/ZoneMinder/Control/Reolink.pm index 5eb4c4c927..a69cab32a6 100644 --- a/scripts/ZoneMinder/lib/ZoneMinder/Control/Reolink.pm +++ b/scripts/ZoneMinder/lib/ZoneMinder/Control/Reolink.pm @@ -222,7 +222,7 @@ sub reset my $sha = Digest::SHA->new(1); $sha->add($nonce.$mydate.$password); my $digest = encode_base64($sha->digest,""); - my $cmd = ""; + my $cmd = "onvif/device_service"; my $msg = ''.$username.''.$digest.''.encode_base64($nonce,"").''.$mydate.''; my $content_type = 'application/soap+xml; charset=utf-8; action="http://www.onvif.org/ver10/device/wsdl/SystemReboot"'; $self->sendCmd( $cmd, $msg, $content_type );