freeswitch.xml 9.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238
  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="default_password=$${test}"/>
  5. <X-PRE-PROCESS cmd="set" data="core_video_blank_image=$${conf_dir}/freeswitch-logo.png"/>
  6. <section name="configuration" description="Various Configuration">
  7. <configuration name="modules.conf" description="Modules">
  8. <modules>
  9. <load module="mod_sofia"/>
  10. <load module="mod_console"/>
  11. <load module="mod_loopback"/>
  12. <load module="mod_commands"/>
  13. <load module="mod_dptools"/>
  14. <load module="mod_dialplan_xml"/>
  15. <load module="mod_tone_stream"/>
  16. <load module="mod_commands"/>
  17. <load module="mod_sndfile"/>
  18. </modules>
  19. </configuration>
  20. <configuration name="console.conf" description="Console Logger">
  21. <mappings>
  22. <map name="all" value="console,debug,info,notice,warning,err,crit,alert"/>
  23. </mappings>
  24. <settings>
  25. <param name="colorize" value="true"/>
  26. <param name="loglevel" value="debug"/>
  27. </settings>
  28. </configuration>
  29. <configuration name="timezones.conf" description="Timezones">
  30. <timezones>
  31. <zone name="GMT" value="GMT0" />
  32. </timezones>
  33. </configuration>
  34. <configuration name="sofia.conf" description="SofiaSIP">
  35. <profiles>
  36. <profile name="external">
  37. <gateways>
  38. <gateway name="eavestest">
  39. <param name="username" value="not-used"/>
  40. <param name="password" value="not-used"/>
  41. <param name="proxy" value="$${local_ip_v4}:61068"/>
  42. <param name="register" value="false"/>
  43. <param name="retry-seconds" value="30"/>
  44. <param name="dtmf-type" value="rfc2833"/>
  45. <variables>
  46. <variable name="rtp_secure_media" value="false" direction="outbound"/>
  47. </variables>
  48. </gateway>
  49. </gateways>
  50. <domains>
  51. <domain name="all" alias="false" parse="true"/>
  52. </domains>
  53. <settings>
  54. <param name="debug" value="1"/>
  55. <param name="shutdown-on-fail" value="true"/>
  56. <param name="p-asserted-id-parse" value="verbatim"/>
  57. <param name="username" value="SignalWire-STACK"/>
  58. <param name="user-agent-string" value="SignalWire STACK Unit Test"/>
  59. <param name="sip-trace" value="yes"/>
  60. <param name="sip-capture" value="no"/>
  61. <param name="rfc2833-pt" value="101"/>
  62. <param name="sip-port" value="61068"/>
  63. <param name="dialplan" value="XML"/>
  64. <param name="context" value="default"/>
  65. <param name="dtmf-duration" value="2000"/>
  66. <param name="inbound-codec-prefs" value="PCMU"/>
  67. <param name="outbound-codec-prefs" value="PCMU"/>
  68. <param name="rtp-timer-name" value="soft"/>
  69. <param name="local-network-acl" value="localnet.auto"/>
  70. <param name="manage-presence" value="false"/>
  71. <param name="inbound-codec-negotiation" value="generous"/>
  72. <param name="nonce-ttl" value="60"/>
  73. <param name="inbound-late-negotiation" value="true"/>
  74. <param name="inbound-zrtp-passthru" value="false"/>
  75. <param name="rtp-ip" value="$${local_ip_v4}"/>
  76. <param name="sip-ip" value="$${local_ip_v4}"/>
  77. <param name="ext-rtp-ip" value="$${local_ip_v4}"/>
  78. <param name="ext-sip-ip" value="$${local_ip_v4}"/>
  79. <param name="rtp-timeout-sec" value="300"/>
  80. <param name="rtp-hold-timeout-sec" value="1800"/>
  81. <param name="session-timeout" value="600"/>
  82. <param name="minimum-session-expires" value="90"/>
  83. <param name="tls" value="false"/>
  84. </settings>
  85. </profile>
  86. <profile name="internal">
  87. <gateways>
  88. </gateways>
  89. <domains>
  90. <domain name="all" alias="false" parse="true"/>
  91. </domains>
  92. <settings>
  93. <param name="debug" value="1"/>
  94. <param name="shutdown-on-fail" value="true"/>
  95. <param name="p-asserted-id-parse" value="verbatim"/>
  96. <param name="username" value="SignalWire-STACK"/>
  97. <param name="user-agent-string" value="SignalWire STACK Unit Test"/>
  98. <param name="sip-trace" value="yes"/>
  99. <param name="sip-capture" value="no"/>
  100. <param name="rfc2833-pt" value="101"/>
  101. <param name="sip-port" value="61069"/>
  102. <param name="dialplan" value="XML"/>
  103. <param name="context" value="default"/>
  104. <param name="dtmf-duration" value="2000"/>
  105. <param name="inbound-codec-prefs" value="PCMU"/>
  106. <param name="outbound-codec-prefs" value="PCMU"/>
  107. <param name="rtp-timer-name" value="soft"/>
  108. <param name="local-network-acl" value="localnet.auto"/>
  109. <param name="manage-presence" value="false"/>
  110. <param name="inbound-codec-negotiation" value="generous"/>
  111. <param name="nonce-ttl" value="60"/>
  112. <param name="inbound-late-negotiation" value="true"/>
  113. <param name="inbound-zrtp-passthru" value="false"/>
  114. <param name="rtp-ip" value="$${local_ip_v4}"/>
  115. <param name="sip-ip" value="$${local_ip_v4}"/>
  116. <param name="ext-rtp-ip" value="$${local_ip_v4}"/>
  117. <param name="ext-sip-ip" value="$${local_ip_v4}"/>
  118. <param name="rtp-timeout-sec" value="300"/>
  119. <param name="rtp-hold-timeout-sec" value="1800"/>
  120. <param name="session-timeout" value="600"/>
  121. <param name="minimum-session-expires" value="90"/>
  122. <param name="tls" value="false"/>
  123. </settings>
  124. </profile>
  125. </profiles>
  126. </configuration>
  127. <configuration name="switch.conf" description="Switch">
  128. <param name="rtp-start-port" value="20000"/>
  129. <param name="rtp-end-port" value="30000"/>
  130. <param name="threaded-system-exec" value="true"/>
  131. </configuration>
  132. </section>
  133. <section name="dialplan" description="Regex/XML Dialplan">
  134. <context name="default">
  135. <extension name="one">
  136. <condition field="destination_number" expression="^\+15553332220$">
  137. <action application="set" data="absolute_codec_string=PCMU@20i"/>
  138. <action application="info"/>
  139. <action application="answer"/>
  140. <action application="park""/>
  141. </condition>
  142. </extension>
  143. <extension name="two">
  144. <condition field="destination_number" expression="^\+15553332221$">
  145. <action application="set" data="absolute_codec_string=PCMU@10i"/>
  146. <action application="info"/>
  147. <action application="answer"/>
  148. <action application="playback" data="{loops=-1}tone_stream://%(251,0,300)"/>
  149. </condition>
  150. </extension>
  151. <extension name="three">
  152. <condition field="destination_number" expression="^\+15553332222$">
  153. <action application="set" data="absolute_codec_string=PCMU@30i"/>
  154. <action application="info"/>
  155. <action application="answer"/>
  156. <action application="playback" data="{loops=-1}tone_stream://%(251,0,300)"/>
  157. </condition>
  158. </extension>
  159. <extension name="four">
  160. <condition field="destination_number" expression="^\+15553332223$">
  161. <action application="set" data="absolute_codec_string=PCMU@40i"/>
  162. <action application="info"/>
  163. <action application="answer"/>
  164. <action application="playback" data="{loops=-1}tone_stream://%(251,0,300)"/>
  165. </condition>
  166. </extension>
  167. <extension name="five">
  168. <condition field="destination_number" expression="^\+15553332224$">
  169. <action application="set" data="absolute_codec_string=PCMU@80i"/>
  170. <action application="info"/>
  171. <action application="answer"/>
  172. <action application="playback" data="{loops=-1}tone_stream://%(251,0,300)"/>
  173. </condition>
  174. </extension>
  175. <extension name="six">
  176. <condition field="destination_number" expression="^\+15553332225$">
  177. <action application="set" data="absolute_codec_string=PCMU@10i"/>
  178. <action application="info"/>
  179. <action application="answer"/>
  180. <action application="playback" data="{loops=-1}tone_stream://%(251,0,300)"/>
  181. </condition>
  182. </extension>
  183. <extension name="seven">
  184. <condition field="destination_number" expression="^\+15553332226$">
  185. <action application="set" data="absolute_codec_string=PCMU@20i"/>
  186. <action application="info"/>
  187. <action application="answer"/>
  188. <action application="record_session" data="/tmp/eaves-${uuid}.wav"/>
  189. <action application="playback" data="{loops=-1}tone_stream://%(251,0,300)"/>
  190. </condition>
  191. </extension>
  192. <extension name="eavesdropper_20ms">
  193. <condition field="destination_number" expression="^\+15553332230$">
  194. <action application="answer"/>
  195. <action application="record_session" data="/tmp/eaves-${sip_h_X-UnitTestRecfile}.wav"/>
  196. <action application="playback" data="silence_stream://-1,1400"/>
  197. </condition>
  198. </extension>
  199. <extension name="eight">
  200. <condition field="destination_number" expression="^\+15553332231$">
  201. <action application="answer"/>
  202. <action application="park"/>
  203. </condition>
  204. </extension>
  205. <extension name="eavesdropper_30ms">
  206. <condition field="destination_number" expression="^\+15553332240$">
  207. <action application="set" data="absolute_codec_string=PCMU@30i"/>
  208. <action application="answer"/>
  209. <action application="record_session" data="/tmp/eaves-${sip_h_X-UnitTestRecfile}.wav"/>
  210. <action application="playback" data="silence_stream://-1,1400"/>
  211. </condition>
  212. </extension>
  213. <extension name="ten">
  214. <condition field="destination_number" expression="^\+15553332241$">
  215. <action application="set" data="absolute_codec_string=PCMU@30i"/>
  216. <action application="info"/>
  217. <action application="answer"/>
  218. <action application="playback" data="{loops=-1}tone_stream://%(251,0,300)"/>
  219. </condition>
  220. </extension>
  221. </context>
  222. </section>
  223. </document>