diff Plugins/Engine/OrthancPlugins.cpp @ 2222:21713ce8717b

Fix handling of Move Originator AET and ID in C-MOVE SCP
author Sebastien Jodogne <s.jodogne@gmail.com>
date Tue, 13 Dec 2016 14:34:33 +0100
parents 028214a95194
children a3a65de1840f
line wrap: on
line diff
--- a/Plugins/Engine/OrthancPlugins.cpp	Tue Dec 13 12:13:12 2016 +0100
+++ b/Plugins/Engine/OrthancPlugins.cpp	Tue Dec 13 14:34:33 2016 +0100
@@ -687,10 +687,10 @@
 
     virtual IMoveRequestIterator* Handle(const std::string& targetAet,
                                          const DicomMap& input,
-                                         const std::string& remoteIp,
-                                         const std::string& remoteAet,
+                                         const std::string& originatorIp,
+                                         const std::string& originatorAet,
                                          const std::string& calledAet,
-                                         uint16_t messageId)
+                                         uint16_t originatorId)
     {
       std::string levelString = ReadTag(input, DICOM_TAG_QUERY_RETRIEVE_LEVEL);
       std::string patientId = ReadTag(input, DICOM_TAG_PATIENT_ID);
@@ -712,10 +712,10 @@
                                       studyInstanceUid.empty() ? NULL : studyInstanceUid.c_str(),
                                       seriesInstanceUid.empty() ? NULL : seriesInstanceUid.c_str(),
                                       sopInstanceUid.empty() ? NULL : sopInstanceUid.c_str(),
-                                      remoteAet.c_str(),
+                                      originatorAet.c_str(),
                                       calledAet.c_str(),
                                       targetAet.c_str(),
-                                      messageId);
+                                      originatorId);
 
       if (driver == NULL)
       {