Hello!
I know it is possible to reject C-STORE from certain modalities if we configure orthanc.json like this:
{
"DicomModalities" : {
"untrusted" : {
"AET" : "CT",
"Port" : 104,
"Host" : "192.168.0.10",
"AllowEcho" : false,
"AllowFind" : false,
"AllowMove" : false,
"AllowGet" : false,
"AllowStore" : false
}
}
}
It is also possible to see the remote AET of an instance by using orthanc.RegisterOnStoredInstanceCallback like this:
def OnStoredInstance(dicom, instanceId):
print(dicom.GetInstanceRemoteAet())
What I would like to do is use the AET to decide whether to accept or reject an instance in the orthanc.RegisterReceivedInstanceCallback. How can I retrieve the AET of an incoming instance?