SCP accepts association irrespective of Presentation context

All other questions regarding DCMTK

Moderator: Moderator Team

Post Reply
Message
Author
Raji
Posts: 27
Joined: Fri, 2014-07-04, 07:49

SCP accepts association irrespective of Presentation context

#1 Post by Raji »

Hi,
I have created a StorageSCP class which is derived from DcmSCP( DCMTKclass)
Using addPresentationContext function , added below list of transfer syntaxs and abstract syntaxes


AbstractSyntax name="VerificationSOPresentationContextlass" value="1.2.840.10008.1.1"
TransferSyntax name="LittleEndianImplicit" value="1.2.840.10008.1.2"

AbstractSyntax name="UltrasoundImageStorage" value="1.2.840.10008.5.1.4.1.1.6.1">
<TransferSyntax name="JPEGProcess1" value="1.2.840.10008.1.2.4.50"/>


And receives association from an SCU which supports LittleEndianImplicit transfer syntax through ASC_receiveAssociation and processAssociationRQ function

Association is created with Both abstract syntaxes mapping with LittleEndianImplicit transfer syntax and SCP successfully stores
UltrasoundImage of 1.2.840.10008.5.1.4.1.1.6.1 with 1.2.840.10008.1.2.4.50

Also without adding any transfer syntax for AbstractSyntax name="UltrasoundImageStorage" value="1.2.840.10008.5.1.4.1.1.6.1"> also this works fine image got successfully stored


Is there any mechanism in DCMTK that it add default transfer syntaxes while creating association irrespective of configuration added using addPresentationContext function?


Can you please let me know is there any way to make scp accept association/perform store only if matching transfersyntax is configured?

Thanks in advance

J. Riesmeier
DCMTK Developer
Posts: 2501
Joined: Tue, 2011-05-03, 14:38
Location: Oldenburg, Germany
Contact:

Re: SCP accepts association irrespective of Presentation con

#2 Post by J. Riesmeier »

First question: do you use the latest DCMTK snapshot? if not, please do so (since a couple of issues have been fixed in the past, some of them are related to the DcmSCP class).

Raji
Posts: 27
Joined: Fri, 2014-07-04, 07:49

Re: SCP accepts association irrespective of Presentation con

#3 Post by Raji »

Hi,
Thanks for reply.
We are using dcmtk-3.6.1_20131114 version of dcmtk...

Michael Onken
DCMTK Developer
Posts: 2048
Joined: Fri, 2004-11-05, 13:47
Location: Oldenburg, Germany
Contact:

Re: SCP accepts association irrespective of Presentation con

#4 Post by Michael Onken »

Hi,

as Jörg pointed out, this has probably already been fixed, in this commit (2015). Please backport the fix or update your version of DCMTK.

Best,
Michael

Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot], Bing [Bot] and 1 guest