diff OrthancServer/OrthancMoveRequestHandler.cpp @ 1427:d710ea64f0fd

Custom setting of the local AET during C-Store SCU (both in Lua and in the REST API)
author Sebastien Jodogne <s.jodogne@gmail.com>
date Mon, 29 Jun 2015 12:42:54 +0200
parents f528849ee9f7
children f967bdf8534e
line wrap: on
line diff
--- a/OrthancServer/OrthancMoveRequestHandler.cpp	Fri Jun 26 16:30:51 2015 +0200
+++ b/OrthancServer/OrthancMoveRequestHandler.cpp	Mon Jun 29 12:42:54 2015 +0200
@@ -49,6 +49,7 @@
     {
     private:
       ServerContext& context_;
+      const std::string& localAet_;
       std::vector<std::string> instances_;
       size_t position_;
       RemoteModalityParameters remote_;
@@ -58,6 +59,7 @@
                                  const std::string& aet,
                                  const std::string& publicId) :
         context_(context),
+        localAet_(context.GetDefaultLocalApplicationEntityTitle()),
         position_(0)
       {
         LOG(INFO) << "Sending resource " << publicId << " to modality \"" << aet << "\"";
@@ -93,7 +95,7 @@
 
         {
           ReusableDicomUserConnection::Locker locker
-            (context_.GetReusableDicomUserConnection(), remote_);
+            (context_.GetReusableDicomUserConnection(), localAet_, remote_);
           locker.GetConnection().Store(dicom);
         }