These cli parameters were designed indeed to be used before loading the config, 
one of the aims was that the loaded modules could be useful for processing the 
input for config file.

When a module is loaded, a define is set for it, like `MOD_corex`, I haven't 
checked the code if it also done for the cli option, but you can try to add to 
your config:

```
#!ifndef MOD_corex
loadmodule "corex.so"
#!endif
```

You can leverage further `-A ...` to control what modparams are set in config.

For future, a variant would be to extend load module with a new option like `o` 
to skip loading if the module was already loaded.

  * https://www.kamailio.org/wikidocs/cookbooks/devel/core/#loadmodule

-- 
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/issues/4126#issuecomment-2621111530
You are receiving this because you are subscribed to this thread.

Message ID: <kamailio/kamailio/issues/4126/2621111...@github.com>
_______________________________________________
Kamailio - Development Mailing List -- sr-dev@lists.kamailio.org
To unsubscribe send an email to sr-dev-le...@lists.kamailio.org
Important: keep the mailing list in the recipients, do not reply only to the 
sender!

Reply via email to