[Freeswitch-users] Quick question on how XML files are handled

Michael Collins msc at freeswitch.org
Mon Apr 20 10:11:56 PDT 2009

On Mon, Apr 20, 2009 at 7:28 AM, Brian West <brian at freeswitch.org> wrote:

> Its for what modules to load into FreeSWITCH.  The config files are
> required to configure all the modules you load.
> /b
> On Apr 20, 2009, at 9:14 AM, Fred-145 wrote:
> If FS loads all files in autoload_configs/ in one go, then what is the
> purpose of modules.conf.xml?
As an example of this, consider mod_xml_cdr. By default, module
"mod_xml_cdr" is not loaded - it is commented out in modules.conf.xml.
However, also by default, the config file for mod_xml_cdr (xml_cdr.conf.xml)
is in the autoload_configs/ directory. Does this mean that the contents of
xml_cdr.conf.xml get loaded into the main FS configuration even if
mod_xml_cdr is not enabled in modules.conf.xml? Yes. You can actually see
the xml in memory by using the "xml_locate" command at the FS command line:

xml_locate configuration configuration name xml_cdr.conf

or you can dump the whole xml config with this:

xml_locate root

Make sense? Anyway, the bottom line is that any XML file in
autoload_configs/ will get loaded into the big XML configuration file that
gets stored in memory, even if the corresponding module is not loaded from

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20090420/323d41e2/attachment-0002.html 

More information about the FreeSWITCH-users mailing list