[BitBucket user: Денис Смирнов]
[BitBucket date: 2017-06-21.07:29:51]
I found out that Orthanc 1.2.0 allows dicom associations with nodes not mentioned in DicomModalities.
### ECHO
It seems Orthanc only cares about ip and port of incomming dicom connection (but doesn't check AEC) during ECHO. Somehow wrong AEC and AET passes association.
```
#!bash
denis@brewery:~$ echoscu -aet TEST_WRONG_AET -aec ORTHANC_WRONG_AEC pacs.viveya.local 4242 -v
I: Requesting Association
I: Association Accepted (Max Send PDV: 16372)
I: Sending Echo Request (MsgID 1)
I: Received Echo Response (Success)
I: Releasing Association
```
### FIND
When I use FIND command client's ip address and port doesn't matter. I just need a valid AET from Orthanc's DicomModalities list in orthanc.json. In the examples below I use `findscu` from a computer that is not mentioned in DicomModalities
* Wrong ip, wrong AET - all ok
```
#!bash
findscu -S -k QueryRetrieveLevel=STUDY -k StudyDate=20160805 -k StudyDescription -k StudyInstanceUID -aec ORTHANC -aet WRONG_AET pacs.viveya.local 4242
E: Find Failed, query keys:
E:
E: # Dicom-File-Format
E:
E: # Dicom-Meta-Information-Header
E: # Used TransferSyntax: Little Endian Explicit
E:
E: # Dicom-Data-Set
E: # Used TransferSyntax: Little Endian Explicit
E: (0008,0020) DA [20160805] # 8, 1 StudyDate
E: (0008,0052) CS [STUDY ] # 6, 1 QueryRetrieveLevel
E: (0008,1030) LO (no value available) # 0, 0 StudyDescription
E: (0020,000d) UI (no value available) # 0, 0 StudyInstanceUID
E:
E: 0006:0317 Peer aborted Association (or never connected)
```
* Wrong ip, valid AET from DicomModalities for some other host - not ok
```
#!bash
findscu -S -k QueryRetrieveLevel=STUDY -k StudyDate=20160805 -k StudyDescription -k StudyInstanceUID -aec ORTHANC -aet GUINNESS pacs.viveya.local 4242
I: Find Response: 1 (Pending)
I:
I: # Dicom-Data-Set
I: # Used TransferSyntax: Little Endian Explicit
I: (0008,0005) CS [ISO_IR 100] # 10, 1 SpecificCharacterSet
I: (0008,0020) DA [20160805] # 8, 1 StudyDate
I: (0008,0052) CS [STUDY ] # 6, 1 QueryRetrieveLevel
I: (0008,1030) LO [HEAD] # 4, 1 StudyDescription
I: (0020,000d) UI [1.2.840.113619.2.334.3.2831165804.922.1470213875.358] # 52, 1 StudyInstanceUID
```
###STORE
I can save dicom image to Orthanc from a host and AET not mentioned in DicomModalities
```
#!bash
denis@brewery:~$ storescu pacs.viveya.local 4242 xr_hands.dcm -aec ORTHANC -aet WRONG_AET -v
I: checking input files ...
I: Requesting Association
I: Association Accepted (Max Send PDV: 16372)
I: Sending file: xr_hands.dcm
I: Converting transfer syntax: Little Endian Explicit -> Little Endian Explicit
I: Sending Store Request (MsgID 1, CR)
XMIT: .....................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................
I: Received Store Response (Success)
I: Releasing Association
``` |