switch.conf.xml 8.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199
  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. <!--
  42. Max number of sessions to allow at any given time.
  43. NOTICE: If you're driving 28 T1's in a single box you should set this to 644*2 or 1288
  44. this will ensure you're able to use the entire DS3 without a problem. Otherwise you'll
  45. be 144 channels short of always filling that DS3 up which can translate into waste.
  46. -->
  47. <param name="max-sessions" value="1000"/>
  48. <!--Most channels to create per second -->
  49. <param name="sessions-per-second" value="30"/>
  50. <!-- Default Global Log Level - value is one of debug,info,notice,warning,err,crit,alert -->
  51. <param name="loglevel" value="debug"/>
  52. <!-- Set the core DEBUG level (0-10) -->
  53. <!-- <param name="debug-level" value="10"/> -->
  54. <!-- SQL Buffer length within rage of 32k to 10m -->
  55. <!-- <param name="sql-buffer-len" value="1m"/> -->
  56. <!-- Maximum SQL Buffer length must be greater than sql-buffer-len -->
  57. <!-- <param name="max-sql-buffer-len" value="2m"/> -->
  58. <!--
  59. The min-dtmf-duration specifies the minimum DTMF duration to use on
  60. outgoing events. Events shorter than this will be increased in duration
  61. to match min_dtmf_duration. You cannot configure a dtmf duration on a
  62. profile that is less than this setting. You may increase this value,
  63. but cannot set it lower than 400. This value cannot exceed
  64. max-dtmf-duration. -->
  65. <!-- <param name="min-dtmf-duration" value="400"/> -->
  66. <!--
  67. The max-dtmf-duration caps the playout of a DTMF event at the specified
  68. duration. Events exceeding this duration will be truncated to this
  69. duration. You cannot configure a duration on a profile that exceeds
  70. this setting. This setting can be lowered, but cannot exceed 192000.
  71. This setting cannot be set lower than min_dtmf_duration. -->
  72. <!-- <param name="max-dtmf-duration" value="192000"/> -->
  73. <!--
  74. The default_dtmf_duration specifies the DTMF duration to use on
  75. originated DTMF events or on events that are received without a
  76. duration specified. This value can be increased or lowered. This
  77. value is lower-bounded by min_dtmf_duration and upper-bounded by
  78. max-dtmf-duration\. -->
  79. <!-- <param name="default-dtmf-duration" value="2000"/> -->
  80. <!--
  81. If you want to send out voicemail notifications via Windows you'll need to change the mailer-app
  82. variable to the setting below:
  83. <param name="mailer-app" value="msmtp"/>
  84. Do not change mailer-app-args.
  85. You will also need to download a sendmail clone for Windows (msmtp). This version works without issue:
  86. http://msmtp.sourceforge.net/index.html. Download and copy the .exe to %winddir%\system32.
  87. You'll need to create a small config file for smtp credentials (host name, authentication, tls, etc.) in
  88. %USERPROFILE%\Application Data\ called "msmtprc.txt". Below is a sample copy of this file:
  89. ###################################
  90. # The SMTP server of the provider.
  91. account provider
  92. host smtp.myisp.com
  93. from john@myisp.com
  94. auth login
  95. user johndoe
  96. password mypassword
  97. # Set a default account
  98. account default : provider
  99. ###################################
  100. -->
  101. <param name="mailer-app" value="sendmail"/>
  102. <param name="mailer-app-args" value="-t"/>
  103. <param name="dump-cores" value="yes"/>
  104. <!-- Enable verbose channel events to include every detail about a channel on every event -->
  105. <!-- <param name="verbose-channel-events" value="no"/> -->
  106. <!-- Enable clock nanosleep -->
  107. <!-- <param name="enable-clock-nanosleep" value="true"/> -->
  108. <!-- Enable monotonic timing -->
  109. <!-- <param name="enable-monotonic-timing" value="true"/> -->
  110. <!-- NEEDS DOCUMENTATION -->
  111. <!-- <param name="enable-softtimer-timerfd" value="true"/> -->
  112. <!-- <param name="enable-cond-yield" value="true"/> -->
  113. <!-- <param name="enable-timer-matrix" value="true"/> -->
  114. <!-- <param name="threaded-system-exec" value="true"/> -->
  115. <!-- <param name="tipping-point" value="0"/> -->
  116. <!-- <param name="timer-affinity" value="disabled"/> -->
  117. <!-- NEEDS DOCUMENTATION -->
  118. <!-- RTP port range -->
  119. <!-- <param name="rtp-start-port" value="16384"/> -->
  120. <!-- <param name="rtp-end-port" value="32768"/> -->
  121. <!-- Test each port to make sure it is not in use by some other process before allocating it to RTP -->
  122. <!-- <param name="rtp-port-usage-robustness" value="true"/> -->
  123. <param name="rtp-enable-zrtp" value="true"/>
  124. <!--
  125. Native PostgreSQL support was removed from the FreeSWITCH Core!
  126. =================================
  127. NOTICE: You MUST enable mod_pgsql
  128. =================================
  129. According to https://www.postgresql.org/docs/9.6/libpq-connect.html#LIBPQ-CONNSTRING
  130. There are two accepted formats for connection strings supported by the libpq library:
  131. * For plain keyword = value strings use pgsql://
  132. pgsql://hostaddr=127.0.0.1 dbname=freeswitch user=freeswitch password='' options='-c client_min_messages=NOTICE'
  133. * For RFC 3986 URIs use postgresql:// or postgres://
  134. postgresql://
  135. postgresql://localhost
  136. postgresql://localhost:5433
  137. postgresql://localhost/mydb
  138. postgresql://user@localhost
  139. postgresql://user:secret@localhost
  140. postgresql://other@localhost/otherdb?connect_timeout=10&application_name=myapp
  141. postgresql:///mydb?host=localhost&port=5433
  142. -->
  143. <!-- <param name="core-db-dsn" value="pgsql://hostaddr=127.0.0.1 dbname=freeswitch user=freeswitch password='' options='-c client_min_messages=NOTICE'" /> -->
  144. <!-- <param name="core-db-dsn" value="postgresql://freeswitch:@127.0.0.1/freeswitch?options=-c%20client_min_messages%3DNOTICE" /> -->
  145. <!-- <param name="core-db-dsn" value="mariadb://Server=localhost;Database=freeswitch;Uid=freeswitch;Pwd=pass;" /> -->
  146. <!-- <param name="core-db-dsn" value="dsn:username:password" /> -->
  147. <!--
  148. Allow to specify the sqlite db at a different location (In this example, move it to ramdrive for
  149. better performance on most linux distro (note, you loose the data if you reboot))
  150. -->
  151. <!-- <param name="core-db-name" value="/dev/shm/core.db" /> -->
  152. <!-- The system will create all the db schemas automatically, set this to false to avoid this behaviour -->
  153. <!-- <param name="auto-create-schemas" value="true"/> -->
  154. <!-- <param name="auto-clear-sql" value="true"/> -->
  155. <!-- <param name="enable-early-hangup" value="true"/> -->
  156. <!-- <param name="core-dbtype" value="MSSQL"/> -->
  157. <!-- Allow multiple registrations to the same account in the central registration table -->
  158. <!-- <param name="multiple-registrations" value="true"/> -->
  159. <!-- <param name="max-audio-channels" value="2"/> -->
  160. </settings>
  161. </configuration>