When I insert new modality in Orthanc configuration file, you must perform a reset of Orthanc so that the modality is recognized.
During reset if there are DICOM Association in progress, these are terminated.
Is possibile insert a new modality without rebooting Orthanc so do not miss the associations dicom in progress?
Yes, this is possible.
Check out the following public integration test (test_update_modalities):
https://bitbucket.org/sjodogne/orthanc-tests/src/default/Tests/Tests.py?fileviewer=file-view-default#Tests.py-1218
Here is a sample command line to register a new modality called “sample”:
You can delete it afterwards with:
HTH,
Sébastien-
Did the addition of the modalite survive a server restart ?
No, this is for dynamic configuration. The dynamic configuration is lost after restarting Orthanc.
Static configuration must be done in the configuration file.
jodogne
5
You are resurrecting an old thread from 2016 that is not up to date anymore.
Since Orthanc 1.5.0, the “DicomModalitiesInDatabase” configuration option can be set to “true” to make the modalities persistent across reboots:
https://book.orthanc-server.com/users/configuration.html
For the rest, James Manners’ answer is accurate:
https://groups.google.com/g/orthanc-users/c/T0lNJssPDj0/m/EG_-wbkdBQAJ
Sébastien-