The OpenSIPS routing script (or configuration file) is a text file that is loaded by OpenSIPS at start up time. The content is parsed and loaded in memory so that the actual file on the disk is not used anymore at runtime.
OpenSIPS does not offer any mechanism to reload the routing script at runtime, so if you changed the configuration file, you need to restart OpenSIPS in order to apply the changes.
The text preprocessing built-in capabilities are limited in OpenSIPS; mainly reducing the ability to include other files via the include_file
or import_file
directives. The reason for this limitation is the presence of third-party text preprocessors, more powerful than we could develop in OpenSIPS, and the goal of OpenSIPS is in SIP processing, not text processing.
The m4 macro preprocessor is a powerful third-party solution that perfectly helps OpenSIPS. This is very easy to integrate and is used to generate the configuration files (based on template and definition...