VoIP Mailing List Archives
Mailing list archives for the VoIP community |
|
View previous topic :: View next topic |
Author |
Message |
brian at freeswitch.org Guest
|
Posted: Mon Apr 20, 2009 8:35 am Post subject: [Freeswitch-users] Quick question on how XML files are handl |
|
|
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:
Brian West
brian@freeswitch.org (brian@freeswitch.org)
-- Meet us at ClueCon! http://www.cluecon.com |
|
Back to top |
|
|
brian at freeswitch.org Guest
|
Posted: Mon Apr 20, 2009 10:56 am Post subject: [Freeswitch-users] Quick question on how XML files are handl |
|
|
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:
Quote: | 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 (brian@freeswitch.org)
-- Meet us at ClueCon! http://www.cluecon.com |
|
Back to top |
|
|
codecomplete at free.fr Guest
|
Posted: Mon Apr 20, 2009 11:03 am Post subject: [Freeswitch-users] Quick question on how XML files are handl |
|
|
Brian West-3 wrote:
Quote: |
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-tp23136269p23137533.html
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 |
|
Back to top |
|
|
msc at freeswitch.org Guest
|
Posted: Mon Apr 20, 2009 12:12 pm Post subject: [Freeswitch-users] Quick question on how XML files are handl |
|
|
On Mon, Apr 20, 2009 at 7:28 AM, Brian West <brian@freeswitch.org (brian@freeswitch.org)> wrote:
Quote: | 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:
Quote: | 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 |
|
Back to top |
|
|
codecomplete at free.fr Guest
|
|
Back to top |
|
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|