Quick question on how XML files are handled
Hello I'm reading through the articles on the wiki, and have a basic question about how Freeswitch handles the XML files: I noticed that conf/sip_profiles contains both internal.xml, internal/, and internal/example.xml: Does it mean that Freeswitch merges everything it finds in this location (in this case, stuff in internal.xml + internal/*.xml), or does it depend on what is included in freeswitch.xml? Thank you. -- View this message in context: http://www.nabble.com/Quick-question-on-how-XML-files-are-handled-tp23136269... Sent from the Freeswitch-users mailing list archive at Nabble.com.
You will look for <X-PRE-PROCESS cmd="include" data="internal/*.xml"/> For example... the conf/autoload_configs has sofia.conf.xml which includes ../sip_profiles/*.xml, then in each of those they have an include to go a directory deeper into internal/*.xml and external/ *.xml... Just follow the X-PRE-PROCESS directives. /b On Apr 20, 2009, at 8:03 AM, Fred-145 wrote:
Hello
I'm reading through the articles on the wiki, and have a basic question about how Freeswitch handles the XML files: I noticed that conf/ sip_profiles contains both internal.xml, internal/, and internal/example.xml: Does it mean that Freeswitch merges everything it finds in this location (in this case, stuff in internal.xml + internal/*.xml), or does it depend on what is included in freeswitch.xml?
Thank you. -- View this message in context: http://www.nabble.com/Quick-question-on-how-XML-files-are-handled-tp23136269... Sent from the Freeswitch-users mailing list archive at Nabble.com.
_______________________________________________ Freeswitch-users mailing list Freeswitch-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
Brian West brian@freeswitch.org -- Meet us at ClueCon! http://www.cluecon.com
Brian West-3 wrote:
You will look for <X-PRE-PROCESS cmd="include" data="internal/*.xml"/>
Thanks for the hint. I'd like to ask another question on the subject: conf/freeswitch.xml says to include all XML files located in autoload_configs/, but this directory includes modules.conf.xml along with specific modules like eg. sofia.conf.xml. I'm confused about what files are automatically loaded through "autoload_configs/*.xml" and which are loaded such as "autoload_config/sofia.conf.xml". If FS loads all files in autoload_configs/ in one go, then what is the purpose of modules.conf.xml? -- View this message in context: http://www.nabble.com/Quick-question-on-how-XML-files-are-handled-tp23136269... Sent from the Freeswitch-users mailing list archive at Nabble.com.
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?
Brian West brian@freeswitch.org -- Meet us at ClueCon! http://www.cluecon.com
On Mon, Apr 20, 2009 at 7:28 AM, Brian West <brian@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 modules.conf.xml. HTH, MC
mercutioviz wrote:
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 modules.conf.xml.
So all configuration settings found in autoload_configs/*.xml files are loaded in memory, but Freeswitch will only actually use those that belong to modules that are explicitely loaded through the modules.conf.xml file. Makes sense. Thanks guys. -- View this message in context: http://www.nabble.com/Quick-question-on-how-XML-files-are-handled-tp23136269... Sent from the Freeswitch-users mailing list archive at Nabble.com.
participants (3)
-
Brian West
-
Fred-145
-
Michael Collins