From 48d61c75de15b1482ccf19b5f55fc66887494b32 Mon Sep 17 00:00:00 2001 From: Roger Hardiman Date: Thu, 31 May 2018 17:49:31 +0100 Subject: [PATCH] Log the 'default profile' RTSP URL for UDP and TCP modes --- onvif-audit.js | 9 ++++++++- package.json | 2 +- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/onvif-audit.js b/onvif-audit.js index 7692ca5..cd8d212 100644 --- a/onvif-audit.js +++ b/onvif-audit.js @@ -253,7 +253,6 @@ function perform_audit(ip_address, port, username, password, folder) { }); } catch (err) { callback(); } }, - /* function (callback) { try { cam_obj.getStreamUri({ @@ -276,6 +275,8 @@ function perform_audit(ip_address, port, username, password, folder) { }); } catch (err) { callback(); } }, + /* Multicast is optional in Profile S, Mandatory in Profile T + but could be disabled function (callback) { try { cam_obj.getStreamUri({ @@ -341,6 +342,12 @@ function perform_audit(ip_address, port, username, password, folder) { msg += 'Serial Number:= unknown\r\n'; msg += 'Hardware ID:= unknown\r\n'; } + if (got_live_stream_tcp) { + msg += 'First Live TCP Stream: = ' + got_live_stream_tcp.uri + '\r\n'; + } + if (got_live_stream_udp) { + msg += 'First Live UDP Stream: = ' + got_live_stream_udp.uri + '\r\n'; + } fs.write(log_fd, msg, function (err) { if (err) console.log('Error writing to file'); diff --git a/package.json b/package.json index ebeaf68..942dac3 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "onvif-site-audit", - "version": "0.5.0", + "version": "0.5.2", "author": "Roger Hardiman ", "description": "ONVIF Camera Audit Tool", "main": "/audit.js",