For each shared library (plug-in) containing custom filters to be loaded into the server, add an Init directive that invokes the load-modules SAF to magnus.conf. The syntax for a directive that loads a filter plug-in is:
Init fn=load-modules shlib=path NativeThread="no"
shlib is the local file system path to the shared library (plug-in).
NativeThread indicates whether the plug-in requires native threads. Filters should be written to run on any type of thread, as described in Writing the Source Code.
When the server encounters such a directive, it calls the plug-in's nsapi_module_init function to initialize the filter.