2
0

freeswitch.xml 6.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164
  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="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="no"/>
  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="rtp-ip" value="$${local_ip_v4}"/>
  114. <param name="sip-ip" value="$${local_ip_v4}"/>
  115. <param name="ext-rtp-ip" value="$${local_ip_v4}"/>
  116. <param name="ext-sip-ip" value="$${local_ip_v4}"/>
  117. <param name="rtp-timeout-sec" value="300"/>
  118. <param name="rtp-hold-timeout-sec" value="1800"/>
  119. <param name="session-timeout" value="600"/>
  120. <param name="minimum-session-expires" value="90"/>
  121. <param name="tls" value="false"/>
  122. </settings>
  123. </profile>
  124. </profiles>
  125. </configuration>
  126. <configuration name="switch.conf" description="Switch">
  127. <param name="rtp-start-port" value="20000"/>
  128. <param name="rtp-end-port" value="30000"/>
  129. <param name="threaded-system-exec" value="true"/>
  130. </configuration>
  131. </section>
  132. <section name="dialplan" description="Regex/XML Dialplan">
  133. <context name="default">
  134. <extension name="two">
  135. <condition field="destination_number" expression="^\+15553332901$">
  136. <action application="log" data="${sip_h_identity}"/>
  137. <action application="hash" data="insert/realm/identity_check/${sip_h_identity}"/>
  138. <action application="answer"/>
  139. <action application="park"/>
  140. </condition>
  141. </extension>
  142. <extension name="one">
  143. <condition field="destination_number" expression="^\+15553332900$">
  144. <action application="set" data="absolute_codec_string=PCMU@20i"/>
  145. <action application="info"/>
  146. <action application="answer"/>
  147. <action application="park"/>
  148. </condition>
  149. </extension>
  150. </context>
  151. </section>
  152. </document>