freeswitch.xml 2.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. <?xml version="1.0"?>
  2. <document type="freeswitch/xml">
  3. <X-PRE-PROCESS cmd="exec-set" data="test=echo 1234"/>
  4. <X-PRE-PROCESS cmd="set" data="spawn_instead_of_system=true"/>
  5. <X-PRE-PROCESS cmd="exec-set" data="shell_exec_set_test=ls / | grep usr"/>
  6. <X-PRE-PROCESS cmd="set" data="spawn_instead_of_system=false"/>
  7. <X-PRE-PROCESS cmd="set" data="default_password=$${test}"/>
  8. <X-PRE-PROCESS cmd="set" data="rtp_timer_name=soft" />
  9. <section name="configuration" description="Various Configuration">
  10. <configuration name="modules.conf" description="Modules">
  11. <modules>
  12. <load module="mod_console"/>
  13. <load module="mod_loopback"/>
  14. <load module="mod_opus"/>
  15. <load module="mod_spandsp"/>
  16. <load module="mod_amr"/>
  17. <load module="mod_amrwb"/>
  18. <load module="mod_tone_stream"/>
  19. <load module="mod_dptools"/>
  20. <load module="mod_sndfile"/>
  21. <load module="mod_dialplan_xml"/>
  22. <load module="mod_sndfile"/>
  23. <load module="mod_test"/>
  24. </modules>
  25. </configuration>
  26. <configuration name="switch.conf" description="Core Configuration">
  27. <default-ptimes>
  28. </default-ptimes>
  29. <settings>
  30. <param name="colorize-console" value="false"/>
  31. <param name="dialplan-timestamps" value="false"/>
  32. <param name="loglevel" value="debug"/>
  33. <param name="rtp-start-port" value="1234"/>
  34. <param name="rtp-end-port" value="1234"/>
  35. </settings>
  36. </configuration>
  37. <configuration name="console.conf" description="Console Logger">
  38. <mappings>
  39. <map name="all" value="console,debug,info,notice,warning,err,crit,alert"/>
  40. </mappings>
  41. <settings>
  42. <param name="colorize" value="true"/>
  43. <param name="loglevel" value="debug"/>
  44. </settings>
  45. </configuration>
  46. <configuration name="timezones.conf" description="Timezones">
  47. <timezones>
  48. <zone name="GMT" value="GMT0" />
  49. </timezones>
  50. </configuration>
  51. <X-PRE-PROCESS cmd="include" data="vpx.conf.xml"/>
  52. </section>
  53. <section name="dialplan" description="Regex/XML Dialplan">
  54. <context name="default">
  55. <extension name="loopback">
  56. <condition field="destination_number" expression="^loopback$">
  57. <action application="bridge" data="null/+1234"/>
  58. </condition>
  59. </extension>
  60. <extension name="sample">
  61. <condition>
  62. <action application="info"/>
  63. </condition>
  64. </extension>
  65. </context>
  66. </section>
  67. </document>