2008-03-05 15:57:16 -05:00
|
|
|
<configuration name="switch.conf" description="Core Configuration">
|
|
|
|
|
|
|
|
<cli-keybindings>
|
|
|
|
<key name="1" value="help"/>
|
|
|
|
<key name="2" value="status"/>
|
|
|
|
<key name="3" value="show channels"/>
|
|
|
|
<key name="4" value="show calls"/>
|
|
|
|
<key name="5" value="sofia status"/>
|
|
|
|
<key name="6" value="reloadxml"/>
|
|
|
|
<key name="7" value="console loglevel 0"/>
|
|
|
|
<key name="8" value="console loglevel 7"/>
|
2008-05-08 17:59:29 -04:00
|
|
|
<key name="9" value="sofia status profile internal"/>
|
2009-04-07 15:30:07 -04:00
|
|
|
<key name="10" value="sofia profile internal siptrace on"/>
|
|
|
|
<key name="11" value="sofia profile internal siptrace off"/>
|
2008-03-05 15:57:16 -05:00
|
|
|
<key name="12" value="version"/>
|
|
|
|
</cli-keybindings>
|
|
|
|
|
2010-11-30 13:28:14 -05:00
|
|
|
<default-ptimes>
|
2012-02-04 00:40:53 -05:00
|
|
|
<!-- Set this to override the 20ms assumption of various codecs in the sdp with no ptime defined -->
|
|
|
|
<!-- <codec name="G729" ptime="40"/> -->
|
2010-11-30 13:28:14 -05:00
|
|
|
</default-ptimes>
|
|
|
|
|
2007-01-22 20:12:47 -05:00
|
|
|
<settings>
|
2012-02-04 00:40:53 -05:00
|
|
|
<!-- Colorize the Console -->
|
2008-07-11 10:35:08 -04:00
|
|
|
<param name="colorize-console" value="true"/>
|
2011-02-04 14:11:31 -05:00
|
|
|
|
2011-04-29 12:09:14 -04:00
|
|
|
<!-- Run the timer at 20ms by default and drop down as needed unless you set 1m-timer=true which was previous default -->
|
|
|
|
<!-- <param name="1ms-timer" value="true"/> -->
|
|
|
|
|
2011-04-29 11:24:50 -04:00
|
|
|
<!--
|
2012-02-04 00:40:53 -05:00
|
|
|
Set the Switch Name for HA environments.
|
|
|
|
When setting the switch name, it will override the system hostname for all DB and CURL requests
|
|
|
|
allowing cluster environments such as RHCS to have identical FreeSWITCH configurations but run
|
|
|
|
as different hostnames.
|
2011-04-29 11:24:50 -04:00
|
|
|
-->
|
2012-02-04 00:40:53 -05:00
|
|
|
<!-- <param name="switchname" value="freeswitch"/> -->
|
2014-02-26 15:36:45 -05:00
|
|
|
<!-- <param name="cpu-idle-smoothing-depth" value="30"/> -->
|
|
|
|
|
2011-04-29 11:24:50 -04:00
|
|
|
|
2012-02-04 00:40:53 -05:00
|
|
|
<!-- Maximum number of simultaneous DB handles open -->
|
2011-03-04 14:52:30 -05:00
|
|
|
<param name="max-db-handles" value="50"/>
|
2012-02-04 00:40:53 -05:00
|
|
|
<!-- Maximum number of seconds to wait for a new DB handle before failing -->
|
2011-03-04 14:52:30 -05:00
|
|
|
<param name="db-handle-timeout" value="10"/>
|
|
|
|
|
2012-02-04 00:40:53 -05:00
|
|
|
<!-- Minimum idle CPU before refusing calls -->
|
|
|
|
<!-- <param name="min-idle-cpu" value="25"/> -->
|
2011-02-04 14:11:31 -05:00
|
|
|
|
2010-12-28 15:00:17 -05:00
|
|
|
<!--
|
|
|
|
Max number of sessions to allow at any given time.
|
|
|
|
|
|
|
|
NOTICE: If you're driving 28 T1's in a single box you should set this to 644*2 or 1288
|
|
|
|
this will ensure you're able to use the entire DS3 without a problem. Otherwise you'll
|
|
|
|
be 144 channels short of always filling that DS3 up which can translate into waste.
|
|
|
|
-->
|
2007-01-22 20:12:47 -05:00
|
|
|
<param name="max-sessions" value="1000"/>
|
2007-10-03 12:53:18 -04:00
|
|
|
<!--Most channels to create per second -->
|
|
|
|
<param name="sessions-per-second" value="30"/>
|
2007-12-10 14:16:50 -05:00
|
|
|
<!-- Default Global Log Level - value is one of debug,info,notice,warning,err,crit,alert -->
|
2007-10-05 14:59:18 -04:00
|
|
|
<param name="loglevel" value="debug"/>
|
2012-02-04 00:40:53 -05:00
|
|
|
|
|
|
|
<!-- Set the core DEBUG level (0-10) -->
|
|
|
|
<!-- <param name="debug-level" value="10"/> -->
|
|
|
|
|
|
|
|
<!-- SQL Buffer length within rage of 32k to 10m -->
|
|
|
|
<!-- <param name="sql-buffer-len" value="1m"/> -->
|
|
|
|
<!-- Maximum SQL Buffer length must be greater than sql-buffer-len -->
|
|
|
|
<!-- <param name="max-sql-buffer-len" value="2m"/> -->
|
|
|
|
|
|
|
|
<!--
|
|
|
|
The min-dtmf-duration specifies the minimum DTMF duration to use on
|
|
|
|
outgoing events. Events shorter than this will be increased in duration
|
|
|
|
to match min_dtmf_duration. You cannot configure a dtmf duration on a
|
|
|
|
profile that is less than this setting. You may increase this value,
|
|
|
|
but cannot set it lower than 400. This value cannot exceed
|
|
|
|
max-dtmf-duration. -->
|
|
|
|
<!-- <param name="min-dtmf-duration" value="400"/> -->
|
|
|
|
|
|
|
|
<!--
|
|
|
|
The max-dtmf-duration caps the playout of a DTMF event at the specified
|
|
|
|
duration. Events exceeding this duration will be truncated to this
|
|
|
|
duration. You cannot configure a duration on a profile that exceeds
|
|
|
|
this setting. This setting can be lowered, but cannot exceed 192000.
|
|
|
|
This setting cannot be set lower than min_dtmf_duration. -->
|
|
|
|
<!-- <param name="max-dtmf-duration" value="192000"/> -->
|
|
|
|
|
|
|
|
<!--
|
|
|
|
The default_dtmf_duration specifies the DTMF duration to use on
|
|
|
|
originated DTMF events or on events that are received without a
|
|
|
|
duration specified. This value can be increased or lowered. This
|
|
|
|
value is lower-bounded by min_dtmf_duration and upper-bounded by
|
|
|
|
max-dtmf-duration\. -->
|
|
|
|
<!-- <param name="default-dtmf-duration" value="2000"/> -->
|
|
|
|
|
2008-07-10 11:35:35 -04:00
|
|
|
<!--
|
2012-02-04 00:40:53 -05:00
|
|
|
If you want to send out voicemail notifications via Windows you'll need to change the mailer-app
|
|
|
|
variable to the setting below:
|
|
|
|
|
|
|
|
<param name="mailer-app" value="msmtp"/>
|
|
|
|
|
|
|
|
Do not change mailer-app-args.
|
|
|
|
You will also need to download a sendmail clone for Windows (msmtp). This version works without issue:
|
|
|
|
http://msmtp.sourceforge.net/index.html. Download and copy the .exe to %winddir%\system32.
|
|
|
|
You'll need to create a small config file for smtp credentials (host name, authentication, tls, etc.) in
|
|
|
|
%USERPROFILE%\Application Data\ called "msmtprc.txt". Below is a sample copy of this file:
|
|
|
|
|
|
|
|
###################################
|
|
|
|
# The SMTP server of the provider.
|
|
|
|
account provider
|
|
|
|
host smtp.myisp.com
|
|
|
|
from john@myisp.com
|
|
|
|
auth login
|
|
|
|
user johndoe
|
|
|
|
password mypassword
|
|
|
|
|
|
|
|
# Set a default account
|
|
|
|
account default : provider
|
|
|
|
###################################
|
|
|
|
|
|
|
|
-->
|
|
|
|
|
2007-11-05 13:45:26 -05:00
|
|
|
<param name="mailer-app" value="sendmail"/>
|
|
|
|
<param name="mailer-app-args" value="-t"/>
|
2007-12-19 20:10:17 -05:00
|
|
|
<param name="dump-cores" value="yes"/>
|
2012-02-04 00:40:53 -05:00
|
|
|
|
|
|
|
<!-- Enable verbose channel events to include every detail about a channel on every event -->
|
|
|
|
<!-- <param name="verbose-channel-events" value="no"/> -->
|
|
|
|
|
|
|
|
<!-- Enable clock nanosleep -->
|
|
|
|
<!-- <param name="enable-clock-nanosleep" value="true"/> -->
|
|
|
|
|
|
|
|
<!-- Enable monotonic timing -->
|
|
|
|
<!-- <param name="enable-monotonic-timing" value="true"/> -->
|
|
|
|
|
|
|
|
<!-- NEEDS DOCUMENTATION -->
|
|
|
|
<!-- <param name="enable-softtimer-timerfd" value="true"/> -->
|
|
|
|
<!-- <param name="enable-cond-yield" value="true"/> -->
|
|
|
|
<!-- <param name="enable-timer-matrix" value="true"/> -->
|
|
|
|
<!-- <param name="threaded-system-exec" value="true"/> -->
|
|
|
|
<!-- <param name="tipping-point" value="0"/> -->
|
|
|
|
<!-- <param name="timer-affinity" value="disabled"/> -->
|
|
|
|
<!-- NEEDS DOCUMENTATION -->
|
|
|
|
|
|
|
|
<!-- RTP port range -->
|
|
|
|
<!-- <param name="rtp-start-port" value="16384"/> -->
|
|
|
|
<!-- <param name="rtp-end-port" value="32768"/> -->
|
|
|
|
|
2014-01-23 14:23:58 -05:00
|
|
|
<!-- Test each port to make sure it is not in use by some other process before allocating it to RTP -->
|
|
|
|
<!-- <param name="rtp-port-usage-robustness" value="true"/> -->
|
|
|
|
|
2009-05-20 19:05:28 -04:00
|
|
|
<param name="rtp-enable-zrtp" value="true"/>
|
2012-02-04 00:40:53 -05:00
|
|
|
|
2012-11-02 15:07:26 -04:00
|
|
|
<!-- <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'" /> -->
|
2009-12-02 13:07:09 -05:00
|
|
|
<!-- <param name="core-db-dsn" value="dsn:username:password" /> -->
|
2012-02-04 00:40:53 -05:00
|
|
|
<!--
|
|
|
|
Allow to specify the sqlite db at a different location (In this example, move it to ramdrive for
|
|
|
|
better performance on most linux distro (note, you loose the data if you reboot))
|
|
|
|
-->
|
2011-02-15 01:49:41 -05:00
|
|
|
<!-- <param name="core-db-name" value="/dev/shm/core.db" /> -->
|
2012-02-04 00:40:53 -05:00
|
|
|
|
|
|
|
<!-- The system will create all the db schemas automatically, set this to false to avoid this behaviour -->
|
|
|
|
<!-- <param name="auto-create-schemas" value="true"/> -->
|
|
|
|
<!-- <param name="auto-clear-sql" value="true"/> -->
|
|
|
|
<!-- <param name="enable-early-hangup" value="true"/> -->
|
|
|
|
|
2011-02-17 13:14:48 -05:00
|
|
|
<!-- <param name="core-dbtype" value="MSSQL"/> -->
|
2012-02-04 00:40:53 -05:00
|
|
|
|
2011-02-17 13:14:48 -05:00
|
|
|
<!-- Allow multiple registrations to the same account in the central registration table -->
|
|
|
|
<!-- <param name="multiple-registrations" value="true"/> -->
|
2012-02-04 00:40:53 -05:00
|
|
|
|
2007-01-22 20:12:47 -05:00
|
|
|
</settings>
|
2008-06-25 16:56:01 -04:00
|
|
|
|
2007-01-22 20:12:47 -05:00
|
|
|
</configuration>
|
|
|
|
|