# HG changeset patch # User Sebastien Jodogne # Date 1452694551 -3600 # Node ID 21fcfc428dc2d4ddfe829a0d9c87a1b27c2a2780 # Parent 5096681efce626253bf8528df01d0bdb6ac9bd79 another semantics for Originator Message ID diff -r 5096681efce6 -r 21fcfc428dc2 OrthancServer/DicomProtocol/IMoveRequestHandler.h --- a/OrthancServer/DicomProtocol/IMoveRequestHandler.h Thu Jan 07 11:36:47 2016 +0100 +++ b/OrthancServer/DicomProtocol/IMoveRequestHandler.h Wed Jan 13 15:15:51 2016 +0100 @@ -71,7 +71,8 @@ const DicomMap& input, const std::string& remoteIp, const std::string& remoteAet, - const std::string& calledAet) = 0; + const std::string& calledAet, + uint16_t messageId) = 0; }; } diff -r 5096681efce6 -r 21fcfc428dc2 OrthancServer/Internals/MoveScp.cpp --- a/OrthancServer/Internals/MoveScp.cpp Thu Jan 07 11:36:47 2016 +0100 +++ b/OrthancServer/Internals/MoveScp.cpp Wed Jan 13 15:15:51 2016 +0100 @@ -135,7 +135,7 @@ { data.iterator_.reset(data.handler_->Handle(data.target_, input, *data.remoteIp_, *data.remoteAet_, - *data.calledAet_)); + *data.calledAet_, request->MessageID)); if (data.iterator_.get() == NULL) { diff -r 5096681efce6 -r 21fcfc428dc2 OrthancServer/OrthancMoveRequestHandler.cpp --- a/OrthancServer/OrthancMoveRequestHandler.cpp Thu Jan 07 11:36:47 2016 +0100 +++ b/OrthancServer/OrthancMoveRequestHandler.cpp Wed Jan 13 15:15:51 2016 +0100 @@ -169,7 +169,8 @@ const DicomMap& input, const std::string& remoteIp, const std::string& remoteAet, - const std::string& calledAet) + const std::string& calledAet, + uint16_t messageId) { LOG(WARNING) << "Move-SCU request received for AET \"" << targetAet << "\""; @@ -187,6 +188,7 @@ } +#if 0 /** * Retrieve the Message ID (0000,0110) for this C-MOVE request, if * any. If present, this Message ID will be stored in the Move @@ -197,7 +199,7 @@ static const DicomTag MESSAGE_ID(0x0000, 0x0110); const DicomValue* messageIdTmp = input.TestAndGetValue(MESSAGE_ID); - uint16_t messageId = 0; + messageId = 0; if (messageIdTmp != NULL && !messageIdTmp->IsNull() && @@ -213,6 +215,7 @@ << "\") of an incoming C-MOVE request to an integer, assuming zero"; } } +#endif /** diff -r 5096681efce6 -r 21fcfc428dc2 OrthancServer/OrthancMoveRequestHandler.h --- a/OrthancServer/OrthancMoveRequestHandler.h Thu Jan 07 11:36:47 2016 +0100 +++ b/OrthancServer/OrthancMoveRequestHandler.h Wed Jan 13 15:15:51 2016 +0100 @@ -55,6 +55,7 @@ const DicomMap& input, const std::string& remoteIp, const std::string& remoteAet, - const std::string& calledAet); + const std::string& calledAet, + uint16_t messageId); }; }