comparison 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
comparison
equal deleted inserted replaced
4790:9754d5f2f38a 4791:656784ac6759
180 } 180 }
181 else 181 else
182 { 182 {
183 try 183 try
184 { 184 {
185 cbdata->handler->Handle(**imageDataSet, *cbdata->remoteIp, cbdata->remoteAET, cbdata->calledAET); 185 int status = cbdata->handler->Handle(**imageDataSet, *cbdata->remoteIp, cbdata->remoteAET, cbdata->calledAET);
186
187 if (status != 0)
188 {
189 rsp->DimseStatus = static_cast<DIC_US>(status);
190 }
186 } 191 }
187 catch (OrthancException& e) 192 catch (OrthancException& e)
188 { 193 {
189 rsp->DimseStatus = STATUS_STORE_Refused_OutOfResources; 194 rsp->DimseStatus = STATUS_STORE_Refused_OutOfResources;
190 195