diff OrthancServer/main.cpp @ 1572:904096e7367e

More information about the origin request in OnStoredInstance() callbacks
author Sebastien Jodogne <s.jodogne@gmail.com>
date Tue, 25 Aug 2015 12:10:12 +0200
parents e5e975e9b738
children 3309878b3e16
line wrap: on
line diff
--- a/OrthancServer/main.cpp	Tue Aug 25 11:04:19 2015 +0200
+++ b/OrthancServer/main.cpp	Tue Aug 25 12:10:12 2015 +0200
@@ -75,11 +75,10 @@
     if (dicomFile.size() > 0)
     {
       DicomInstanceToStore toStore;
+      toStore.SetDicomProtocolOrigin(remoteAet.c_str(), calledAet.c_str());
       toStore.SetBuffer(dicomFile);
       toStore.SetSummary(dicomSummary);
       toStore.SetJson(dicomJson);
-      toStore.SetRemoteAet(remoteAet);
-      toStore.SetCalledAet(calledAet);
 
       std::string id;
       server_.Store(id, toStore);