Quedale / OnvifDeviceManager

Onvif Device Manager for Linux
GNU General Public License v3.0
88 stars 20 forks source link

Support Digest authentication schemes (and possibly others) #19

Open onyx82 opened 7 months ago

onyx82 commented 7 months ago

I have linux mint 21.3 and imou bullet lite 4mp camera. I run the command ./onvifmgr to open the software,i press the search button C...I try to log in, but it doesn't log in, here's what it says in the terminal after I try to log in. I don't know where the error log is


TRAIL 24-03-01 03:43:37.192632 140193375029888 onvif_details.c:33: update_details_priv - invalid device.
INFO  24-03-01 03:44:10.335724 140193375029888 onvif_app.c:144: Starting ONVIF Devices Network Discovery...
TRACE 24-03-01 03:44:10.337934 140193313453632 event_queue.c:145: pop
TRACE 24-03-01 03:44:10.337984 140193313453632 event_queue.c:165: notify dispatching event...
TRACE 24-03-01 03:44:10.338078 140193313453632 onvif_app.c:134: _start_onvif_discovery
DEBUG 24-03-01 03:44:10.342386 140193313453632 onvif_discovery.c:208: Sending NVT probe...
DEBUG 24-03-01 03:44:10.458029 140193313453632 onvif_discovery.c:64: ProbeMatches found...
TRACE 24-03-01 03:44:10.458089 140193313453632 probmatch.c:15: ProbMatches__create...
TRACE 24-03-01 03:44:10.458116 140193313453632 probmatch.c:84: ProbMatch__create...
TRACE 24-03-01 03:44:10.458184 140193313453632 onvif_app.c:118: _found_server
TRACE 24-03-01 03:44:10.458326 140193375029888 onvif_app.c:84: found_server
INFO  24-03-01 03:44:10.458355 140193375029888 onvif_app.c:93: Found server - Match count : 1
DEBUG 24-03-01 03:44:10.458388 140193375029888 onvif_device.c:184: OnvifDevice__create
INFO  24-03-01 03:44:10.458431 140193375029888 onvif_device.c:176: Created Device:
INFO  24-03-01 03:44:10.458450 140193375029888 onvif_device.c:177:  protocol -- http
INFO  24-03-01 03:44:10.458468 140193375029888 onvif_device.c:178:  host : 192.168.100.94
INFO  24-03-01 03:44:10.458485 140193375029888 onvif_device.c:179:  port -- (null)
INFO  24-03-01 03:44:10.458506 140193375029888 onvif_device.c:180:  endpoint : onvif/device_service
TRACE 24-03-01 03:44:10.482011 140193375029888 probmatch.c:22: ProbMatches__destroy...
TRACE 24-03-01 03:44:10.482078 140193375029888 probmatch.c:48: ProbMatch__destroy...
TRACE 24-03-01 03:44:10.482108 140193375029888 probmatch.c:68: ProbMatch__destroy... done
TRACE 24-03-01 03:44:10.482196 140193218537024 event_queue.c:145: pop
TRACE 24-03-01 03:44:10.482228 140193218537024 event_queue.c:165: notify dispatching event...
TRACE 24-03-01 03:44:10.482313 140193218537024 onvif_app.c:211: _display_onvif_device
INFO  24-03-01 03:44:10.482347 140193218537024 onvif_device.c:73: [http://192.168.100.94/onvif/device_service] OnvifDevice__authenticate
DEBUG 24-03-01 03:44:10.482386 140193218537024 onvif_device_service.c:82: [http://192.168.100.94/onvif/device_service] Invoking GetSystemDateAndTime
INFO  24-03-01 03:44:10.506492 140193218537024 onvif_device.c:93: [http://192.168.100.94/onvif/device_service] Camera SystemDateAndTime : '2024-03-01 03:44:10'
TRACE 24-03-01 03:44:10.506527 140193218537024 onvif_device.c:46: [http://192.168.100.94/onvif/device_service] OnvifDevice__createMediaService
DEBUG 24-03-01 03:44:10.506544 140193218537024 onvif_device_service.c:99: [http://192.168.100.94/onvif/device_service] Invoking GetCapabilities
DEBUG 24-03-01 03:44:10.543594 140193218537024 onvif_device.c:104: [http://192.168.100.94/onvif/media_service] Successfully created Media soap 
TRACE 24-03-01 03:44:10.543633 140193218537024 onvif_media_service.c:267: [http://192.168.100.94/onvif/media_service] OnvifMediaService__get_profile_token 0
DEBUG 24-03-01 03:44:10.543652 140193218537024 onvif_media_service.c:79: [http://192.168.100.94/onvif/media_service] Invoking GetProfiles
WARN  24-03-01 03:44:10.563702 140193218537024 onvif_base_service.c:200: Warning : NOT AUTHORIZED HTTP Error code [401]
DEBUG 24-03-01 03:44:10.563779 140193218537024 onvif_media_service.c:118: [http://192.168.100.94/onvif/media_service] Invoking GetStreamUri
WARN  24-03-01 03:44:10.582640 140193218537024 onvif_base_service.c:200: Warning : NOT AUTHORIZED HTTP Error code [401]
ERROR 24-03-01 03:44:10.582903 140193218537024 onvif_device.c:110: [http://192.168.100.94/onvif/media_service] No stream uri returned...
TRACE 24-03-01 03:44:10.582940 140193218537024 omgr_device_row.c:418: OnvifMgrDeviceRow__load_thumbnail
TRACE 24-03-01 03:44:10.587808 140193218537024 omgr_device_row.c:490: OnvifMgrDeviceRow__load_thumbnail done.
TRACE 24-03-01 03:44:10.587860 140193218537024 event_queue.c:173: notify dispatched event...
DEBUG 24-03-01 03:44:12.460929 140193313453632 onvif_discovery.c:208: Sending NVT probe...
DEBUG 24-03-01 03:44:12.747459 140193313453632 onvif_discovery.c:64: ProbeMatches found...
TRACE 24-03-01 03:44:12.747525 140193313453632 probmatch.c:15: ProbMatches__create...
TRACE 24-03-01 03:44:12.747559 140193313453632 probmatch.c:84: ProbMatch__create...
TRACE 24-03-01 03:44:12.747609 140193313453632 onvif_app.c:118: _found_server
TRACE 24-03-01 03:44:12.747762 140193375029888 onvif_app.c:84: found_server
INFO  24-03-01 03:44:12.747804 140193375029888 onvif_app.c:93: Found server - Match count : 1
DEBUG 24-03-01 03:44:12.747857 140193375029888 onvif_app.c:73: Record already part of list [http://192.168.100.94/onvif/device_service]
TRACE 24-03-01 03:44:12.747901 140193375029888 probmatch.c:22: ProbMatches__destroy...
TRACE 24-03-01 03:44:12.747933 140193375029888 probmatch.c:48: ProbMatch__destroy...
TRACE 24-03-01 03:44:12.747970 140193375029888 probmatch.c:68: ProbMatch__destroy... done
TRACE 24-03-01 03:44:14.750163 140193313453632 event_queue.c:173: notify dispatched event...
TRACE 24-03-01 03:44:14.750244 140193375029888 onvif_app.c:123: finished_discovery
DEBUG 24-03-01 03:44:31.917811 140193375029888 onvif_app.c:392: OnvifApp__select_device
TRACE 24-03-01 03:44:31.917854 140193375029888 onvif_details.c:108: clear_details
DEBUG 24-03-01 03:44:31.917895 140193375029888 onvif_app.c:902: OnvifApp__set_device - valid device
TRACE 24-03-01 03:44:31.917923 140193201751616 event_queue.c:145: pop
TRACE 24-03-01 03:44:31.917938 140193201751616 event_queue.c:165: notify dispatching event...
TRACE 24-03-01 03:44:31.917975 140193201751616 onvif_app.c:200: _stop_onvif_stream
DEBUG 24-03-01 03:44:31.917990 140193201751616 gstrtspplayer.c:526: RtspPlayer__stop
INFO  24-03-01 03:44:31.918296 140193201751616 onvif_app.c:165: Stream stopped
TRACE 24-03-01 03:44:31.918310 140193201751616 event_queue.c:173: notify dispatched event...
DEBUG 24-03-01 03:44:31.922940 140193375029888 app_dialog.c:98: show
INFO  24-03-01 03:50:01.141573 140193375029888 onvif_app.c:374: OnvifAuthentication attempt...
TRACE 24-03-01 03:50:01.141732 140192967030336 event_queue.c:145: pop
TRACE 24-03-01 03:50:01.141979 140192967030336 event_queue.c:165: notify dispatching event...
DEBUG 24-03-01 03:50:01.142097 140192967030336 onvif_app.c:359: _onvif_authentication_reload
INFO  24-03-01 03:50:01.142142 140192967030336 onvif_device.c:73: [http://192.168.100.94/onvif/device_service] OnvifDevice__authenticate
INFO  24-03-01 03:50:01.142226 140192967030336 onvif_device.c:93: [http://192.168.100.94/onvif/device_service] Camera SystemDateAndTime : '2024-03-01 03:44:10'
TRACE 24-03-01 03:50:01.142268 140192967030336 onvif_device.c:46: [http://192.168.100.94/onvif/device_service] OnvifDevice__createMediaService
DEBUG 24-03-01 03:50:01.142307 140192967030336 onvif_device_service.c:99: [http://192.168.100.94/onvif/device_service] Invoking GetCapabilities
DEBUG 24-03-01 03:50:01.183025 140192967030336 onvif_device.c:104: [http://192.168.100.94/onvif/media_service] Successfully created Media soap 
TRACE 24-03-01 03:50:01.183093 140192967030336 onvif_media_service.c:267: [http://192.168.100.94/onvif/media_service] OnvifMediaService__get_profile_token 0
DEBUG 24-03-01 03:50:01.183139 140192967030336 onvif_media_service.c:79: [http://192.168.100.94/onvif/media_service] Invoking GetProfiles
WARN  24-03-01 03:50:01.205261 140192967030336 onvif_base_service.c:200: Warning : NOT AUTHORIZED HTTP Error code [12]
DEBUG 24-03-01 03:50:01.205410 140192967030336 onvif_media_service.c:118: [http://192.168.100.94/onvif/media_service] Invoking GetStreamUri
WARN  24-03-01 03:50:01.227830 140192967030336 onvif_base_service.c:200: Warning : NOT AUTHORIZED HTTP Error code [12]
ERROR 24-03-01 03:50:01.227950 140192967030336 onvif_device.c:110: [http://192.168.100.94/onvif/media_service] No stream uri returned...
TRACE 24-03-01 03:50:01.227993 140192967030336 event_queue.c:173: notify dispatched event...
Quedale commented 7 months ago

Good day!

Thank you for taking the time to try out my tool and provide feedback!

According to the logs, it seems like you aren't authorized to retrieve the device media profiles or retrieve the stream URI.

DEBUG 24-03-01 03:50:01.183139 140192967030336 onvif_media_service.c:79: [http://192.168.100.94/onvif/media_service] Invoking GetProfiles
WARN  24-03-01 03:50:01.205261 140192967030336 onvif_base_service.c:200: Warning : NOT AUTHORIZED HTTP Error code [12]
DEBUG 24-03-01 03:50:01.205410 140192967030336 onvif_media_service.c:118: [http://192.168.100.94/onvif/media_service] Invoking GetStreamUri
WARN  24-03-01 03:50:01.227830 140192967030336 onvif_base_service.c:200: Warning : NOT AUTHORIZED HTTP Error code [12]
ERROR 24-03-01 03:50:01.227950 140192967030336 onvif_device.c:110: [http://192.168.100.94/onvif/media_service] No stream uri returned...

Can you run the application with the environment ONVIF_DEBUG set to 1?

ONVIF_DEBUG=1 ./onvifmgr

This will cause the gsoap library to dump soap messages so that we can look at the raw response from the camera.

onyx82 commented 7 months ago
alexandru@alexandru-desktop:~/Documente/onvif/OnvifDeviceManager$ ONVIF_DEBUG=1 ./onvifmgr
INFO  24-03-01 22:49:03.108220 140443452058240 onvif-mgr.c:103: Using Gstreamer Version : 1.22.9.0
INFO  24-03-01 22:49:03.108319 140443452058240 onvifinitstaticplugins.c:223: Initializing Gstreamer plugins...
INFO  24-03-01 22:49:03.110165 140443452058240 onvifinitstaticplugins.c:228: Loading static plugins...
DEBUG 24-03-01 22:49:03.161023 140443452058240 onvifinitstaticplugins.c:435: Gstreamer plugins initialized...
WARN  24-03-01 22:49:03.161057 140443452058240 onvif-mgr.c:73: Element 'avdec_h264' not found.
WARN  24-03-01 22:49:03.161069 140443452058240 onvif-mgr.c:73: Element 'avdec_h265' not found.
WARN  24-03-01 22:49:03.161083 140443452058240 onvif-mgr.c:81: Found element 'openh264dec'. Increasing priority from 64 to 65...
INFO  24-03-01 22:49:03.161099 140443452058240 onvif-mgr.c:48: *** video/x-h264 decoders ***
INFO  24-03-01 22:49:03.161270 140443452058240 onvif-mgr.c:56: *    openh264dec[65]
INFO  24-03-01 22:49:03.161285 140443452058240 onvif-mgr.c:61: ****************************
INFO  24-03-01 22:49:03.161296 140443452058240 onvif-mgr.c:48: *** video/x-h265 decoders ***
INFO  24-03-01 22:49:03.161354 140443452058240 onvif-mgr.c:56: *    libde265dec[128]
INFO  24-03-01 22:49:03.161368 140443452058240 onvif-mgr.c:61: ****************************
INFO  24-03-01 22:49:03.161378 140443452058240 onvif-mgr.c:48: *** image/jpeg decoders ***
INFO  24-03-01 22:49:03.161436 140443452058240 onvif-mgr.c:56: *    jpegdec[256]
INFO  24-03-01 22:49:03.161449 140443452058240 onvif-mgr.c:61: ****************************
INFO  24-03-01 22:49:03.161460 140443452058240 onvif-mgr.c:48: *** video/x-av1 decoders ***
INFO  24-03-01 22:49:03.161518 140443452058240 onvif-mgr.c:61: ****************************
TRACE 24-03-01 22:49:03.161531 140443452058240 event_queue.c:83: create...
INFO  24-03-01 22:49:03.203333 140443452058240 app_settings.c:188: Reading Settings file onvifmgr_settings.ini
WARN  24-03-01 22:49:03.203416 140443452058240 app_settings.c:245: No config file found. Using default configs. 1
DEBUG 24-03-01 22:49:03.206684 140443452058240 src_retriever.c:12: Test Audio Src [pulsesrc] device [(null)]
INFO  24-03-01 22:49:03.404585 140443452058240 backchannel.c:111: Creating backchannel using source element pulsesrc
DEBUG 24-03-01 22:49:03.405195 140443390338624 queue_thread.c:25: Started...
DEBUG 24-03-01 22:49:03.405246 140443372115520 queue_thread.c:25: Started...
DEBUG 24-03-01 22:49:03.405304 140443363722816 queue_thread.c:25: Started...
DEBUG 24-03-01 22:49:03.405376 140443148875328 queue_thread.c:25: Started...
DEBUG 24-03-01 22:49:03.405435 140443140482624 queue_thread.c:25: Started...
DEBUG 24-03-01 22:49:03.405484 140443132089920 queue_thread.c:25: Started...
DEBUG 24-03-01 22:49:03.405557 140443123697216 queue_thread.c:25: Started...
TRACE 24-03-01 22:49:03.405593 140443452058240 profiles_dialog.c:119: create
TRACE 24-03-01 22:49:03.405607 140443452058240 app_dialog.c:69: init
DEBUG 24-03-01 22:49:03.405621 140443115304512 queue_thread.c:25: Started...
TRACE 24-03-01 22:49:03.406337 140443452058240 profiles_dialog.c:25: priv_ProfilesDialog__create_ui
TRACE 24-03-01 22:49:03.406651 140443452058240 app_dialog.c:69: init
TRACE 24-03-01 22:49:03.409274 140443452058240 credentials_input.c:28: create
TRACE 24-03-01 22:49:03.409394 140443452058240 app_dialog.c:69: init
TRACE 24-03-01 22:49:03.410998 140443452058240 msg_dialog.c:60: create
TRACE 24-03-01 22:49:03.411114 140443452058240 app_dialog.c:69: init
TRACE 24-03-01 22:49:03.425957 140443452058240 onvif_details.c:108: clear_details
TRAIL 24-03-01 22:49:03.426033 140443452058240 onvif_details.c:33: update_details_priv - invalid device.
INFO  24-03-01 22:49:27.689026 140443452058240 onvif_app.c:144: Starting ONVIF Devices Network Discovery...
TRACE 24-03-01 22:49:27.690090 140443390338624 event_queue.c:145: pop
TRACE 24-03-01 22:49:27.690107 140443390338624 event_queue.c:165: notify dispatching event...
TRACE 24-03-01 22:49:27.690149 140443390338624 onvif_app.c:134: _start_onvif_discovery
DEBUG 24-03-01 22:49:27.696813 140443390338624 onvif_discovery.c:208: Sending NVT probe...
DEBUG 24-03-01 22:49:29.700689 140443390338624 onvif_discovery.c:208: Sending NVT probe...
TRACE 24-03-01 22:49:31.703064 140443390338624 event_queue.c:173: notify dispatched event...
TRACE 24-03-01 22:49:31.703110 140443452058240 onvif_app.c:123: finished_discovery
INFO  24-03-01 22:49:36.048980 140443452058240 onvif_app.c:144: Starting ONVIF Devices Network Discovery...
TRACE 24-03-01 22:49:36.050094 140443372115520 event_queue.c:145: pop
TRACE 24-03-01 22:49:36.050111 140443372115520 event_queue.c:165: notify dispatching event...
TRACE 24-03-01 22:49:36.050151 140443372115520 onvif_app.c:134: _start_onvif_discovery
DEBUG 24-03-01 22:49:36.050480 140443372115520 onvif_discovery.c:208: Sending NVT probe...
DEBUG 24-03-01 22:49:38.052617 140443372115520 onvif_discovery.c:208: Sending NVT probe...
DEBUG 24-03-01 22:49:38.369128 140443372115520 onvif_discovery.c:64: ProbeMatches found...
TRACE 24-03-01 22:49:38.369166 140443372115520 probmatch.c:15: ProbMatches__create...
TRACE 24-03-01 22:49:38.369177 140443372115520 probmatch.c:84: ProbMatch__create...
TRACE 24-03-01 22:49:38.369194 140443372115520 onvif_app.c:118: _found_server
TRACE 24-03-01 22:49:38.369253 140443452058240 onvif_app.c:84: found_server
INFO  24-03-01 22:49:38.369269 140443452058240 onvif_app.c:93: Found server - Match count : 1
DEBUG 24-03-01 22:49:38.369288 140443452058240 onvif_device.c:184: OnvifDevice__create
INFO  24-03-01 22:49:38.369318 140443452058240 onvif_device.c:176: Created Device:
INFO  24-03-01 22:49:38.369329 140443452058240 onvif_device.c:177:  protocol -- http
INFO  24-03-01 22:49:38.369339 140443452058240 onvif_device.c:178:  host : 192.168.100.94
INFO  24-03-01 22:49:38.369350 140443452058240 onvif_device.c:179:  port -- (null)
INFO  24-03-01 22:49:38.369361 140443452058240 onvif_device.c:180:  endpoint : onvif/device_service
TRACE 24-03-01 22:49:38.379681 140443452058240 probmatch.c:22: ProbMatches__destroy...
TRACE 24-03-01 22:49:38.379721 140443452058240 probmatch.c:48: ProbMatch__destroy...
TRACE 24-03-01 22:49:38.379734 140443452058240 probmatch.c:68: ProbMatch__destroy... done
TRACE 24-03-01 22:49:38.379764 140443363722816 event_queue.c:145: pop
TRACE 24-03-01 22:49:38.379780 140443363722816 event_queue.c:165: notify dispatching event...
TRACE 24-03-01 22:49:38.379824 140443363722816 onvif_app.c:211: _display_onvif_device
INFO  24-03-01 22:49:38.379840 140443363722816 onvif_device.c:73: [http://192.168.100.94/onvif/device_service] OnvifDevice__authenticate
DEBUG 24-03-01 22:49:38.379857 140443363722816 onvif_device_service.c:82: [http://192.168.100.94/onvif/device_service] Invoking GetSystemDateAndTime
INFO  24-03-01 22:49:38.379960 140443363722816 onvif_base_service.c:142: ONVIF_DEBUG variable set. '1'
POST /onvif/device_service HTTP/1.1
Host: 192.168.100.94
User-Agent: gSOAP/2.8
Content-Type: application/soap+xml; charset=utf-8; action="http://www.onvif.org/ver10/device/wsdl/GetSystemDateAndTime"
Content-Length: 233
Connection: close
Accept-Encoding: gzip,deflate
SOAPAction: "http://www.onvif.org/ver10/device/wsdl/GetSystemDateAndTime"

<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://www.w3.org/2003/05/soap-envelope"><SOAP-ENV:Body><tds:GetSystemDateAndTime xmlns:tds="http://www.onvif.org/ver10/device/wsdl"></tds:GetSystemDateAndTime></SOAP-ENV:Body></SOAP-ENV:Envelope>
HTTP/1.1 200 OK
Content-Type: application/soap+xml; charset=utf-8
Connection: close
Content-Length: 1006

<?xml version="1.0" encoding="utf-8" standalone="yes" ?><s:Envelope xmlns:sc="http://www.w3.org/2003/05/soap-encoding" xmlns:s="http://www.w3.org/2003/05/soap-envelope" xmlns:tt="http://www.onvif.org/ver10/schema" xmlns:tds="http://www.onvif.org/ver10/device/wsdl"><s:Header/><s:Body><tds:GetSystemDateAndTimeResponse><tds:SystemDateAndTime><tt:DateTimeType>NTP</tt:DateTimeType><tt:DaylightSavings>false</tt:DaylightSavings><tt:TimeZone><tt:TZ>GMT+02:00PDT,M1.1.1/00:00:00,M1.1.2/00:00:00</tt:TZ></tt:TimeZone><tt:UTCDateTime><tt:Time><tt:Hour>20</tt:Hour><tt:Minute>49</tt:Minute><tt:Second>38</tt:Second></tt:Time><tt:Date><tt:Year>2024</tt:Year><tt:Month>3</tt:Month><tt:Day>1</tt:Day></tt:Date></tt:UTCDateTime><tt:LocalDateTime><tt:Time><tt:Hour>22</tt:Hour><tt:Minute>49</tt:Minute><tt:Second>38</tt:Second></tt:Time><tt:Date><tt:Year>2024</tt:Year><tt:Month>3</tt:Month><tt:Day>1</tt:Day></tt:Date></tt:LocalDateTime></tds:SystemDateAndTime></tds:GetSystemDateAndTimeResponse></s:Body></s:Envelope>INFO  24-03-01 22:49:38.414153 140443363722816 onvif_base_service.c:158: ONVIF_DEBUG variable set. '1'
INFO  24-03-01 22:49:38.414280 140443363722816 onvif_device.c:93: [http://192.168.100.94/onvif/device_service] Camera SystemDateAndTime : '2024-03-01 22:49:38'
TRACE 24-03-01 22:49:38.414295 140443363722816 onvif_device.c:46: [http://192.168.100.94/onvif/device_service] OnvifDevice__createMediaService
DEBUG 24-03-01 22:49:38.414309 140443363722816 onvif_device_service.c:99: [http://192.168.100.94/onvif/device_service] Invoking GetCapabilities
INFO  24-03-01 22:49:38.414327 140443363722816 onvif_base_service.c:142: ONVIF_DEBUG variable set. '1'
POST /onvif/device_service HTTP/1.1
Host: 192.168.100.94
User-Agent: gSOAP/2.8
Content-Type: application/soap+xml; charset=utf-8; action="http://www.onvif.org/ver10/device/wsdl/GetCapabilities"
Content-Length: 255
Connection: close
Accept-Encoding: gzip,deflate
SOAPAction: "http://www.onvif.org/ver10/device/wsdl/GetCapabilities"

<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://www.w3.org/2003/05/soap-envelope"><SOAP-ENV:Body><tds:GetCapabilities xmlns:tds="http://www.onvif.org/ver10/device/wsdl"><tds:Category>All</tds:Category></tds:GetCapabilities></SOAP-ENV:Body></SOAP-ENV:Envelope>
HTTP/1.1 200 OK
Content-Type: application/soap+xml; charset=utf-8
Connection: close
Content-Length: 4846

<?xml version="1.0" encoding="utf-8" standalone="yes" ?><s:Envelope xmlns:sc="http://www.w3.org/2003/05/soap-encoding" xmlns:s="http://www.w3.org/2003/05/soap-envelope" xmlns:tt="http://www.onvif.org/ver10/schema" xmlns:tds="http://www.onvif.org/ver10/device/wsdl"><s:Header/><s:Body><tds:GetCapabilitiesResponse><tds:Capabilities><tt:Analytics><tt:XAddr>http://192.168.100.94/onvif/analytics_service</tt:XAddr><tt:RuleSupport>true</tt:RuleSupport><tt:AnalyticsModuleSupport>true</tt:AnalyticsModuleSupport></tt:Analytics><tt:Device><tt:XAddr>http://192.168.100.94/onvif/device_service</tt:XAddr><tt:Network><tt:IPFilter>false</tt:IPFilter><tt:ZeroConfiguration>false</tt:ZeroConfiguration><tt:IPVersion6>false</tt:IPVersion6><tt:DynDNS>false</tt:DynDNS><tt:Extension><tt:Dot11Configuration>false</tt:Dot11Configuration></tt:Extension></tt:Network><tt:System><tt:DiscoveryResolve>false</tt:DiscoveryResolve><tt:DiscoveryBye>true</tt:DiscoveryBye><tt:RemoteDiscovery>false</tt:RemoteDiscovery><tt:SystemBackup>false</tt:SystemBackup><tt:SystemLogging>true</tt:SystemLogging><tt:FirmwareUpgrade>true</tt:FirmwareUpgrade><tt:SupportedVersions><tt:Major>2</tt:Major><tt:Minor>00</tt:Minor></tt:SupportedVersions><tt:SupportedVersions><tt:Major>2</tt:Major><tt:Minor>10</tt:Minor></tt:SupportedVersions><tt:SupportedVersions><tt:Major>2</tt:Major><tt:Minor>20</tt:Minor></tt:SupportedVersions><tt:SupportedVersions><tt:Major>2</tt:Major><tt:Minor>30</tt:Minor></tt:SupportedVersions><tt:SupportedVersions><tt:Major>2</tt:Major><tt:Minor>40</tt:Minor></tt:SupportedVersions><tt:SupportedVersions><tt:Major>2</tt:Major><tt:Minor>42</tt:Minor></tt:SupportedVersions><tt:SupportedVersions><tt:Major>16</tt:Major><tt:Minor>12</tt:Minor></tt:SupportedVersions><tt:SupportedVersions><tt:Major>18</tt:Major><tt:Minor>06</tt:Minor></tt:SupportedVersions><tt:SupportedVersions><tt:Major>18</tt:Major><tt:Minor>12</tt:Minor></tt:SupportedVersions><tt:SupportedVersions><tt:Major>19</tt:Major><tt:Minor>06</tt:Minor></tt:SupportedVersions><tt:SupportedVersions><tt:Major>19</tt:Major><tt:Minor>12</tt:Minor></tt:SupportedVersions><tt:Extension><tt:HttpFirmwareUpgrade>true</tt:HttpFirmwareUpgrade><tt:HttpSystemBackup>false</tt:HttpSystemBackup><tt:HttpSystemLogging>false</tt:HttpSystemLogging><tt:HttpSupportInformation>false</tt:HttpSupportInformation></tt:Extension></tt:System><tt:IO><tt:InputConnectors>0</tt:InputConnectors><tt:RelayOutputs>0</tt:RelayOutputs><tt:Extension><tt:Auxiliary>false</tt:Auxiliary><tt:AuxiliaryCommands></tt:AuxiliaryCommands><tt:Extension></tt:Extension></tt:Extension></tt:IO><tt:Security><tt:TLS1.1>false</tt:TLS1.1><tt:TLS1.2>false</tt:TLS1.2><tt:OnboardKeyGeneration>false</tt:OnboardKeyGeneration><tt:AccessPolicyConfig>false</tt:AccessPolicyConfig><tt:X.509Token>false</tt:X.509Token><tt:SAMLToken>false</tt:SAMLToken><tt:KerberosToken>false</tt:KerberosToken><tt:RELToken>false</tt:RELToken><tt:Extension><tt:TLS1.0>false</tt:TLS1.0><tt:Extension><tt:Dot1X>false</tt:Dot1X><tt:SupportedEAPMethod>0</tt:SupportedEAPMethod><tt:RemoteUserHandling>false</tt:RemoteUserHandling></tt:Extension></tt:Extension></tt:Security></tt:Device><tt:Events><tt:XAddr>http://192.168.100.94/onvif/event_service</tt:XAddr><tt:WSSubscriptionPolicySupport>true</tt:WSSubscriptionPolicySupport><tt:WSPullPointSupport>true</tt:WSPullPointSupport><tt:WSPausableSubscriptionManagerInterfaceSupport>false</tt:WSPausableSubscriptionManagerInterfaceSupport></tt:Events><tt:Imaging><tt:XAddr>http://192.168.100.94/onvif/imaging_service</tt:XAddr></tt:Imaging><tt:Media><tt:XAddr>http://192.168.100.94/onvif/media_service</tt:XAddr><tt:StreamingCapabilities><tt:RTPMulticast>true</tt:RTPMulticast><tt:RTP_TCP>true</tt:RTP_TCP><tt:RTP_RTSP_TCP>true</tt:RTP_RTSP_TCP></tt:StreamingCapabilities><tt:Extension><tt:ProfileCapabilities><tt:MaximumNumberOfProfiles>6</tt:MaximumNumberOfProfiles></tt:ProfileCapabilities></tt:Extension></tt:Media><tt:Extension><tt:DeviceIO><tt:XAddr>http://192.168.100.94/onvif/deviceIO_service</tt:XAddr><tt:VideoSources>1</tt:VideoSources><tt:VideoOutputs>0</tt:VideoOutputs><tt:AudioSources>1</tt:AudioSources><tt:AudioOutputs>0</tt:AudioOutputs><tt:RelayOutputs>0</tt:RelayOutputs></tt:DeviceIO><tt:Recording><tt:XAddr>http://192.168.100.94/onvif/recording_service</tt:XAddr><tt:ReceiverSource>false</tt:ReceiverSource><tt:MediaProfileSource>true</tt:MediaProfileSource><tt:DynamicRecordings>true</tt:DynamicRecordings><tt:DynamicTracks>false</tt:DynamicTracks><tt:MaxStringLength>129</tt:MaxStringLength></tt:Recording><tt:Search><tt:XAddr>http://192.168.100.94/onvif/search_service</tt:XAddr><tt:MetadataSearch>false</tt:MetadataSearch></tt:Search><tt:Replay><tt:XAddr>http://192.168.100.94/onvif/replay_service</tt:XAddr></tt:Replay></tt:Extension></tds:Capabilities></tds:GetCapabilitiesResponse></s:Body></s:Envelope>INFO  24-03-01 22:49:38.454493 140443363722816 onvif_base_service.c:158: ONVIF_DEBUG variable set. '1'
DEBUG 24-03-01 22:49:38.454580 140443363722816 onvif_device.c:104: [http://192.168.100.94/onvif/media_service] Successfully created Media soap 
TRACE 24-03-01 22:49:38.454596 140443363722816 onvif_media_service.c:267: [http://192.168.100.94/onvif/media_service] OnvifMediaService__get_profile_token 0
DEBUG 24-03-01 22:49:38.454613 140443363722816 onvif_media_service.c:79: [http://192.168.100.94/onvif/media_service] Invoking GetProfiles
INFO  24-03-01 22:49:38.454634 140443363722816 onvif_base_service.c:142: ONVIF_DEBUG variable set. '1'
POST /onvif/media_service HTTP/1.1
Host: 192.168.100.94
User-Agent: gSOAP/2.8
Content-Type: application/soap+xml; charset=utf-8; action="http://www.onvif.org/ver10/media/wsdl/GetProfiles"
Content-Length: 214
Connection: close
Accept-Encoding: gzip,deflate
SOAPAction: "http://www.onvif.org/ver10/media/wsdl/GetProfiles"

<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://www.w3.org/2003/05/soap-envelope"><SOAP-ENV:Body><trt:GetProfiles xmlns:trt="http://www.onvif.org/ver10/media/wsdl"></trt:GetProfiles></SOAP-ENV:Body></SOAP-ENV:Envelope>
HTTP/1.1 401 Unauthorized
Content-Type: application/soap+xml; charset=utf-8
Connection: close
WWW-Authenticate: Digest realm="Login to 0ccf58c7410332c7caa363406561b351",qop="auth",nonce="b252aWYtZGlnZXN0OjQzNTY3Mzg5NDgw", opaque="", stale="false"
Content-Length: 0

WARN  24-03-01 22:49:38.477600 140443363722816 onvif_base_service.c:200: Warning : NOT AUTHORIZED HTTP Error code [401]
INFO  24-03-01 22:49:38.477628 140443363722816 onvif_base_service.c:158: ONVIF_DEBUG variable set. '1'
DEBUG 24-03-01 22:49:38.477671 140443363722816 onvif_media_service.c:118: [http://192.168.100.94/onvif/media_service] Invoking GetStreamUri
INFO  24-03-01 22:49:38.477692 140443363722816 onvif_base_service.c:142: ONVIF_DEBUG variable set. '1'
POST /onvif/media_service HTTP/1.1
Host: 192.168.100.94
User-Agent: gSOAP/2.8
Content-Type: application/soap+xml; charset=utf-8; action="http://www.onvif.org/ver10/media/wsdl/GetStreamUri"
Content-Length: 471
Connection: close
Accept-Encoding: gzip,deflate
SOAPAction: "http://www.onvif.org/ver10/media/wsdl/GetStreamUri"

<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://www.w3.org/2003/05/soap-envelope"><SOAP-ENV:Body><trt:GetStreamUri xmlns:trt="http://www.onvif.org/ver10/media/wsdl"><trt:StreamSetup><tt:Stream xmlns:tt="http://www.onvif.org/ver10/schema">RTP-Unicast</tt:Stream><tt:Transport xmlns:tt="http://www.onvif.org/ver10/schema"><tt:Protocol>UDP</tt:Protocol></tt:Transport></trt:StreamSetup><trt:ProfileToken></trt:ProfileToken></trt:GetStreamUri></SOAP-ENV:Body></SOAP-ENV:Envelope>
HTTP/1.1 401 Unauthorized
Content-Type: application/soap+xml; charset=utf-8
Connection: close
WWW-Authenticate: Digest realm="Login to 0ccf58c7410332c7caa363406561b351",qop="auth",nonce="b252aWYtZGlnZXN0OjQzNTY3Mzg5NTAw", opaque="", stale="false"
Content-Length: 0

WARN  24-03-01 22:49:38.499117 140443363722816 onvif_base_service.c:200: Warning : NOT AUTHORIZED HTTP Error code [401]
INFO  24-03-01 22:49:38.499145 140443363722816 onvif_base_service.c:158: ONVIF_DEBUG variable set. '1'
ERROR 24-03-01 22:49:38.499186 140443363722816 onvif_device.c:110: [http://192.168.100.94/onvif/media_service] No stream uri returned...
TRACE 24-03-01 22:49:38.499204 140443363722816 omgr_device_row.c:418: OnvifMgrDeviceRow__load_thumbnail
TRACE 24-03-01 22:49:38.501570 140443363722816 omgr_device_row.c:490: OnvifMgrDeviceRow__load_thumbnail done.
TRACE 24-03-01 22:49:38.501631 140443363722816 event_queue.c:173: notify dispatched event...
TRACE 24-03-01 22:49:40.371095 140443372115520 event_queue.c:173: notify dispatched event...
TRACE 24-03-01 22:49:40.371150 140443452058240 onvif_app.c:123: finished_discovery
DEBUG 24-03-01 22:49:44.352986 140443452058240 onvif_app.c:392: OnvifApp__select_device
TRACE 24-03-01 22:49:44.353033 140443452058240 onvif_details.c:108: clear_details
TRACE 24-03-01 22:49:44.353074 140443148875328 event_queue.c:145: pop
TRACE 24-03-01 22:49:44.353093 140443148875328 event_queue.c:165: notify dispatching event...
TRACE 24-03-01 22:49:44.353142 140443148875328 onvif_app.c:200: _stop_onvif_stream
DEBUG 24-03-01 22:49:44.353164 140443148875328 gstrtspplayer.c:526: RtspPlayer__stop
DEBUG 24-03-01 22:49:44.353193 140443452058240 onvif_app.c:902: OnvifApp__set_device - valid device
INFO  24-03-01 22:49:44.353472 140443148875328 onvif_app.c:165: Stream stopped
TRACE 24-03-01 22:49:44.353486 140443148875328 event_queue.c:173: notify dispatched event...
DEBUG 24-03-01 22:49:44.358426 140443452058240 app_dialog.c:98: show
INFO  24-03-01 22:50:07.720741 140443452058240 onvif_app.c:374: OnvifAuthentication attempt...
TRACE 24-03-01 22:50:07.720835 140443140482624 event_queue.c:145: pop
TRACE 24-03-01 22:50:07.720850 140443140482624 event_queue.c:165: notify dispatching event...
DEBUG 24-03-01 22:50:07.720889 140443140482624 onvif_app.c:359: _onvif_authentication_reload
INFO  24-03-01 22:50:07.720908 140443140482624 onvif_device.c:73: [http://192.168.100.94/onvif/device_service] OnvifDevice__authenticate
INFO  24-03-01 22:50:07.720948 140443140482624 onvif_device.c:93: [http://192.168.100.94/onvif/device_service] Camera SystemDateAndTime : '2024-03-01 22:49:38'
TRACE 24-03-01 22:50:07.720962 140443140482624 onvif_device.c:46: [http://192.168.100.94/onvif/device_service] OnvifDevice__createMediaService
DEBUG 24-03-01 22:50:07.720975 140443140482624 onvif_device_service.c:99: [http://192.168.100.94/onvif/device_service] Invoking GetCapabilities
INFO  24-03-01 22:50:07.721556 140443140482624 onvif_base_service.c:142: ONVIF_DEBUG variable set. '1'
POST /onvif/device_service HTTP/1.1
Host: 192.168.100.94
User-Agent: gSOAP/2.8
Content-Type: application/soap+xml; charset=utf-8; action="http://www.onvif.org/ver10/device/wsdl/GetCapabilities"
Content-Length: 1336
Connection: close
Accept-Encoding: gzip,deflate
SOAPAction: "http://www.onvif.org/ver10/device/wsdl/GetCapabilities"

<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://www.w3.org/2003/05/soap-envelope"><SOAP-ENV:Header><wsse:Security xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" SOAP-ENV:mustUnderstand="true"><wsu:Timestamp xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" wsu:Id="Time"><wsu:Created>2024-03-01T20:50:07Z</wsu:Created><wsu:Expires>2024-03-01T20:50:17Z</wsu:Expires></wsu:Timestamp><wsse:UsernameToken xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" wsu:Id="Auth"><wsse:Username>admin</wsse:Username><wsse:Password Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordDigest">WxrdoeNfiroRzs7pPaaDVPbhm/w=</wsse:Password><wsse:Nonce EncodingType="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-soap-message-security-1.0#Base64Binary">fz/iZUhb0U/5zx9K4OGiUG1DkEc=</wsse:Nonce><wsu:Created>2024-03-01T20:50:07Z</wsu:Created></wsse:UsernameToken></wsse:Security></SOAP-ENV:Header><SOAP-ENV:Body><tds:GetCapabilities xmlns:tds="http://www.onvif.org/ver10/device/wsdl"><tds:Category>All</tds:Category></tds:GetCapabilities></SOAP-ENV:Body></SOAP-ENV:Envelope>
HTTP/1.1 200 OK
Content-Type: application/soap+xml; charset=utf-8
Connection: close
Content-Length: 4846

<?xml version="1.0" encoding="utf-8" standalone="yes" ?><s:Envelope xmlns:sc="http://www.w3.org/2003/05/soap-encoding" xmlns:s="http://www.w3.org/2003/05/soap-envelope" xmlns:tt="http://www.onvif.org/ver10/schema" xmlns:tds="http://www.onvif.org/ver10/device/wsdl"><s:Header/><s:Body><tds:GetCapabilitiesResponse><tds:Capabilities><tt:Analytics><tt:XAddr>http://192.168.100.94/onvif/analytics_service</tt:XAddr><tt:RuleSupport>true</tt:RuleSupport><tt:AnalyticsModuleSupport>true</tt:AnalyticsModuleSupport></tt:Analytics><tt:Device><tt:XAddr>http://192.168.100.94/onvif/device_service</tt:XAddr><tt:Network><tt:IPFilter>false</tt:IPFilter><tt:ZeroConfiguration>false</tt:ZeroConfiguration><tt:IPVersion6>false</tt:IPVersion6><tt:DynDNS>false</tt:DynDNS><tt:Extension><tt:Dot11Configuration>false</tt:Dot11Configuration></tt:Extension></tt:Network><tt:System><tt:DiscoveryResolve>false</tt:DiscoveryResolve><tt:DiscoveryBye>true</tt:DiscoveryBye><tt:RemoteDiscovery>false</tt:RemoteDiscovery><tt:SystemBackup>false</tt:SystemBackup><tt:SystemLogging>true</tt:SystemLogging><tt:FirmwareUpgrade>true</tt:FirmwareUpgrade><tt:SupportedVersions><tt:Major>2</tt:Major><tt:Minor>00</tt:Minor></tt:SupportedVersions><tt:SupportedVersions><tt:Major>2</tt:Major><tt:Minor>10</tt:Minor></tt:SupportedVersions><tt:SupportedVersions><tt:Major>2</tt:Major><tt:Minor>20</tt:Minor></tt:SupportedVersions><tt:SupportedVersions><tt:Major>2</tt:Major><tt:Minor>30</tt:Minor></tt:SupportedVersions><tt:SupportedVersions><tt:Major>2</tt:Major><tt:Minor>40</tt:Minor></tt:SupportedVersions><tt:SupportedVersions><tt:Major>2</tt:Major><tt:Minor>42</tt:Minor></tt:SupportedVersions><tt:SupportedVersions><tt:Major>16</tt:Major><tt:Minor>12</tt:Minor></tt:SupportedVersions><tt:SupportedVersions><tt:Major>18</tt:Major><tt:Minor>06</tt:Minor></tt:SupportedVersions><tt:SupportedVersions><tt:Major>18</tt:Major><tt:Minor>12</tt:Minor></tt:SupportedVersions><tt:SupportedVersions><tt:Major>19</tt:Major><tt:Minor>06</tt:Minor></tt:SupportedVersions><tt:SupportedVersions><tt:Major>19</tt:Major><tt:Minor>12</tt:Minor></tt:SupportedVersions><tt:Extension><tt:HttpFirmwareUpgrade>true</tt:HttpFirmwareUpgrade><tt:HttpSystemBackup>false</tt:HttpSystemBackup><tt:HttpSystemLogging>false</tt:HttpSystemLogging><tt:HttpSupportInformation>false</tt:HttpSupportInformation></tt:Extension></tt:System><tt:IO><tt:InputConnectors>0</tt:InputConnectors><tt:RelayOutputs>0</tt:RelayOutputs><tt:Extension><tt:Auxiliary>false</tt:Auxiliary><tt:AuxiliaryCommands></tt:AuxiliaryCommands><tt:Extension></tt:Extension></tt:Extension></tt:IO><tt:Security><tt:TLS1.1>false</tt:TLS1.1><tt:TLS1.2>false</tt:TLS1.2><tt:OnboardKeyGeneration>false</tt:OnboardKeyGeneration><tt:AccessPolicyConfig>false</tt:AccessPolicyConfig><tt:X.509Token>false</tt:X.509Token><tt:SAMLToken>false</tt:SAMLToken><tt:KerberosToken>false</tt:KerberosToken><tt:RELToken>false</tt:RELToken><tt:Extension><tt:TLS1.0>false</tt:TLS1.0><tt:Extension><tt:Dot1X>false</tt:Dot1X><tt:SupportedEAPMethod>0</tt:SupportedEAPMethod><tt:RemoteUserHandling>false</tt:RemoteUserHandling></tt:Extension></tt:Extension></tt:Security></tt:Device><tt:Events><tt:XAddr>http://192.168.100.94/onvif/event_service</tt:XAddr><tt:WSSubscriptionPolicySupport>true</tt:WSSubscriptionPolicySupport><tt:WSPullPointSupport>true</tt:WSPullPointSupport><tt:WSPausableSubscriptionManagerInterfaceSupport>false</tt:WSPausableSubscriptionManagerInterfaceSupport></tt:Events><tt:Imaging><tt:XAddr>http://192.168.100.94/onvif/imaging_service</tt:XAddr></tt:Imaging><tt:Media><tt:XAddr>http://192.168.100.94/onvif/media_service</tt:XAddr><tt:StreamingCapabilities><tt:RTPMulticast>true</tt:RTPMulticast><tt:RTP_TCP>true</tt:RTP_TCP><tt:RTP_RTSP_TCP>true</tt:RTP_RTSP_TCP></tt:StreamingCapabilities><tt:Extension><tt:ProfileCapabilities><tt:MaximumNumberOfProfiles>6</tt:MaximumNumberOfProfiles></tt:ProfileCapabilities></tt:Extension></tt:Media><tt:Extension><tt:DeviceIO><tt:XAddr>http://192.168.100.94/onvif/deviceIO_service</tt:XAddr><tt:VideoSources>1</tt:VideoSources><tt:VideoOutputs>0</tt:VideoOutputs><tt:AudioSources>1</tt:AudioSources><tt:AudioOutputs>0</tt:AudioOutputs><tt:RelayOutputs>0</tt:RelayOutputs></tt:DeviceIO><tt:Recording><tt:XAddr>http://192.168.100.94/onvif/recording_service</tt:XAddr><tt:ReceiverSource>false</tt:ReceiverSource><tt:MediaProfileSource>true</tt:MediaProfileSource><tt:DynamicRecordings>true</tt:DynamicRecordings><tt:DynamicTracks>false</tt:DynamicTracks><tt:MaxStringLength>129</tt:MaxStringLength></tt:Recording><tt:Search><tt:XAddr>http://192.168.100.94/onvif/search_service</tt:XAddr><tt:MetadataSearch>false</tt:MetadataSearch></tt:Search><tt:Replay><tt:XAddr>http://192.168.100.94/onvif/replay_service</tt:XAddr></tt:Replay></tt:Extension></tds:Capabilities></tds:GetCapabilitiesResponse></s:Body></s:Envelope>INFO  24-03-01 22:50:07.779607 140443140482624 onvif_base_service.c:158: ONVIF_DEBUG variable set. '1'
DEBUG 24-03-01 22:50:07.779679 140443140482624 onvif_device.c:104: [http://192.168.100.94/onvif/media_service] Successfully created Media soap 
TRACE 24-03-01 22:50:07.779694 140443140482624 onvif_media_service.c:267: [http://192.168.100.94/onvif/media_service] OnvifMediaService__get_profile_token 0
DEBUG 24-03-01 22:50:07.779709 140443140482624 onvif_media_service.c:79: [http://192.168.100.94/onvif/media_service] Invoking GetProfiles
INFO  24-03-01 22:50:07.779792 140443140482624 onvif_base_service.c:142: ONVIF_DEBUG variable set. '1'
POST /onvif/media_service HTTP/1.1
Host: 192.168.100.94
User-Agent: gSOAP/2.8
Content-Type: application/soap+xml; charset=utf-8; action="http://www.onvif.org/ver10/media/wsdl/GetProfiles"
Content-Length: 1295
Connection: close
Accept-Encoding: gzip,deflate
SOAPAction: "http://www.onvif.org/ver10/media/wsdl/GetProfiles"

<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://www.w3.org/2003/05/soap-envelope"><SOAP-ENV:Header><wsse:Security xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" SOAP-ENV:mustUnderstand="true"><wsu:Timestamp xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" wsu:Id="Time"><wsu:Created>2024-03-01T20:50:07Z</wsu:Created><wsu:Expires>2024-03-01T20:50:17Z</wsu:Expires></wsu:Timestamp><wsse:UsernameToken xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" wsu:Id="Auth"><wsse:Username>admin</wsse:Username><wsse:Password Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordDigest">9/s8M74v6H359kCfUuBRv04Amow=</wsse:Password><wsse:Nonce EncodingType="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-soap-message-security-1.0#Base64Binary">fz/iZfofczIk++rGc7R0cED0VQk=</wsse:Nonce><wsu:Created>2024-03-01T20:50:07Z</wsu:Created></wsse:UsernameToken></wsse:Security></SOAP-ENV:Header><SOAP-ENV:Body><trt:GetProfiles xmlns:trt="http://www.onvif.org/ver10/media/wsdl"></trt:GetProfiles></SOAP-ENV:Body></SOAP-ENV:Envelope>
HTTP/1.1 400 Bad Request
Content-Type: application/soap+xml; charset=utf-8
Connection: close
Content-Length: 659

<?xml version="1.0" encoding="utf-8" standalone="yes" ?><s:Envelope xmlns:sc="http://www.w3.org/2003/05/soap-encoding" xmlns:s="http://www.w3.org/2003/05/soap-envelope" xmlns:ter="http://www.onvif.org/ver10/error" xmlns:wsnt="http://docs.oasis-open.org/wsn/b-2" xmlns:wsrf-bf="http://docs.oasis-open.org/wsrf/bf-2" xmlns:d="http://schemas.xmlsoap.org/ws/2005/04/discovery"><s:Body><s:Fault><s:Code><s:Value>s:Sender</s:Value><s:Subcode><s:Value>ter:NotAuthorized</s:Value></s:Subcode></s:Code><s:Reason><s:Text xml:lang="en">Sender not Authorized. Invalid username or password! You still have 25 attempt(s).</s:Text></s:Reason></s:Fault></s:Body></s:Envelope>WARN  24-03-01 22:50:07.815237 140443140482624 onvif_base_service.c:200: Warning : NOT AUTHORIZED HTTP Error code [12]
INFO  24-03-01 22:50:07.815277 140443140482624 onvif_base_service.c:158: ONVIF_DEBUG variable set. '1'
DEBUG 24-03-01 22:50:07.815328 140443140482624 onvif_media_service.c:118: [http://192.168.100.94/onvif/media_service] Invoking GetStreamUri
INFO  24-03-01 22:50:07.815422 140443140482624 onvif_base_service.c:142: ONVIF_DEBUG variable set. '1'
POST /onvif/media_service HTTP/1.1
Host: 192.168.100.94
User-Agent: gSOAP/2.8
Content-Type: application/soap+xml; charset=utf-8; action="http://www.onvif.org/ver10/media/wsdl/GetStreamUri"
Content-Length: 1552
Connection: close
Accept-Encoding: gzip,deflate
SOAPAction: "http://www.onvif.org/ver10/media/wsdl/GetStreamUri"

<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://www.w3.org/2003/05/soap-envelope"><SOAP-ENV:Header><wsse:Security xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" SOAP-ENV:mustUnderstand="true"><wsu:Timestamp xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" wsu:Id="Time"><wsu:Created>2024-03-01T20:50:07Z</wsu:Created><wsu:Expires>2024-03-01T20:50:17Z</wsu:Expires></wsu:Timestamp><wsse:UsernameToken xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" wsu:Id="Auth"><wsse:Username>admin</wsse:Username><wsse:Password Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordDigest">+qQERDeUu2TNh0Rxk/QSJKFn/60=</wsse:Password><wsse:Nonce EncodingType="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-soap-message-security-1.0#Base64Binary">fz/iZcgMyNUxVuUlbpKxLyJ6ukk=</wsse:Nonce><wsu:Created>2024-03-01T20:50:07Z</wsu:Created></wsse:UsernameToken></wsse:Security></SOAP-ENV:Header><SOAP-ENV:Body><trt:GetStreamUri xmlns:trt="http://www.onvif.org/ver10/media/wsdl"><trt:StreamSetup><tt:Stream xmlns:tt="http://www.onvif.org/ver10/schema">RTP-Unicast</tt:Stream><tt:Transport xmlns:tt="http://www.onvif.org/ver10/schema"><tt:Protocol>UDP</tt:Protocol></tt:Transport></trt:StreamSetup><trt:ProfileToken></trt:ProfileToken></trt:GetStreamUri></SOAP-ENV:Body></SOAP-ENV:Envelope>
HTTP/1.1 400 Bad Request
Content-Type: application/soap+xml; charset=utf-8
Connection: close
Content-Length: 659

<?xml version="1.0" encoding="utf-8" standalone="yes" ?><s:Envelope xmlns:sc="http://www.w3.org/2003/05/soap-encoding" xmlns:s="http://www.w3.org/2003/05/soap-envelope" xmlns:ter="http://www.onvif.org/ver10/error" xmlns:wsnt="http://docs.oasis-open.org/wsn/b-2" xmlns:wsrf-bf="http://docs.oasis-open.org/wsrf/bf-2" xmlns:d="http://schemas.xmlsoap.org/ws/2005/04/discovery"><s:Body><s:Fault><s:Code><s:Value>s:Sender</s:Value><s:Subcode><s:Value>ter:NotAuthorized</s:Value></s:Subcode></s:Code><s:Reason><s:Text xml:lang="en">Sender not Authorized. Invalid username or password! You still have 24 attempt(s).</s:Text></s:Reason></s:Fault></s:Body></s:Envelope>WARN  24-03-01 22:50:07.868035 140443140482624 onvif_base_service.c:200: Warning : NOT AUTHORIZED HTTP Error code [12]
INFO  24-03-01 22:50:07.868077 140443140482624 onvif_base_service.c:158: ONVIF_DEBUG variable set. '1'
ERROR 24-03-01 22:50:07.868119 140443140482624 onvif_device.c:110: [http://192.168.100.94/onvif/media_service] No stream uri returned...
TRACE 24-03-01 22:50:07.868138 140443140482624 event_queue.c:173: notify dispatched event...
INFO  24-03-01 22:50:25.936565 140443452058240 onvif_app.c:374: OnvifAuthentication attempt...
TRACE 24-03-01 22:50:25.936676 140443132089920 event_queue.c:145: pop
TRACE 24-03-01 22:50:25.936691 140443132089920 event_queue.c:165: notify dispatching event...
DEBUG 24-03-01 22:50:25.936736 140443132089920 onvif_app.c:359: _onvif_authentication_reload
INFO  24-03-01 22:50:25.936756 140443132089920 onvif_device.c:73: [http://192.168.100.94/onvif/device_service] OnvifDevice__authenticate
INFO  24-03-01 22:50:25.936792 140443132089920 onvif_device.c:93: [http://192.168.100.94/onvif/device_service] Camera SystemDateAndTime : '2024-03-01 22:49:38'
TRACE 24-03-01 22:50:25.936806 140443132089920 onvif_device.c:46: [http://192.168.100.94/onvif/device_service] OnvifDevice__createMediaService
DEBUG 24-03-01 22:50:25.936820 140443132089920 onvif_device_service.c:99: [http://192.168.100.94/onvif/device_service] Invoking GetCapabilities
INFO  24-03-01 22:50:25.937040 140443132089920 onvif_base_service.c:142: ONVIF_DEBUG variable set. '1'
POST /onvif/device_service HTTP/1.1
Host: 192.168.100.94
User-Agent: gSOAP/2.8
Content-Type: application/soap+xml; charset=utf-8; action="http://www.onvif.org/ver10/device/wsdl/GetCapabilities"
Content-Length: 1336
Connection: close
Accept-Encoding: gzip,deflate
SOAPAction: "http://www.onvif.org/ver10/device/wsdl/GetCapabilities"

<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://www.w3.org/2003/05/soap-envelope"><SOAP-ENV:Header><wsse:Security xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" SOAP-ENV:mustUnderstand="true"><wsu:Timestamp xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" wsu:Id="Time"><wsu:Created>2024-03-01T20:50:25Z</wsu:Created><wsu:Expires>2024-03-01T20:50:35Z</wsu:Expires></wsu:Timestamp><wsse:UsernameToken xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" wsu:Id="Auth"><wsse:Username>admin</wsse:Username><wsse:Password Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordDigest">ykfzl5Vq3PIT8DcKyt3es7GrTSs=</wsse:Password><wsse:Nonce EncodingType="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-soap-message-security-1.0#Base64Binary">kT/iZS+Ok24IGBP25jW1GQ/JxWY=</wsse:Nonce><wsu:Created>2024-03-01T20:50:25Z</wsu:Created></wsse:UsernameToken></wsse:Security></SOAP-ENV:Header><SOAP-ENV:Body><tds:GetCapabilities xmlns:tds="http://www.onvif.org/ver10/device/wsdl"><tds:Category>All</tds:Category></tds:GetCapabilities></SOAP-ENV:Body></SOAP-ENV:Envelope>
HTTP/1.1 200 OK
Content-Type: application/soap+xml; charset=utf-8
Connection: close
Content-Length: 4846

<?xml version="1.0" encoding="utf-8" standalone="yes" ?><s:Envelope xmlns:sc="http://www.w3.org/2003/05/soap-encoding" xmlns:s="http://www.w3.org/2003/05/soap-envelope" xmlns:tt="http://www.onvif.org/ver10/schema" xmlns:tds="http://www.onvif.org/ver10/device/wsdl"><s:Header/><s:Body><tds:GetCapabilitiesResponse><tds:Capabilities><tt:Analytics><tt:XAddr>http://192.168.100.94/onvif/analytics_service</tt:XAddr><tt:RuleSupport>true</tt:RuleSupport><tt:AnalyticsModuleSupport>true</tt:AnalyticsModuleSupport></tt:Analytics><tt:Device><tt:XAddr>http://192.168.100.94/onvif/device_service</tt:XAddr><tt:Network><tt:IPFilter>false</tt:IPFilter><tt:ZeroConfiguration>false</tt:ZeroConfiguration><tt:IPVersion6>false</tt:IPVersion6><tt:DynDNS>false</tt:DynDNS><tt:Extension><tt:Dot11Configuration>false</tt:Dot11Configuration></tt:Extension></tt:Network><tt:System><tt:DiscoveryResolve>false</tt:DiscoveryResolve><tt:DiscoveryBye>true</tt:DiscoveryBye><tt:RemoteDiscovery>false</tt:RemoteDiscovery><tt:SystemBackup>false</tt:SystemBackup><tt:SystemLogging>true</tt:SystemLogging><tt:FirmwareUpgrade>true</tt:FirmwareUpgrade><tt:SupportedVersions><tt:Major>2</tt:Major><tt:Minor>00</tt:Minor></tt:SupportedVersions><tt:SupportedVersions><tt:Major>2</tt:Major><tt:Minor>10</tt:Minor></tt:SupportedVersions><tt:SupportedVersions><tt:Major>2</tt:Major><tt:Minor>20</tt:Minor></tt:SupportedVersions><tt:SupportedVersions><tt:Major>2</tt:Major><tt:Minor>30</tt:Minor></tt:SupportedVersions><tt:SupportedVersions><tt:Major>2</tt:Major><tt:Minor>40</tt:Minor></tt:SupportedVersions><tt:SupportedVersions><tt:Major>2</tt:Major><tt:Minor>42</tt:Minor></tt:SupportedVersions><tt:SupportedVersions><tt:Major>16</tt:Major><tt:Minor>12</tt:Minor></tt:SupportedVersions><tt:SupportedVersions><tt:Major>18</tt:Major><tt:Minor>06</tt:Minor></tt:SupportedVersions><tt:SupportedVersions><tt:Major>18</tt:Major><tt:Minor>12</tt:Minor></tt:SupportedVersions><tt:SupportedVersions><tt:Major>19</tt:Major><tt:Minor>06</tt:Minor></tt:SupportedVersions><tt:SupportedVersions><tt:Major>19</tt:Major><tt:Minor>12</tt:Minor></tt:SupportedVersions><tt:Extension><tt:HttpFirmwareUpgrade>true</tt:HttpFirmwareUpgrade><tt:HttpSystemBackup>false</tt:HttpSystemBackup><tt:HttpSystemLogging>false</tt:HttpSystemLogging><tt:HttpSupportInformation>false</tt:HttpSupportInformation></tt:Extension></tt:System><tt:IO><tt:InputConnectors>0</tt:InputConnectors><tt:RelayOutputs>0</tt:RelayOutputs><tt:Extension><tt:Auxiliary>false</tt:Auxiliary><tt:AuxiliaryCommands></tt:AuxiliaryCommands><tt:Extension></tt:Extension></tt:Extension></tt:IO><tt:Security><tt:TLS1.1>false</tt:TLS1.1><tt:TLS1.2>false</tt:TLS1.2><tt:OnboardKeyGeneration>false</tt:OnboardKeyGeneration><tt:AccessPolicyConfig>false</tt:AccessPolicyConfig><tt:X.509Token>false</tt:X.509Token><tt:SAMLToken>false</tt:SAMLToken><tt:KerberosToken>false</tt:KerberosToken><tt:RELToken>false</tt:RELToken><tt:Extension><tt:TLS1.0>false</tt:TLS1.0><tt:Extension><tt:Dot1X>false</tt:Dot1X><tt:SupportedEAPMethod>0</tt:SupportedEAPMethod><tt:RemoteUserHandling>false</tt:RemoteUserHandling></tt:Extension></tt:Extension></tt:Security></tt:Device><tt:Events><tt:XAddr>http://192.168.100.94/onvif/event_service</tt:XAddr><tt:WSSubscriptionPolicySupport>true</tt:WSSubscriptionPolicySupport><tt:WSPullPointSupport>true</tt:WSPullPointSupport><tt:WSPausableSubscriptionManagerInterfaceSupport>false</tt:WSPausableSubscriptionManagerInterfaceSupport></tt:Events><tt:Imaging><tt:XAddr>http://192.168.100.94/onvif/imaging_service</tt:XAddr></tt:Imaging><tt:Media><tt:XAddr>http://192.168.100.94/onvif/media_service</tt:XAddr><tt:StreamingCapabilities><tt:RTPMulticast>true</tt:RTPMulticast><tt:RTP_TCP>true</tt:RTP_TCP><tt:RTP_RTSP_TCP>true</tt:RTP_RTSP_TCP></tt:StreamingCapabilities><tt:Extension><tt:ProfileCapabilities><tt:MaximumNumberOfProfiles>6</tt:MaximumNumberOfProfiles></tt:ProfileCapabilities></tt:Extension></tt:Media><tt:Extension><tt:DeviceIO><tt:XAddr>http://192.168.100.94/onvif/deviceIO_service</tt:XAddr><tt:VideoSources>1</tt:VideoSources><tt:VideoOutputs>0</tt:VideoOutputs><tt:AudioSources>1</tt:AudioSources><tt:AudioOutputs>0</tt:AudioOutputs><tt:RelayOutputs>0</tt:RelayOutputs></tt:DeviceIO><tt:Recording><tt:XAddr>http://192.168.100.94/onvif/recording_service</tt:XAddr><tt:ReceiverSource>false</tt:ReceiverSource><tt:MediaProfileSource>true</tt:MediaProfileSource><tt:DynamicRecordings>true</tt:DynamicRecordings><tt:DynamicTracks>false</tt:DynamicTracks><tt:MaxStringLength>129</tt:MaxStringLength></tt:Recording><tt:Search><tt:XAddr>http://192.168.100.94/onvif/search_service</tt:XAddr><tt:MetadataSearch>false</tt:MetadataSearch></tt:Search><tt:Replay><tt:XAddr>http://192.168.100.94/onvif/replay_service</tt:XAddr></tt:Replay></tt:Extension></tds:Capabilities></tds:GetCapabilitiesResponse></s:Body></s:Envelope>INFO  24-03-01 22:50:25.988034 140443132089920 onvif_base_service.c:158: ONVIF_DEBUG variable set. '1'
DEBUG 24-03-01 22:50:25.988104 140443132089920 onvif_device.c:104: [http://192.168.100.94/onvif/media_service] Successfully created Media soap 
TRACE 24-03-01 22:50:25.988120 140443132089920 onvif_media_service.c:267: [http://192.168.100.94/onvif/media_service] OnvifMediaService__get_profile_token 0
DEBUG 24-03-01 22:50:25.988136 140443132089920 onvif_media_service.c:79: [http://192.168.100.94/onvif/media_service] Invoking GetProfiles
INFO  24-03-01 22:50:25.988227 140443132089920 onvif_base_service.c:142: ONVIF_DEBUG variable set. '1'
POST /onvif/media_service HTTP/1.1
Host: 192.168.100.94
User-Agent: gSOAP/2.8
Content-Type: application/soap+xml; charset=utf-8; action="http://www.onvif.org/ver10/media/wsdl/GetProfiles"
Content-Length: 1295
Connection: close
Accept-Encoding: gzip,deflate
SOAPAction: "http://www.onvif.org/ver10/media/wsdl/GetProfiles"

<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://www.w3.org/2003/05/soap-envelope"><SOAP-ENV:Header><wsse:Security xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" SOAP-ENV:mustUnderstand="true"><wsu:Timestamp xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" wsu:Id="Time"><wsu:Created>2024-03-01T20:50:25Z</wsu:Created><wsu:Expires>2024-03-01T20:50:35Z</wsu:Expires></wsu:Timestamp><wsse:UsernameToken xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" wsu:Id="Auth"><wsse:Username>admin</wsse:Username><wsse:Password Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordDigest">EHfGeu85EacALSdXWI9ldcWvhB8=</wsse:Password><wsse:Nonce EncodingType="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-soap-message-security-1.0#Base64Binary">kT/iZcR242O7iq1RhvxZyK6f3is=</wsse:Nonce><wsu:Created>2024-03-01T20:50:25Z</wsu:Created></wsse:UsernameToken></wsse:Security></SOAP-ENV:Header><SOAP-ENV:Body><trt:GetProfiles xmlns:trt="http://www.onvif.org/ver10/media/wsdl"></trt:GetProfiles></SOAP-ENV:Body></SOAP-ENV:Envelope>
HTTP/1.1 400 Bad Request
Content-Type: application/soap+xml; charset=utf-8
Connection: close
Content-Length: 659

<?xml version="1.0" encoding="utf-8" standalone="yes" ?><s:Envelope xmlns:sc="http://www.w3.org/2003/05/soap-encoding" xmlns:s="http://www.w3.org/2003/05/soap-envelope" xmlns:ter="http://www.onvif.org/ver10/error" xmlns:wsnt="http://docs.oasis-open.org/wsn/b-2" xmlns:wsrf-bf="http://docs.oasis-open.org/wsrf/bf-2" xmlns:d="http://schemas.xmlsoap.org/ws/2005/04/discovery"><s:Body><s:Fault><s:Code><s:Value>s:Sender</s:Value><s:Subcode><s:Value>ter:NotAuthorized</s:Value></s:Subcode></s:Code><s:Reason><s:Text xml:lang="en">Sender not Authorized. Invalid username or password! You still have 23 attempt(s).</s:Text></s:Reason></s:Fault></s:Body></s:Envelope>WARN  24-03-01 22:50:26.032864 140443132089920 onvif_base_service.c:200: Warning : NOT AUTHORIZED HTTP Error code [12]
INFO  24-03-01 22:50:26.032905 140443132089920 onvif_base_service.c:158: ONVIF_DEBUG variable set. '1'
DEBUG 24-03-01 22:50:26.032950 140443132089920 onvif_media_service.c:118: [http://192.168.100.94/onvif/media_service] Invoking GetStreamUri
INFO  24-03-01 22:50:26.033037 140443132089920 onvif_base_service.c:142: ONVIF_DEBUG variable set. '1'
POST /onvif/media_service HTTP/1.1
Host: 192.168.100.94
User-Agent: gSOAP/2.8
Content-Type: application/soap+xml; charset=utf-8; action="http://www.onvif.org/ver10/media/wsdl/GetStreamUri"
Content-Length: 1552
Connection: close
Accept-Encoding: gzip,deflate
SOAPAction: "http://www.onvif.org/ver10/media/wsdl/GetStreamUri"

<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://www.w3.org/2003/05/soap-envelope"><SOAP-ENV:Header><wsse:Security xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" SOAP-ENV:mustUnderstand="true"><wsu:Timestamp xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" wsu:Id="Time"><wsu:Created>2024-03-01T20:50:26Z</wsu:Created><wsu:Expires>2024-03-01T20:50:36Z</wsu:Expires></wsu:Timestamp><wsse:UsernameToken xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" wsu:Id="Auth"><wsse:Username>admin</wsse:Username><wsse:Password Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordDigest">pzHmn8819Iq4/TzydPUr1iTwD0M=</wsse:Password><wsse:Nonce EncodingType="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-soap-message-security-1.0#Base64Binary">kj/iZb52YgqBgX7u4KrvqCOTVyg=</wsse:Nonce><wsu:Created>2024-03-01T20:50:26Z</wsu:Created></wsse:UsernameToken></wsse:Security></SOAP-ENV:Header><SOAP-ENV:Body><trt:GetStreamUri xmlns:trt="http://www.onvif.org/ver10/media/wsdl"><trt:StreamSetup><tt:Stream xmlns:tt="http://www.onvif.org/ver10/schema">RTP-Unicast</tt:Stream><tt:Transport xmlns:tt="http://www.onvif.org/ver10/schema"><tt:Protocol>UDP</tt:Protocol></tt:Transport></trt:StreamSetup><trt:ProfileToken></trt:ProfileToken></trt:GetStreamUri></SOAP-ENV:Body></SOAP-ENV:Envelope>
HTTP/1.1 400 Bad Request
Content-Type: application/soap+xml; charset=utf-8
Connection: close
Content-Length: 659

<?xml version="1.0" encoding="utf-8" standalone="yes" ?><s:Envelope xmlns:sc="http://www.w3.org/2003/05/soap-encoding" xmlns:s="http://www.w3.org/2003/05/soap-envelope" xmlns:ter="http://www.onvif.org/ver10/error" xmlns:wsnt="http://docs.oasis-open.org/wsn/b-2" xmlns:wsrf-bf="http://docs.oasis-open.org/wsrf/bf-2" xmlns:d="http://schemas.xmlsoap.org/ws/2005/04/discovery"><s:Body><s:Fault><s:Code><s:Value>s:Sender</s:Value><s:Subcode><s:Value>ter:NotAuthorized</s:Value></s:Subcode></s:Code><s:Reason><s:Text xml:lang="en">Sender not Authorized. Invalid username or password! You still have 22 attempt(s).</s:Text></s:Reason></s:Fault></s:Body></s:Envelope>WARN  24-03-01 22:50:26.077930 140443132089920 onvif_base_service.c:200: Warning : NOT AUTHORIZED HTTP Error code [12]
INFO  24-03-01 22:50:26.077963 140443132089920 onvif_base_service.c:158: ONVIF_DEBUG variable set. '1'
ERROR 24-03-01 22:50:26.078006 140443132089920 onvif_device.c:110: [http://192.168.100.94/onvif/media_service] No stream uri returned...
TRACE 24-03-01 22:50:26.078024 140443132089920 event_queue.c:173: notify dispatched event...
INFO  24-03-01 22:50:28.480545 140443452058240 onvif_app.c:381: OnvifAuthentication cancelled...
DEBUG 24-03-01 22:50:28.480583 140443452058240 app_dialog.c:131: hide
^C
alexandru@alexandru-desktop:~/Documente/onvif/OnvifDeviceManager$ 
Quedale commented 7 months ago

Good news,

It seems to be a relatively obvious issue. According to the following log you provided, your camera is expecting Digest authentication.

HTTP/1.1 401 Unauthorized
Content-Type: application/soap+xml; charset=utf-8
Connection: close
WWW-Authenticate: Digest realm="Login to 0ccf58c7410332c7caa363406561b351",qop="auth",nonce="b252aWYtZGlnZXN0OjQzNTY3Mzg5NDgw", opaque="", stale="false"
Content-Length: 0

It's simply not supported at the moment, but easily within reach. I original focused on ONVIF specs only, which recommends WS-Security.

That being said, it shouldn't be hard to support alternative authentication schemes like Digest or NTLM.

I do want to support as many camera as possible.

I'll start working on it soon.

Quedale commented 7 months ago

I just added support for HTTP authentication challenge. It should simultaneously support Basic, Digest and NTLM authentication scheme.

Simply pull the latest changes and run autogen.sh once again to pull and build the latest changes from OnvifSoapLib as well.

I was unfortunately only able to test Basic authentication without given the effort required to setup an appropriate test environment.

Let me know how that goes.

Thank for your help!