2
0

freeswitch.xml 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. <?xml version="1.0"?>
  2. <!--
  3. NOTICE NOTICE NOTICE NOTICE NOTICE NOTICE NOTICE NOTICE NOTICE NOTICE
  4. This is the FreeSWITCH default config. Everything you see before you now traverses
  5. down into all the directories including files which include more files. The default
  6. config comes out of the box already working in most situations as a PBX. This will
  7. allow you to get started testing and playing with various things in FreeSWITCH.
  8. Before you start to modify this default please visit this wiki page:
  9. http://wiki.freeswitch.org/wiki/Getting_Started_Guide#Some_stuff_to_try_out.21
  10. If all else fails you can read our FAQ located at:
  11. http://wiki.freeswitch.org/wiki/FreeSwitch_FAQ
  12. NOTICE NOTICE NOTICE NOTICE NOTICE NOTICE NOTICE NOTICE NOTICE NOTICE
  13. -->
  14. <document type="freeswitch/xml">
  15. <!--#comment
  16. All comments starting with #command will be preprocessed and never sent to the xml parser
  17. Valid instructions:
  18. #include ==> Include another file to this exact point
  19. (partial xml should be encased in <include></include> tags)
  20. #set ==> Set a global variable (can be expanded during preprocessing with $$ variables)
  21. (note the double $$ which denotes preprocessor variables)
  22. #comment ==> A general comment such as this
  23. The preprocessor will compile the full xml document to ${prefix}/log/freeswitch.xml.fsxml
  24. Don't modify it while freeswitch is running cos it is mem mapped in most cases =D
  25. The same can be achieved with the <X-PRE-PROCESS> tag where the attrs 'cmd' and 'data' are
  26. parsed in the same way.
  27. -->
  28. <!--#comment
  29. vars.xml contains all the #set directives for the preprocessor.
  30. -->
  31. <X-PRE-PROCESS cmd="include" data="vars.xml"/>
  32. <section name="configuration" description="Various Configuration">
  33. <X-PRE-PROCESS cmd="include" data="autoload_configs/*.xml"/>
  34. </section>
  35. <section name="dialplan" description="Regex/XML Dialplan">
  36. <X-PRE-PROCESS cmd="include" data="dialplan/*.xml"/>
  37. </section>
  38. <!-- mod_dingaling is reliant on the vcard data in the "directory" section. -->
  39. <!-- mod_sofia is reliant on the user data for authorization -->
  40. <section name="directory" description="User Directory">
  41. <X-PRE-PROCESS cmd="include" data="directory/*.xml"/>
  42. </section>
  43. <!-- languages section (under development still) -->
  44. <section name="languages" description="Language Management">
  45. <X-PRE-PROCESS cmd="include" data="lang/de/*.xml"/>
  46. <X-PRE-PROCESS cmd="include" data="lang/en/*.xml"/>
  47. <X-PRE-PROCESS cmd="include" data="lang/fr/*.xml"/>
  48. <X-PRE-PROCESS cmd="include" data="lang/ru/*.xml"/>
  49. <X-PRE-PROCESS cmd="include" data="lang/he/*.xml"/>
  50. <X-PRE-PROCESS cmd="include" data="lang/es/es_ES.xml"/>
  51. <X-NO-PRE-PROCESS cmd="include" data="lang/es/es_MX.xml"/>
  52. <X-PRE-PROCESS cmd="include" data="lang/pt/pt_BR.xml"/>
  53. <X-NO-PRE-PROCESS cmd="include" data="lang/pt/pt_PT.xml"/>
  54. <X-NO-PRE-PROCESS cmd="include" data="lang/sv/*.xml"/>
  55. </section>
  56. </document>