2
0

freeswitch.xml 6.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166
  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. <load module="mod_hash"/>
  19. </modules>
  20. </configuration>
  21. <configuration name="console.conf" description="Console Logger">
  22. <mappings>
  23. <map name="all" value="console,debug,info,notice,warning,err,crit,alert"/>
  24. </mappings>
  25. <settings>
  26. <param name="colorize" value="true"/>
  27. <param name="loglevel" value="debug"/>
  28. </settings>
  29. </configuration>
  30. <configuration name="timezones.conf" description="Timezones">
  31. <timezones>
  32. <zone name="GMT" value="GMT0" />
  33. </timezones>
  34. </configuration>
  35. <configuration name="sofia.conf" description="SofiaSIP">
  36. <profiles>
  37. <profile name="external">
  38. <gateways>
  39. <gateway name="test_gateway">
  40. <param name="username" value="not-used"/>
  41. <param name="password" value="not-used"/>
  42. <param name="proxy" value="$${local_ip_v4}:62068"/>
  43. <param name="register" value="false"/>
  44. <param name="retry-seconds" value="30"/>
  45. <param name="dtmf-type" value="rfc2833"/>
  46. <variables>
  47. <variable name="rtp_secure_media" value="false" direction="outbound"/>
  48. </variables>
  49. </gateway>
  50. </gateways>
  51. <domains>
  52. <domain name="all" alias="false" parse="true"/>
  53. </domains>
  54. <settings>
  55. <param name="debug" value="1"/>
  56. <param name="shutdown-on-fail" value="true"/>
  57. <param name="p-asserted-id-parse" value="verbatim"/>
  58. <param name="username" value="SignalWire-STACK"/>
  59. <param name="user-agent-string" value="SignalWire STACK Unit Test"/>
  60. <param name="sip-trace" value="no"/>
  61. <param name="sip-capture" value="no"/>
  62. <param name="rfc2833-pt" value="101"/>
  63. <param name="sip-port" value="62068"/>
  64. <param name="dialplan" value="XML"/>
  65. <param name="context" value="default"/>
  66. <param name="dtmf-duration" value="2000"/>
  67. <param name="inbound-codec-prefs" value="PCMU"/>
  68. <param name="outbound-codec-prefs" value="PCMU"/>
  69. <param name="rtp-timer-name" value="soft"/>
  70. <param name="local-network-acl" value="localnet.auto"/>
  71. <param name="manage-presence" value="false"/>
  72. <param name="inbound-codec-negotiation" value="generous"/>
  73. <param name="nonce-ttl" value="60"/>
  74. <param name="inbound-late-negotiation" value="true"/>
  75. <param name="inbound-zrtp-passthru" value="false"/>
  76. <param name="rtp-ip" value="$${local_ip_v4}"/>
  77. <param name="sip-ip" value="$${local_ip_v4}"/>
  78. <param name="ext-rtp-ip" value="$${local_ip_v4}"/>
  79. <param name="ext-sip-ip" value="$${local_ip_v4}"/>
  80. <param name="rtp-timeout-sec" value="300"/>
  81. <param name="rtp-hold-timeout-sec" value="1800"/>
  82. <param name="session-timeout" value="600"/>
  83. <param name="minimum-session-expires" value="90"/>
  84. <param name="tls" value="false"/>
  85. </settings>
  86. </profile>
  87. <profile name="internal">
  88. <gateways>
  89. </gateways>
  90. <domains>
  91. <domain name="all" alias="false" parse="true"/>
  92. </domains>
  93. <settings>
  94. <param name="debug" value="1"/>
  95. <param name="shutdown-on-fail" value="true"/>
  96. <param name="p-asserted-id-parse" value="verbatim"/>
  97. <param name="username" value="SignalWire-STACK"/>
  98. <param name="user-agent-string" value="SignalWire STACK Unit Test"/>
  99. <param name="sip-trace" value="no"/>
  100. <param name="sip-capture" value="no"/>
  101. <param name="rfc2833-pt" value="101"/>
  102. <param name="sip-port" value="61069"/>
  103. <param name="dialplan" value="XML"/>
  104. <param name="context" value="default"/>
  105. <param name="dtmf-duration" value="2000"/>
  106. <param name="inbound-codec-prefs" value="PCMU"/>
  107. <param name="outbound-codec-prefs" value="PCMU"/>
  108. <param name="rtp-timer-name" value="soft"/>
  109. <param name="local-network-acl" value="localnet.auto"/>
  110. <param name="manage-presence" value="false"/>
  111. <param name="inbound-codec-negotiation" value="generous"/>
  112. <param name="nonce-ttl" value="60"/>
  113. <param name="inbound-late-negotiation" value="true"/>
  114. <param name="inbound-zrtp-passthru" value="false"/>
  115. <param name="rtp-ip" value="$${local_ip_v4}"/>
  116. <param name="sip-ip" value="$${local_ip_v4}"/>
  117. <param name="ext-rtp-ip" value="$${local_ip_v4}"/>
  118. <param name="ext-sip-ip" value="$${local_ip_v4}"/>
  119. <param name="rtp-timeout-sec" value="300"/>
  120. <param name="rtp-hold-timeout-sec" value="1800"/>
  121. <param name="session-timeout" value="600"/>
  122. <param name="minimum-session-expires" value="90"/>
  123. <param name="tls" value="false"/>
  124. </settings>
  125. </profile>
  126. </profiles>
  127. </configuration>
  128. <configuration name="switch.conf" description="Switch">
  129. <param name="rtp-start-port" value="20000"/>
  130. <param name="rtp-end-port" value="30000"/>
  131. <param name="threaded-system-exec" value="true"/>
  132. </configuration>
  133. </section>
  134. <section name="dialplan" description="Regex/XML Dialplan">
  135. <context name="default">
  136. <extension name="two">
  137. <condition field="destination_number" expression="^\+15553332901$">
  138. <action application="log" data="${sip_h_identity}"/>
  139. <action application="hash" data="insert/realm/identity_check/${sip_h_identity}"/>
  140. <action application="answer"/>
  141. <action application="park"/>
  142. </condition>
  143. </extension>
  144. <extension name="one">
  145. <condition field="destination_number" expression="^\+15553332900$">
  146. <action application="set" data="absolute_codec_string=PCMU@20i"/>
  147. <action application="info"/>
  148. <action application="answer"/>
  149. <action application="park"/>
  150. </condition>
  151. </extension>
  152. </context>
  153. </section>
  154. </document>