We have a protocol integration using XProtect Professional+ version 12.2.7113.1, Device Pack 9.7a version 9.7.1.119. There is a centralized Management Server that is for all corporate Recording servers.
To obtain the camera GUIDs for subsequent requests our code parses the configuration for the passed in camera name and saves the returned GUID in a dictionary. But in the case when there are duplicate camera names in different RS the dictionary may pick up the GUID for a camera from a different RS.
Is it possible to find out which RS is the request for if the request originates from the host where the RS is located? If the user has access only to that particular RS will the returned configuration include only the cameras enrolled in that RS?
IMPORTANT: MS has a different DNS name for the RS than the one to which we send the video request, so hostname element for a Recorder is not helpful.
Hi Ruslan,
I’m not sure if I have understood your question correctly so let me touch on a few important points and then maybe you can elaborate on your issue if you’re still unsure what to do.
Two cameras can have the same display name, even if they’re on the same Recording Server, so it’s never safe to index cameras by name. However, two cameras will always have a unique GUID, even if the camera has the same name, and even if it’s the same physical camera added to two different Recording Servers. So the safest thing to do is to use the GUID as the key in a dictionary.
The configuration you retrieve should provide you with all you need to locate which Recording Server a camera belongs to. How are you retrieving the configuration? WCF? SystemInfo.xml? Some other way?
Hi Joshua,
Our integration uses camera names that are configured in the Milestone Management Client, and used in our website video server configuration. I understand the perils of using those camera name strings but that’s the business requirement.
I am using serverCommandServiceSSL.Configuration to retrieve the MS configuration. The MS includes multiple RS that may have duplicate camera names.
Hi Joshua,
We found a way to use the Camera Short Name to make camera names unique for our purposes.
Thank you very much for your help.