Feature request: expose the Called AET to the incoming C-STORE instance filter

Hi,

I have implemented this change both in Orthanc and in the python plugin.

This should be available in the mainline binaries tomorrow if the build succeeds.

I have tested it with this python script:

import orthanc

def FilterIncomingCStoreInstance(receivedDicom):
    origin = receivedDicom.GetInstanceOrigin()

    if origin == orthanc.InstanceOrigin.DICOM_PROTOCOL:  # should always be true in the CStore callback !
        
        orthanc.LogWarning(f"--------- RemoteAET: {receivedDicom.GetInstanceRemoteAet()}, CalledAET: {receivedDicom.GetInstanceCalledAet()}, RemoteIP: {receivedDicom.GetInstanceRemoteIp()}")

    return 0  # Success: Accept the DICOM instance

orthanc.RegisterIncomingCStoreInstanceFilter(FilterIncomingCStoreInstance)

Hope this helps …

If you are using Orthanc in the scope of a commercial application, don’t forget to support the projet; we are running short of donations.

Alain