comparison OrthancFramework/Sources/DicomNetworking/DicomAssociation.cpp @ 5442:ac68a4383e51 debug-telemis

improved C-Store negotiation and logging
author Alain Mazy <am@osimis.io>
date Thu, 23 Nov 2023 16:59:16 +0100
parents 8686476e9d12
children 48b8dae6dc77
comparison
equal deleted inserted replaced
5440:99fa307438e1 5442:ac68a4383e51
106 } 106 }
107 107
108 108
109 void DicomAssociation::CloseInternal() 109 void DicomAssociation::CloseInternal()
110 { 110 {
111 CLOG(INFO, DICOM) << "Closing DICOM association";
112
111 #if ORTHANC_ENABLE_SSL == 1 113 #if ORTHANC_ENABLE_SSL == 1
112 tls_.reset(NULL); // Transport layer must be destroyed before the association itself 114 tls_.reset(NULL); // Transport layer must be destroyed before the association itself
113 #endif 115 #endif
114 116
115 if (assoc_ != NULL) 117 if (assoc_ != NULL)
391 { 393 {
392 DUL_PRESENTATIONCONTEXT* pc = (DUL_PRESENTATIONCONTEXT*) LST_Head(l); 394 DUL_PRESENTATIONCONTEXT* pc = (DUL_PRESENTATIONCONTEXT*) LST_Head(l);
393 LST_Position(l, (LST_NODE*)pc); 395 LST_Position(l, (LST_NODE*)pc);
394 while (pc) 396 while (pc)
395 { 397 {
396 if (pc->result == ASC_P_ACCEPTANCE) 398 if (pc->result == ASC_P_ACCEPTANCE && strlen(pc->abstractSyntax) > 0)
397 { 399 {
400 CLOG(TRACE, DICOM) << "DicomAssociation::Open, adding SOPClassUID " << pc->abstractSyntax << " - TS " << pc->acceptedTransferSyntax << " - PC ID " << boost::lexical_cast<std::string>(static_cast<int>(pc->presentationContextID));
401
398 DicomTransferSyntax transferSyntax; 402 DicomTransferSyntax transferSyntax;
399 if (LookupTransferSyntax(transferSyntax, pc->acceptedTransferSyntax)) 403 if (LookupTransferSyntax(transferSyntax, pc->acceptedTransferSyntax))
400 { 404 {
401 AddAccepted(pc->abstractSyntax, transferSyntax, pc->presentationContextID); 405 AddAccepted(pc->abstractSyntax, transferSyntax, pc->presentationContextID);
402 } 406 }