switch.conf.xml 8.3 KB

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