I`m new in use Dicom. I want to store dicom files on client side.
So i use this example (https://support.dcmtk.org/redmine/proje ... wto_DcmSCU) to send move request to my server.
Also I think i need receive files with DcmSCP, so i run this function in another thread:
Code: Select all
void serv()
{
DcmSCP scp;
scp.setAETitle(APPLICATIONTITLE);
scp.setPort((Uint16)11112);
OFList<OFString> ts;
ts.push_back(UID_LittleEndianExplicitTransferSyntax);
ts.push_back(UID_BigEndianExplicitTransferSyntax);
ts.push_back(UID_LittleEndianImplicitTransferSyntax);
scp.addPresentationContext(UID_MOVEStudyRootQueryRetrieveInformationModel, ts);
scp.addPresentationContext(UID_CTImageStorage, ts);
scp.addPresentationContext(UID_JPEG2000TransferSyntax, ts);
scp.addPresentationContext(UID_JPEGLSLossyTransferSyntax, ts);
scp.addPresentationContext(UID_VerificationSOPClass, ts);
scp.listen();
}
Code: Select all
I: Requesting Association
I: Association Accepted (Max Send PDV: 16372)
I: Sending C-ECHO Request (MsgID 1)
I: Received C-ECHO Response (Success)
I: Sending C-FIND Request (MsgID 2)
I: Received C-FIND Response (Pending)
I: Received C-FIND Response (Success)
I: There are 2 studies available
I: Sending C-MOVE Request (MsgID 3)
I: Association Received 185: ORTHANC -> MICRODICOM
I: Association Acknowledged (Max Send PDV: 16372)
I: Received Association Release Request
I: Association Received 185: ORTHANC -> MICRODICOM
I: Association Acknowledged (Max Send PDV: 16372)
I: Received C-MOVE Response (Failed: UnableToProcess)
E: Unable to process C-Move response
I: Received study # 1: 1.2.826.0.1.3680043.8.1055.1.20111102150758591.92402465.76095170
I: Releasing Association
I: Received Association Release Request
As i understand, i miss something. What i can do to fix that?