PTZ not working with onvif v1.0.0
I'm having trouble with the continuous move and abosulte move operation for the ONVIF PTZ service. I'm using the following SOAP request with the required x and y values for the PanTilt element, but it seems to not be working as expected.
Despite sending the values for x and y attributes, I'm receiving the following error response:
I added some logs to see the the params, looks ok:
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://www.w3.org/2003/05/soap-envelope" xmlns:SOAP-ENC="http://www.w3.org/2003/05/soap-encoding" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:c14n="http://www.w3.org/2001/10/xml-exc-c14n#" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" xmlns:ds="http://www.w3.org/2000/09/xmldsig#" xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" xmlns:wsa5="http://www.w3.org/2005/08/addressing" xmlns:xmime="http://tempuri.org/xmime.xsd" xmlns:xop="http://www.w3.org/2004/08/xop/include" xmlns:wsrfbf="http://docs.oasis-open.org/wsrf/bf-2" xmlns:wstop="http://docs.oasis-open.org/wsn/t-1" xmlns:tt="http://www.onvif.org/ver10/schema" xmlns:acert="http://www.axis.com/vapix/ws/cert" xmlns:wsrfr="http://docs.oasis-open.org/wsrf/r-2" xmlns:aa="http://www.axis.com/vapix/ws/action1" xmlns:acertificates="http://www.axis.com/vapix/ws/certificates" xmlns:aentry="http://www.axis.com/vapix/ws/entry" xmlns:aev="http://www.axis.com/vapix/ws/event1" xmlns:aeva="http://www.axis.com/vapix/ws/embeddedvideoanalytics1" xmlns:ali1="http://www.axis.com/vapix/ws/light/CommonBinding" xmlns:ali2="http://www.axis.com/vapix/ws/light/IntensityBinding" xmlns:ali3="http://www.axis.com/vapix/ws/light/AngleOfIlluminationBinding" xmlns:ali4="http://www.axis.com/vapix/ws/light/DayNightSynchronizeBinding" xmlns:ali="http://www.axis.com/vapix/ws/light" xmlns:apc="http://www.axis.com/vapix/ws/panopsiscalibration1" xmlns:arth="http://www.axis.com/vapix/ws/recordedtour1" xmlns:asd="http://www.axis.com/vapix/ws/shockdetection" xmlns:aweb="http://www.axis.com/vapix/ws/webserver" xmlns:tan1="http://www.onvif.org/ver20/analytics/wsdl/RuleEngineBinding" xmlns:tan2="http://www.onvif.org/ver20/analytics/wsdl/AnalyticsEngineBinding" xmlns:tan="http://www.onvif.org/ver20/analytics/wsdl" xmlns:tds="http://www.onvif.org/ver10/device/wsdl" xmlns:tev1="http://www.onvif.org/ver10/events/wsdl/NotificationProducerBinding" xmlns:tev2="http://www.onvif.org/ver10/events/wsdl/EventBinding" xmlns:tev3="http://www.onvif.org/ver10/events/wsdl/SubscriptionManagerBinding" xmlns:wsnt="http://docs.oasis-open.org/wsn/b-2" xmlns:tev4="http://www.onvif.org/ver10/events/wsdl/PullPointSubscriptionBinding" xmlns:tev="http://www.onvif.org/ver10/events/wsdl" xmlns:timg="http://www.onvif.org/ver20/imaging/wsdl" xmlns:tmd="http://www.onvif.org/ver10/deviceIO/wsdl" xmlns:tptz="http://www.onvif.org/ver20/ptz/wsdl" xmlns:tr2="http://www.onvif.org/ver20/media/wsdl" xmlns:trc="http://www.onvif.org/ver10/recording/wsdl" xmlns:trp="http://www.onvif.org/ver10/replay/wsdl" xmlns:trt="http://www.onvif.org/ver10/media/wsdl" xmlns:tse="http://www.onvif.org/ver10/search/wsdl" xmlns:ter="http://www.onvif.org/ver10/error" xmlns:tns1="http://www.onvif.org/ver10/topics" xmlns:tnsaxis="http://www.axis.com/2009/event/topics"> <SOAP-ENV:Header></SOAP-ENV:Header> <SOAP-ENV:Body> <SOAP-ENV:Fault> <SOAP-ENV:Code> <SOAP-ENV:Value>SOAP-ENV:Sender</SOAP-ENV:Value> <SOAP-ENV:Subcode> <SOAP-ENV:Value>ter:MissingAttr</SOAP-ENV:Value> </SOAP-ENV:Subcode> </SOAP-ENV:Code> <SOAP-ENV:Reason> <SOAP-ENV:Text xml:lang="en">Required attribute not present</SOAP-ENV:Text> </SOAP-ENV:Reason> <SOAP-ENV:Detail> <SOAP-ENV:Text>Validation constraint violation: missing required attribute in element onvif:PanTilt</SOAP-ENV:Text> </SOAP-ENV:Detail> </SOAP-ENV:Fault> </SOAP-ENV:Body> </SOAP-ENV:Envelope>
This started happening after I upgrade the kerberos version to the latest, before the ptz function was working good.
Could you please help me understand why this is happening and how I can resolve this issue?
Thanks in advance!
Hello @alanssoares, thanks for reporting. Can you indicate which version was working for you (agent version).
Today I did a test using the latest master branch using a fork and still not working.
I think the error can be related to this change, before i was using 0.0.14
https://github.com/kerberos-io/onvif/compare/v0.0.14..v1.0.0
Hello @alanssoares, we are currently working on this issue. Can you confirm zoom and presets also stopped working? We have some other users for which pan-tilt stopped working but not other features.
Hey @alanssoares, we will provide a fix ASAP.
Could you share which camera you are using @alanssoares ?
Hi Cédric,
Thank you for your response! I'm using the Hikvision and axis camera for this setup. If you need any more details or have further questions, feel free to ask.
Best regards, Alan Soares
Obter o Outlook para iOShttps://aka.ms/o0ukef
De: Cédric Verstraeten @.> Enviado: Tuesday, May 20, 2025 5:47:24 AM Para: kerberos-io/agent @.> Cc: Alan Soares @.>; Mention @.> Assunto: Re: [kerberos-io/agent] PTZ not working with onvif v1.0.0 (Issue #161)
[https://avatars.githubusercontent.com/u/1546779?s=20&v=4]cedricve left a comment (kerberos-io/agent#161)https://github.com/kerberos-io/agent/issues/161#issuecomment-2893510452
Could you share which camera you are using @alanssoareshttps://github.com/alanssoares ?
— Reply to this email directly, view it on GitHubhttps://github.com/kerberos-io/agent/issues/161#issuecomment-2893510452, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ACXNYTV4ORH467OS6V4TADD27LTZZAVCNFSM6AAAAABV7AMMVKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDQOJTGUYTANBVGI. You are receiving this because you were mentioned.Message ID: @.***>
Yes zoom is not working as well, I'm not using preset yet
Obter o Outlook para iOShttps://aka.ms/o0ukef
De: Alan Soares @.> Enviado: Tuesday, May 20, 2025 6:21:49 AM Para: kerberos-io/agent @.>; kerberos-io/agent @.> Cc: Mention @.> Assunto: Re: [kerberos-io/agent] PTZ not working with onvif v1.0.0 (Issue #161)
Hi Cédric,
Thank you for your response! I'm using the Hikvision and axis camera for this setup. If you need any more details or have further questions, feel free to ask.
Best regards, Alan Soares
Obter o Outlook para iOShttps://aka.ms/o0ukef
De: Cédric Verstraeten @.> Enviado: Tuesday, May 20, 2025 5:47:24 AM Para: kerberos-io/agent @.> Cc: Alan Soares @.>; Mention @.> Assunto: Re: [kerberos-io/agent] PTZ not working with onvif v1.0.0 (Issue #161)
[https://avatars.githubusercontent.com/u/1546779?s=20&v=4]cedricve left a comment (kerberos-io/agent#161)https://github.com/kerberos-io/agent/issues/161#issuecomment-2893510452
Could you share which camera you are using @alanssoareshttps://github.com/alanssoares ?
— Reply to this email directly, view it on GitHubhttps://github.com/kerberos-io/agent/issues/161#issuecomment-2893510452, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ACXNYTV4ORH467OS6V4TADD27LTZZAVCNFSM6AAAAABV7AMMVKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDQOJTGUYTANBVGI. You are receiving this because you were mentioned.Message ID: @.***>
Ok thanks, hmm that's strange. Could you share the ONVIF authentication method (Integration Protocol) of your HikVision camera (you could select basic auth vs ws auth). What ONVIF version is your HikVision running on?
You do confirm that if you now downgrade the Agent to a previous version (using the onvif v0.0.16), the PTZ does work as expected?
Just to validate could you give this one a try: https://github.com/kerberos-io/agent/releases/tag/v3.3.19-onvif-v0.0.14. This is our latest release with the previous version of ONVIF. This is just for testing purposes.