diff --git a/ONVIF Configurator/locale.json b/ONVIF Configurator/locale.json index 2111b2c..0795903 100644 --- a/ONVIF Configurator/locale.json +++ b/ONVIF Configurator/locale.json @@ -5,6 +5,7 @@ "VideoSource": "Video-Quelle", "Location": "Lokation", "Error on read of capabilities.": "Fehler beim Lesen der Funktionen.", + "Device has no xAddr for this service.": "Gerät hat keine xAddr für diesen Dienst.", "Instance has no active parent.": "Instanz hat kein aktives übergeordnetes Element.", "Unknown error.": "Unbekannter Fehler.", "No valid answer.": "Keine gültige Antwort.", diff --git a/ONVIF Digital Input/locale.json b/ONVIF Digital Input/locale.json index 6ee15c2..c52c24f 100644 --- a/ONVIF Digital Input/locale.json +++ b/ONVIF Digital Input/locale.json @@ -7,6 +7,7 @@ "Event not valid": "Ereignis ist nicht gültig", "Digital input: ": "Digitaler Eingang: ", "IdleState: ": "Ruhelage: ", + "Device has no xAddr for this service.": "Gerät hat keine xAddr für diesen Dienst.", "Instance has no active parent.": "Instanz hat kein aktives übergeordnetes Element.", "Unknown error.": "Unbekannter Fehler.", "No valid answer.": "Keine gültige Antwort.", diff --git a/ONVIF Digital Output/locale.json b/ONVIF Digital Output/locale.json index 31d35d6..28e1d4a 100644 --- a/ONVIF Digital Output/locale.json +++ b/ONVIF Digital Output/locale.json @@ -12,6 +12,7 @@ "Mode: ": "Modus: ", "DelayTime: ": "Verzögerung: ", "IdleState: ": "Ruhelage: ", + "Device has no xAddr for this service.": "Gerät hat keine xAddr für diesen Dienst.", "Instance has no active parent.": "Instanz hat kein aktives übergeordnetes Element.", "Unknown error.": "Unbekannter Fehler.", "No valid answer.": "Keine gültige Antwort.", diff --git a/ONVIF Events/locale.json b/ONVIF Events/locale.json index 3927bcf..75c945b 100644 --- a/ONVIF Events/locale.json +++ b/ONVIF Events/locale.json @@ -4,6 +4,7 @@ "Event(s)": "Ereignis-Pfad", "Configuration is valid": "Konfiguration ist gültig", "Event missing": "Ereignis fehlt", + "Device has no xAddr for this service.": "Gerät hat keine xAddr für diesen Dienst.", "Instance has no active parent.": "Instanz hat kein aktives übergeordnetes Element.", "Unknown error.": "Unbekannter Fehler.", "No valid answer.": "Keine gültige Antwort.", diff --git a/ONVIF IO/module.php b/ONVIF IO/module.php index b09d9aa..c623445 100644 --- a/ONVIF IO/module.php +++ b/ONVIF IO/module.php @@ -1498,7 +1498,7 @@ protected function GetCapabilities(): bool \ONVIF\NS::Management => '/onvif/device_service', \ONVIF\NS::Event => '', \ONVIF\NS::Media => '/onvif/media_service', - \ONVIF\NS::PTZ => '', + \ONVIF\NS::PTZ => '/onvif/ptz_service', \ONVIF\NS::Imaging => '', \ONVIF\NS::Analytics => '', \ONVIF\NS::DeviceIO => '', diff --git a/ONVIF Image Grabber/locale.json b/ONVIF Image Grabber/locale.json index 527c103..e6cc07a 100644 --- a/ONVIF Image Grabber/locale.json +++ b/ONVIF Image Grabber/locale.json @@ -8,6 +8,7 @@ "Configuration is invalid": "Konfiguration ist ungültig", "Snapshot URL could not be determined": "Snapshot URL konnte nicht bestimmt werden", "Error on read capabilities.": "Fehler beim Lesen der Fähigkeiten.", + "Device has no xAddr for this service.": "Gerät hat keine xAddr für diesen Dienst.", "Instance has no active parent.": "Instanz hat kein aktives übergeordnetes Element.", "Unknown error.": "Unbekannter Fehler.", "No valid answer.": "Keine gültige Antwort.", diff --git a/ONVIF Media Stream/locale.json b/ONVIF Media Stream/locale.json index 5659085..46e0440 100644 --- a/ONVIF Media Stream/locale.json +++ b/ONVIF Media Stream/locale.json @@ -8,6 +8,7 @@ "Configuration is invalid": "Konfiguration ist ungültig", "Stream could not be determined": "Stream konnte nicht bestimmt werden", "Error on read capabilities.": "Fehler beim Lesen der Fähigkeiten.", + "Device has no xAddr for this service.": "Gerät hat keine xAddr für diesen Dienst.", "Instance has no active parent.": "Instanz hat kein aktives übergeordnetes Element.", "Unknown error.": "Unbekannter Fehler.", "No valid answer.": "Keine gültige Antwort.", diff --git a/ONVIF Media Stream/module.php b/ONVIF Media Stream/module.php index cb46191..26a827c 100644 --- a/ONVIF Media Stream/module.php +++ b/ONVIF Media Stream/module.php @@ -882,7 +882,7 @@ public function RequestAction($Ident, $Value) } switch ($Ident) { case 'PRESET': - if ($this->GotoPreset($Value)) { + if ($this->GotoPreset((int) $Value)) { $this->SetValue('PRESET', $Value); return true; } diff --git a/libs/ONVIFModuleBase.php b/libs/ONVIFModuleBase.php index af0ca4e..d7fc9c1 100644 --- a/libs/ONVIFModuleBase.php +++ b/libs/ONVIFModuleBase.php @@ -260,6 +260,11 @@ protected function SendData(string $URI, string $Function, bool $UseLogin = fals if (!$this->HasActiveParent()) { return false; } + if ($URI === '') { + set_error_handler([$this, 'ModulErrorHandler']); + trigger_error($this->Translate('Device has no xAddr for this service.'), E_USER_NOTICE); + restore_error_handler(); + } $this->SendDebug('Send WSDL', $wsdl, 0); $this->SendDebug('Send Function', $Function, 0); $this->SendDebug('Send Params', $Params, 0);