switch.conf.xml 8.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208
  1. <configuration name="switch.conf" description="Core Configuration">
  2. <cli-keybindings>
  3. <key name="1" value="help"/>
  4. <key name="2" value="status"/>
  5. <key name="3" value="show channels"/>
  6. <key name="4" value="show calls"/>
  7. <key name="5" value="sofia status"/>
  8. <key name="6" value="reloadxml"/>
  9. <key name="7" value="console loglevel 0"/>
  10. <key name="8" value="console loglevel 7"/>
  11. <key name="9" value="sofia status profile internal"/>
  12. <key name="10" value="sofia profile internal siptrace on"/>
  13. <key name="11" value="sofia profile internal siptrace off"/>
  14. <key name="12" value="version"/>
  15. </cli-keybindings>
  16. <default-ptimes>
  17. <!-- Set this to override the 20ms assumption of various codecs in the sdp with no ptime defined -->
  18. <!-- <codec name="G729" ptime="40"/> -->
  19. </default-ptimes>
  20. <settings>
  21. <!-- Colorize the Console -->
  22. <param name="colorize-console" value="true"/>
  23. <!--Include full timestamps in dialplan logs -->
  24. <param name="dialplan-timestamps" value="false"/>
  25. <!-- Run the timer at 20ms by default and drop down as needed unless you set 1m-timer=true which was previous default -->
  26. <!-- <param name="1ms-timer" value="true"/> -->
  27. <!--
  28. Set the Switch Name for HA environments.
  29. When setting the switch name, it will override the system hostname for all DB and CURL requests
  30. allowing cluster environments such as RHCS to have identical FreeSWITCH configurations but run
  31. as different hostnames.
  32. -->
  33. <!-- <param name="switchname" value="freeswitch"/> -->
  34. <!-- <param name="cpu-idle-smoothing-depth" value="30"/> -->
  35. <!-- Maximum number of simultaneous DB handles open -->
  36. <param name="max-db-handles" value="50"/>
  37. <!-- Maximum number of seconds to wait for a new DB handle before failing -->
  38. <param name="db-handle-timeout" value="10"/>
  39. <!-- Minimum idle CPU before refusing calls -->
  40. <!-- <param name="min-idle-cpu" value="25"/> -->
  41. <!-- Interval between heartbeat events -->
  42. <!-- <param name="event-heartbeat-interval" value="20"/> -->
  43. <!--
  44. Max number of sessions to allow at any given time.
  45. NOTICE: If you're driving 28 T1's in a single box you should set this to 644*2 or 1288
  46. this will ensure you're able to use the entire DS3 without a problem. Otherwise you'll
  47. be 144 channels short of always filling that DS3 up which can translate into waste.
  48. -->
  49. <param name="max-sessions" value="1000"/>
  50. <!--Most channels to create per second -->
  51. <param name="sessions-per-second" value="30"/>
  52. <!-- Default Global Log Level - value is one of debug,info,notice,warning,err,crit,alert -->
  53. <param name="loglevel" value="debug"/>
  54. <!-- Set the core DEBUG level (0-10) -->
  55. <!-- <param name="debug-level" value="10"/> -->
  56. <!-- SQL Buffer length within rage of 32k to 10m -->
  57. <!-- <param name="sql-buffer-len" value="1m"/> -->
  58. <!-- Maximum SQL Buffer length must be greater than sql-buffer-len -->
  59. <!-- <param name="max-sql-buffer-len" value="2m"/> -->
  60. <!--
  61. The min-dtmf-duration specifies the minimum DTMF duration to use on
  62. outgoing events. Events shorter than this will be increased in duration
  63. to match min_dtmf_duration. You cannot configure a dtmf duration on a
  64. profile that is less than this setting. You may increase this value,
  65. but cannot set it lower than 400. This value cannot exceed
  66. max-dtmf-duration. -->
  67. <!-- <param name="min-dtmf-duration" value="400"/> -->
  68. <!--
  69. The max-dtmf-duration caps the playout of a DTMF event at the specified
  70. duration. Events exceeding this duration will be truncated to this
  71. duration. You cannot configure a duration on a profile that exceeds
  72. this setting. This setting can be lowered, but cannot exceed 192000.
  73. This setting cannot be set lower than min_dtmf_duration. -->
  74. <!-- <param name="max-dtmf-duration" value="192000"/> -->
  75. <!--
  76. The default_dtmf_duration specifies the DTMF duration to use on
  77. originated DTMF events or on events that are received without a
  78. duration specified. This value can be increased or lowered. This
  79. value is lower-bounded by min_dtmf_duration and upper-bounded by
  80. max-dtmf-duration\. -->
  81. <!-- <param name="default-dtmf-duration" value="2000"/> -->
  82. <!--
  83. If you want to send out voicemail notifications via Windows you'll need to change the mailer-app
  84. variable to the setting below:
  85. <param name="mailer-app" value="msmtp"/>
  86. Do not change mailer-app-args.
  87. You will also need to download a sendmail clone for Windows (msmtp). This version works without issue:
  88. http://msmtp.sourceforge.net/index.html. Download and copy the .exe to %winddir%\system32.
  89. You'll need to create a small config file for smtp credentials (host name, authentication, tls, etc.) in
  90. %USERPROFILE%\Application Data\ called "msmtprc.txt". Below is a sample copy of this file:
  91. ###################################
  92. # The SMTP server of the provider.
  93. account provider
  94. host smtp.myisp.com
  95. from john@myisp.com
  96. auth login
  97. user johndoe
  98. password mypassword
  99. # Set a default account
  100. account default : provider
  101. ###################################
  102. -->
  103. <param name="mailer-app" value="sendmail"/>
  104. <param name="mailer-app-args" value="-t"/>
  105. <param name="dump-cores" value="yes"/>
  106. <!-- Enable verbose channel events to include every detail about a channel on every event -->
  107. <!-- <param name="verbose-channel-events" value="no"/> -->
  108. <!-- Enable clock nanosleep -->
  109. <!-- <param name="enable-clock-nanosleep" value="true"/> -->
  110. <!-- Enable monotonic timing -->
  111. <!-- <param name="enable-monotonic-timing" value="true"/> -->
  112. <!-- NEEDS DOCUMENTATION -->
  113. <!-- <param name="enable-softtimer-timerfd" value="true"/> -->
  114. <!-- <param name="enable-cond-yield" value="true"/> -->
  115. <!-- <param name="enable-timer-matrix" value="true"/> -->
  116. <!-- <param name="threaded-system-exec" value="true"/> -->
  117. <!-- <param name="tipping-point" value="0"/> -->
  118. <!-- <param name="timer-affinity" value="disabled"/> -->
  119. <!-- NEEDS DOCUMENTATION -->
  120. <!-- RTP port range -->
  121. <!-- <param name="rtp-start-port" value="16384"/> -->
  122. <!-- <param name="rtp-end-port" value="32768"/> -->
  123. <!-- Test each port to make sure it is not in use by some other process before allocating it to RTP -->
  124. <!-- <param name="rtp-port-usage-robustness" value="true"/> -->
  125. <param name="rtp-enable-zrtp" value="false"/>
  126. <!--
  127. Store encryption keys for secure media in channel variables and call CDRs. Default: false.
  128. WARNING: If true, anyone with CDR access can decrypt secure media!
  129. -->
  130. <!-- <param name="rtp-retain-crypto-keys" value="true"/> -->
  131. <!--
  132. Native PostgreSQL support was removed from the FreeSWITCH Core!
  133. =================================
  134. NOTICE: You MUST enable mod_pgsql
  135. =================================
  136. According to https://www.postgresql.org/docs/9.6/libpq-connect.html#LIBPQ-CONNSTRING
  137. There are two accepted formats for connection strings supported by the libpq library:
  138. * For plain keyword = value strings use pgsql://
  139. pgsql://hostaddr=127.0.0.1 dbname=freeswitch user=freeswitch password='' options='-c client_min_messages=NOTICE'
  140. * For RFC 3986 URIs use postgresql:// or postgres://
  141. postgresql://
  142. postgresql://localhost
  143. postgresql://localhost:5433
  144. postgresql://localhost/mydb
  145. postgresql://user@localhost
  146. postgresql://user:secret@localhost
  147. postgresql://other@localhost/otherdb?connect_timeout=10&application_name=myapp
  148. postgresql:///mydb?host=localhost&port=5433
  149. -->
  150. <!-- <param name="core-db-dsn" value="pgsql://hostaddr=127.0.0.1 dbname=freeswitch user=freeswitch password='' options='-c client_min_messages=NOTICE'" /> -->
  151. <!-- <param name="core-db-dsn" value="postgresql://freeswitch:@127.0.0.1/freeswitch?options=-c%20client_min_messages%3DNOTICE" /> -->
  152. <!-- <param name="core-db-dsn" value="mariadb://Server=localhost;Database=freeswitch;Uid=freeswitch;Pwd=pass;" /> -->
  153. <!-- <param name="core-db-dsn" value="dsn:username:password" /> -->
  154. <!--
  155. Allow to specify the sqlite db at a different location (In this example, move it to ramdrive for
  156. better performance on most linux distro (note, you loose the data if you reboot))
  157. -->
  158. <!-- <param name="core-db-name" value="/dev/shm/core.db" /> -->
  159. <!-- The system will create all the db schemas automatically, set this to false to avoid this behaviour -->
  160. <!-- <param name="auto-create-schemas" value="true"/> -->
  161. <!-- <param name="auto-clear-sql" value="true"/> -->
  162. <!-- <param name="enable-early-hangup" value="true"/> -->
  163. <!-- <param name="core-dbtype" value="MSSQL"/> -->
  164. <!-- Allow multiple registrations to the same account in the central registration table -->
  165. <!-- <param name="multiple-registrations" value="true"/> -->
  166. <!-- <param name="max-audio-channels" value="2"/> -->
  167. </settings>
  168. </configuration>