2
0

freeswitch.xml 9.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236
  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="rtp-ip" value="$${local_ip_v4}"/>
  75. <param name="sip-ip" value="$${local_ip_v4}"/>
  76. <param name="ext-rtp-ip" value="$${local_ip_v4}"/>
  77. <param name="ext-sip-ip" value="$${local_ip_v4}"/>
  78. <param name="rtp-timeout-sec" value="300"/>
  79. <param name="rtp-hold-timeout-sec" value="1800"/>
  80. <param name="session-timeout" value="600"/>
  81. <param name="minimum-session-expires" value="90"/>
  82. <param name="tls" value="false"/>
  83. </settings>
  84. </profile>
  85. <profile name="internal">
  86. <gateways>
  87. </gateways>
  88. <domains>
  89. <domain name="all" alias="false" parse="true"/>
  90. </domains>
  91. <settings>
  92. <param name="debug" value="1"/>
  93. <param name="shutdown-on-fail" value="true"/>
  94. <param name="p-asserted-id-parse" value="verbatim"/>
  95. <param name="username" value="SignalWire-STACK"/>
  96. <param name="user-agent-string" value="SignalWire STACK Unit Test"/>
  97. <param name="sip-trace" value="yes"/>
  98. <param name="sip-capture" value="no"/>
  99. <param name="rfc2833-pt" value="101"/>
  100. <param name="sip-port" value="61069"/>
  101. <param name="dialplan" value="XML"/>
  102. <param name="context" value="default"/>
  103. <param name="dtmf-duration" value="2000"/>
  104. <param name="inbound-codec-prefs" value="PCMU"/>
  105. <param name="outbound-codec-prefs" value="PCMU"/>
  106. <param name="rtp-timer-name" value="soft"/>
  107. <param name="local-network-acl" value="localnet.auto"/>
  108. <param name="manage-presence" value="false"/>
  109. <param name="inbound-codec-negotiation" value="generous"/>
  110. <param name="nonce-ttl" value="60"/>
  111. <param name="inbound-late-negotiation" value="true"/>
  112. <param name="rtp-ip" value="$${local_ip_v4}"/>
  113. <param name="sip-ip" value="$${local_ip_v4}"/>
  114. <param name="ext-rtp-ip" value="$${local_ip_v4}"/>
  115. <param name="ext-sip-ip" value="$${local_ip_v4}"/>
  116. <param name="rtp-timeout-sec" value="300"/>
  117. <param name="rtp-hold-timeout-sec" value="1800"/>
  118. <param name="session-timeout" value="600"/>
  119. <param name="minimum-session-expires" value="90"/>
  120. <param name="tls" value="false"/>
  121. </settings>
  122. </profile>
  123. </profiles>
  124. </configuration>
  125. <configuration name="switch.conf" description="Switch">
  126. <param name="rtp-start-port" value="20000"/>
  127. <param name="rtp-end-port" value="30000"/>
  128. <param name="threaded-system-exec" value="true"/>
  129. </configuration>
  130. </section>
  131. <section name="dialplan" description="Regex/XML Dialplan">
  132. <context name="default">
  133. <extension name="one">
  134. <condition field="destination_number" expression="^\+15553332220$">
  135. <action application="set" data="absolute_codec_string=PCMU@20i"/>
  136. <action application="info"/>
  137. <action application="answer"/>
  138. <action application="park""/>
  139. </condition>
  140. </extension>
  141. <extension name="two">
  142. <condition field="destination_number" expression="^\+15553332221$">
  143. <action application="set" data="absolute_codec_string=PCMU@10i"/>
  144. <action application="info"/>
  145. <action application="answer"/>
  146. <action application="playback" data="{loops=-1}tone_stream://%(251,0,300)"/>
  147. </condition>
  148. </extension>
  149. <extension name="three">
  150. <condition field="destination_number" expression="^\+15553332222$">
  151. <action application="set" data="absolute_codec_string=PCMU@30i"/>
  152. <action application="info"/>
  153. <action application="answer"/>
  154. <action application="playback" data="{loops=-1}tone_stream://%(251,0,300)"/>
  155. </condition>
  156. </extension>
  157. <extension name="four">
  158. <condition field="destination_number" expression="^\+15553332223$">
  159. <action application="set" data="absolute_codec_string=PCMU@40i"/>
  160. <action application="info"/>
  161. <action application="answer"/>
  162. <action application="playback" data="{loops=-1}tone_stream://%(251,0,300)"/>
  163. </condition>
  164. </extension>
  165. <extension name="five">
  166. <condition field="destination_number" expression="^\+15553332224$">
  167. <action application="set" data="absolute_codec_string=PCMU@80i"/>
  168. <action application="info"/>
  169. <action application="answer"/>
  170. <action application="playback" data="{loops=-1}tone_stream://%(251,0,300)"/>
  171. </condition>
  172. </extension>
  173. <extension name="six">
  174. <condition field="destination_number" expression="^\+15553332225$">
  175. <action application="set" data="absolute_codec_string=PCMU@10i"/>
  176. <action application="info"/>
  177. <action application="answer"/>
  178. <action application="playback" data="{loops=-1}tone_stream://%(251,0,300)"/>
  179. </condition>
  180. </extension>
  181. <extension name="seven">
  182. <condition field="destination_number" expression="^\+15553332226$">
  183. <action application="set" data="absolute_codec_string=PCMU@20i"/>
  184. <action application="info"/>
  185. <action application="answer"/>
  186. <action application="record_session" data="/tmp/eaves-${uuid}.wav"/>
  187. <action application="playback" data="{loops=-1}tone_stream://%(251,0,300)"/>
  188. </condition>
  189. </extension>
  190. <extension name="eavesdropper_20ms">
  191. <condition field="destination_number" expression="^\+15553332230$">
  192. <action application="answer"/>
  193. <action application="record_session" data="/tmp/eaves-${sip_h_X-UnitTestRecfile}.wav"/>
  194. <action application="playback" data="silence_stream://-1,1400"/>
  195. </condition>
  196. </extension>
  197. <extension name="eight">
  198. <condition field="destination_number" expression="^\+15553332231$">
  199. <action application="answer"/>
  200. <action application="park"/>
  201. </condition>
  202. </extension>
  203. <extension name="eavesdropper_30ms">
  204. <condition field="destination_number" expression="^\+15553332240$">
  205. <action application="set" data="absolute_codec_string=PCMU@30i"/>
  206. <action application="answer"/>
  207. <action application="record_session" data="/tmp/eaves-${sip_h_X-UnitTestRecfile}.wav"/>
  208. <action application="playback" data="silence_stream://-1,1400"/>
  209. </condition>
  210. </extension>
  211. <extension name="ten">
  212. <condition field="destination_number" expression="^\+15553332241$">
  213. <action application="set" data="absolute_codec_string=PCMU@30i"/>
  214. <action application="info"/>
  215. <action application="answer"/>
  216. <action application="playback" data="{loops=-1}tone_stream://%(251,0,300)"/>
  217. </condition>
  218. </extension>
  219. </context>
  220. </section>
  221. </document>