1.37.37 ONVIF events "resource not known"

Current Development version likely to have breaking changes
Post Reply
epcon9000
Posts: 2
Joined: Thu Apr 06, 2023 11:27 am

1.37.37 ONVIF events "resource not known"

Post by epcon9000 »

Hello everyone. New to the forum. Nice to meet you.

Testing ONVIF event trigger on 1.37.37, after setting Monitor>ONVIF>ONVIF_URL to http://<ip>/onvif/device_service and activating ONVIF_Event_Listener, I get the following log entry:

zmc_m2 8531 ERR Couldn't do initial event pull! Error 12 Resource Unknown, <wsnt:ResourceUnknownFault><wsrf-bf:ErrorCode dialect="http://docs.oasis-open.org/wsrf/r-2"></ ... iption>the resource identified in the message is not known to the Web service.</wsrf-bf:Description></wsnt:ResourceUnknownFault> zm_monitor.cpp 1050

Camera is an imou IPC-TA42P-D and ONVIF events have been tested working on ONVIF official test tool.
Noticed that on zm_monitor.cpp line 1031, "/Event" is appended to the onvif_url. Not sure if that would break subscription for cameras with different service URL.

Any ideas would be welcome.
User avatar
iconnor
Posts: 3356
Joined: Fri Oct 29, 2010 1:43 am
Location: Toronto
Contact:

Re: 1.37.37 ONVIF events "resource not known"

Post by iconnor »

It might... are you able to determine the endpoint that the offiial tool uses?
epcon9000
Posts: 2
Joined: Thu Apr 06, 2023 11:27 am

Re: 1.37.37 ONVIF events "resource not known"

Post by epcon9000 »

Full request URI for events is
http://<IP>/onvif/event_service

The ONVIF URIs for each service follow.
<tds:Namespace>http://www.onvif.org/ver10/device/wsdl</tds:Namespace>
<tds:XAddr>http://<IP>/onvif/device_service</tds:XAddr>

<tds:Namespace>http://www.onvif.org/ver20/analytics/ws ... :Namespace>
<tds:XAddr>http://<IP>/onvif/analytics_service</tds:XAddr>

<tds:Namespace>http://www.onvif.org/ver20/imaging/wsdl</tds:Namespace>
<tds:XAddr>http://<IP>/onvif/imaging_service</tds:XAddr>

<tds:Namespace>http://www.onvif.org/ver10/media/wsdl</tds:Namespace>
<tds:XAddr>http://<IP>/onvif/media_service</tds:XAddr>

<tds:Namespace>http://www.onvif.org/ver20/ptz/wsdl</tds:Namespace>
<tds:XAddr>http://<IP>/onvif/ptz_service</tds:XAddr>

<tds:Namespace>http://www.onvif.org/ver10/events/wsdl</tds:Namespace>
<tds:XAddr>http://<IP>/onvif/event_service</tds:XAddr>

<tds:Namespace>http://www.onvif.org/ver10/deviceIO/wsdl</tds:Namespace>
<tds:XAddr>http://<IP>/onvif/deviceIO_service</tds:XAddr>
Post Reply