module_get_config order

Hello,
haven’t find clues in the code, so it’s time to ask here :slight_smile:
I’m trying to write a module which configuration needs to be written after all other modules are done doing their stuff (to be exact I need to modify the macro-dialout section just after the macro-callerid call).

How can I do that ? I use the ext->splice but the config is generated before the diaplan get filled in by the other modules so the order is inverted…

TIA

giuliano