XML Switch Configuration

From FreeSWITCH Wiki

Jump to: navigation, search

The following page will contain information about the configuration that can be done in switch.conf.xml.

  • 'max-sessions' - limits the total number of concurrent channels on your FreeSWITCHâ„¢ system.
  • 'sessions-per-second' - throttling mechanism, the switch will only create this many channels at most, per second.
  • 'loglevel' - amount of detail to show in log
  • 'crash-protection' - enables features to help prevent certain types of crashes.
  • 'disable-monotonic-timing' - (bool) disables monotonic timer/clock support if it is broken on your system.

Variables are default channel variables set on each channel automatically.

Example config

<configuration name="switch.conf" description="Modules">
  <settings>
    <!--Most channels to allow at once -->
    <param name="max-sessions" value="1000"/>
    <param name="sessions-per-second" value="30"/>
    <param name="loglevel" value="debug"/>
    <param name="crash-protection" value="true"/>
  </settings>
  <!--Any variables defined here will be available in every channel, in the dialplan etc -->
  <variables>
    <variable name="uk-ring" value="%(400,200,400,450);%(400,2200,400,450)"/>
    <variable name="us-ring" value="%(2000, 4000, 440.0, 480.0)"/>
    <variable name="bong-ring" value="v=4000;>=0;+=2;#(60,0);v=2000;%(940,0,350,440)"/>
  </variables>
</configuration>

Personal tools