Insert new modalities without execute an Orthanc Reset (reload config file)

618 views
Skip to first unread message

marco....@hotmail.it

unread,
Mar 23, 2016, 12:22:39 PM3/23/16
to Orthanc Users
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?

Sébastien Jodogne

unread,
Mar 24, 2016, 4:28:19 AM3/24/16
to Orthanc Users, marco....@hotmail.it
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":
# curl -X PUT http://localhost:8042/modalities/sample -d '["STORESCP", "localhost", 2000, "MedInria"]'

You can delete it afterwards with:

HTH,
Sébastien-

Raúl Alexis Betancor Santana

unread,
Mar 24, 2016, 6:09:26 AM3/24/16
to Orthanc Users
Did the addition of the modalite survive a server restart ?

Sébastien Jodogne

unread,
Mar 24, 2016, 6:38:41 AM3/24/16
to Orthanc Users
No, this is for dynamic configuration. The dynamic configuration is lost after restarting Orthanc.

Static configuration must be done in the configuration file.
Message has been deleted

Sébastien Jodogne

unread,
Sep 17, 2020, 8:30:58 AM9/17/20
to Imran Haider, Orthanc Users
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:

For the rest, James Manners' answer is accurate:

Sébastien-


On Thu, 17 Sep 2020 at 14:26, Imran Haider <syed.i...@gmail.com> wrote:
Hi  Sébastien,

So I am clear, the Orthnac server will need both dynamic (as per the above command) and static (changes to orthnac.json file) for AET. If those AET need after the reboot. Please confirm

Thanks
Imran 

--
You received this message because you are subscribed to the Google Groups "Orthanc Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to orthanc-user...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/orthanc-users/4a99a457-3f38-46ab-9a94-ab3306b38347n%40googlegroups.com.


--
Reply all
Reply to author
Forward
0 new messages