New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Exception raised converting A-ASSOCIATE-AC PDU to A-ASSOCIATE primitive #361
Comments
I think this is because the Move SCP isn't sending any Transfer Syntax Sub-Item at all for the rejected presentation context in its A-ASSOCIATE-AC message (which is non-conformant), but I'd like to confirm that's the case. Could you add the following handler to from pynetdicom.utils import pretty_bytes
def handle_data(event):
slist = pretty_bytes(event.data, prefix='', max_size=None)
# Only print out the A-ASSOCIATE-AC data
if slist[0][0:2] == '02':
for ss in slist:
print(ss) I should be able to add a workaround if so. |
I've added a workaround for what I think is the problem. I'd appreciate it if you could:
|
Unfortunately, nothing seems to be printed by handle_data(). In fact, the handler isn't triggered at all. I updated to the current master and the issue still present. Here is the output anyway:
|
Can you double check you're using the current Its strange that handlers = [(evt.EVT_DATA_RECV, handle_data)]
assoc = ae.associate(peerIP, peerPort, ae_title=peerAeTitle, evt_handlers=handlers) |
You were right that the my version wasn't 1.40.dev0 and I tied the event handlers to the ae.start_server function not ae.associate. I fixed both of them. The Patient Root QR Move abstract syntax is still being rejected but here is the logging output and latest version of the code if you would like to take a look at it.
|
Thanks! As I thought, the Presentation Context (AC) Item is missing a Transfer Syntax Sub-item. In its entirety, the encoded item is The context itself has been rejected by the Move SCP due to an unsupported abstract syntax (the |
Hi, I know an issue similar to this has been discussed but it did not help.
For test purposes, I want to make a C-MOVE request to ONIS Dicom Server to store ct and mammography images. I added my AE-Title, ip and port to ONIS so it recognizes me. I propose PatientRootQueryRetrieveInformationModelMove context and support CTImageStorage and DigitalMammographyXRayImagePresentationStorage within my AE. However I get the following debug logs that says PatientRootQueryRetrieveInformationModelMove is rejected. In its dicom conformance statement, it is written that ONIS supports PatientRootQueryRetrieveInformationModelMove.
If I don't request PatientRootQueryRetrieveInformationModelMove but VerificationPresentationContexts, association establishes successfully but I can't make a C-MOVE obviously.
Logs:
Code:
config.py
The text was updated successfully, but these errors were encountered: