Mercurial > hg > orthanc
diff OrthancFramework/Sources/DicomNetworking/Internals/StoreScp.cpp @ 4791:656784ac6759 proto-filter-instance-returning-error-code
wip: returning OutOfResources when an instance is filtered out by ReceivedInstanceFilter. Ideally, we should implement a ReceivedInstanceFilter2 that would return the C-Store error code
author | Alain Mazy <am@osimis.io> |
---|---|
date | Wed, 29 Sep 2021 10:32:23 +0200 |
parents | e3e759cbd19c |
children | 3ab57510f6dd |
line wrap: on
line diff
--- a/OrthancFramework/Sources/DicomNetworking/Internals/StoreScp.cpp Tue Sep 14 14:51:12 2021 +0200 +++ b/OrthancFramework/Sources/DicomNetworking/Internals/StoreScp.cpp Wed Sep 29 10:32:23 2021 +0200 @@ -182,7 +182,12 @@ { try { - cbdata->handler->Handle(**imageDataSet, *cbdata->remoteIp, cbdata->remoteAET, cbdata->calledAET); + int status = cbdata->handler->Handle(**imageDataSet, *cbdata->remoteIp, cbdata->remoteAET, cbdata->calledAET); + + if (status != 0) + { + rsp->DimseStatus = static_cast<DIC_US>(status); + } } catch (OrthancException& e) {