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

**URL:** https://discourse.orthanc-server.org/t/feature-request-expose-the-called-aet-to-the-incoming-c-store-instance-filter/6471
**Category:** General
**Created:** [August 13, 2026, 7:03pm UTC](https://discourse.orthanc-server.org/t/feature-request-expose-the-called-aet-to-the-incoming-c-store-instance-filter/6471 "2026-08-13T19:03:35Z")
**Posts on this page:** 1
**Showing post:** 4

<div class="post-metadata">

### Author: ![alainmazy](https://discourse.orthanc-server.org/user_avatar/discourse.orthanc-server.org/alainmazy/32/1576_2.png) [@alainmazy](https://discourse.orthanc-server.org/u/alainmazy)
#### Post date: [August 20, 2026, 3:40pm UTC](https://discourse.orthanc-server.org/t/feature-request-expose-the-called-aet-to-the-incoming-c-store-instance-filter/6471/4 "2026-08-20T15:40:22Z")

</div>

Hi,

I have implemented this change both in [Orthanc](https://orthanc.uclouvain.be/hg/orthanc/rev/843c4e99e96f) and in the [python plugin](https://orthanc.uclouvain.be/hg/orthanc-python/rev/0cfe173e428d).

This should be available in the [mainline binaries](https://orthanc.uclouvain.be/book/faq/mainline-binaries.html) tomorrow if the build succeeds.

I have tested it with this python script:

```auto
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](https://opencollective.com/orthanc); we are running short of donations.

Alain

---

_[View the full topic](https://discourse.orthanc-server.org/t/feature-request-expose-the-called-aet-to-the-incoming-c-store-instance-filter/6471)._
