Oliver Smith | 667f19b | 2019-11-08 18:16:30 +0100 | [diff] [blame] | 1 | <configuration name="switch.conf" description="Core Configuration"> |
| 2 | |
| 3 | <cli-keybindings> |
| 4 | <key name="1" value="help"/> |
| 5 | <key name="2" value="status"/> |
| 6 | <key name="3" value="show channels"/> |
| 7 | <key name="4" value="show calls"/> |
| 8 | <key name="5" value="sofia status"/> |
| 9 | <key name="6" value="reloadxml"/> |
| 10 | <key name="7" value="console loglevel 0"/> |
| 11 | <key name="8" value="console loglevel 7"/> |
| 12 | <key name="9" value="sofia status profile internal"/> |
| 13 | <key name="10" value="sofia profile internal siptrace on"/> |
| 14 | <key name="11" value="sofia profile internal siptrace off"/> |
| 15 | <key name="12" value="version"/> |
| 16 | </cli-keybindings> |
| 17 | |
| 18 | <default-ptimes> |
| 19 | <!-- Set this to override the 20ms assumption of various codecs in the sdp with no ptime defined --> |
| 20 | <!-- <codec name="G729" ptime="40"/> --> |
| 21 | </default-ptimes> |
| 22 | |
| 23 | <settings> |
| 24 | <!-- Colorize the Console --> |
| 25 | <param name="colorize-console" value="true"/> |
| 26 | |
| 27 | <!-- Run the timer at 20ms by default and drop down as needed unless you set 1m-timer=true which was previous default --> |
| 28 | <!-- <param name="1ms-timer" value="true"/> --> |
| 29 | |
| 30 | <!-- |
| 31 | Set the Switch Name for HA environments. |
| 32 | When setting the switch name, it will override the system hostname for all DB and CURL requests |
| 33 | allowing cluster environments such as RHCS to have identical FreeSWITCH configurations but run |
| 34 | as different hostnames. |
| 35 | --> |
| 36 | <!-- <param name="switchname" value="freeswitch"/> --> |
| 37 | |
| 38 | <!-- Maximum number of simultaneous DB handles open --> |
| 39 | <param name="max-db-handles" value="50"/> |
| 40 | <!-- Maximum number of seconds to wait for a new DB handle before failing --> |
| 41 | <param name="db-handle-timeout" value="10"/> |
| 42 | |
| 43 | <!-- Minimum idle CPU before refusing calls --> |
| 44 | <!-- <param name="min-idle-cpu" value="25"/> --> |
| 45 | |
| 46 | <!-- |
| 47 | Max number of sessions to allow at any given time. |
| 48 | |
| 49 | NOTICE: If you're driving 28 T1's in a single box you should set this to 644*2 or 1288 |
| 50 | this will ensure you're able to use the entire DS3 without a problem. Otherwise you'll |
| 51 | be 144 channels short of always filling that DS3 up which can translate into waste. |
| 52 | --> |
| 53 | <param name="max-sessions" value="1000"/> |
| 54 | <!--Most channels to create per second --> |
| 55 | <param name="sessions-per-second" value="30"/> |
| 56 | <!-- Default Global Log Level - value is one of debug,info,notice,warning,err,crit,alert --> |
| 57 | <param name="loglevel" value="info"/> |
| 58 | |
| 59 | <!-- Set the core DEBUG level (0-10) --> |
| 60 | <!-- <param name="debug-level" value="10"/> --> |
| 61 | |
| 62 | <!-- SQL Buffer length within rage of 32k to 10m --> |
| 63 | <!-- <param name="sql-buffer-len" value="1m"/> --> |
| 64 | <!-- Maximum SQL Buffer length must be greater than sql-buffer-len --> |
| 65 | <!-- <param name="max-sql-buffer-len" value="2m"/> --> |
| 66 | |
| 67 | <!-- |
| 68 | The min-dtmf-duration specifies the minimum DTMF duration to use on |
| 69 | outgoing events. Events shorter than this will be increased in duration |
| 70 | to match min_dtmf_duration. You cannot configure a dtmf duration on a |
| 71 | profile that is less than this setting. You may increase this value, |
| 72 | but cannot set it lower than 400. This value cannot exceed |
| 73 | max-dtmf-duration. --> |
| 74 | <!-- <param name="min-dtmf-duration" value="400"/> --> |
| 75 | |
| 76 | <!-- |
| 77 | The max-dtmf-duration caps the playout of a DTMF event at the specified |
| 78 | duration. Events exceeding this duration will be truncated to this |
| 79 | duration. You cannot configure a duration on a profile that exceeds |
| 80 | this setting. This setting can be lowered, but cannot exceed 192000. |
| 81 | This setting cannot be set lower than min_dtmf_duration. --> |
| 82 | <!-- <param name="max-dtmf-duration" value="192000"/> --> |
| 83 | |
| 84 | <!-- |
| 85 | The default_dtmf_duration specifies the DTMF duration to use on |
| 86 | originated DTMF events or on events that are received without a |
| 87 | duration specified. This value can be increased or lowered. This |
| 88 | value is lower-bounded by min_dtmf_duration and upper-bounded by |
| 89 | max-dtmf-duration\. --> |
| 90 | <!-- <param name="default-dtmf-duration" value="2000"/> --> |
| 91 | |
| 92 | <!-- |
| 93 | If you want to send out voicemail notifications via Windows you'll need to change the mailer-app |
| 94 | variable to the setting below: |
| 95 | |
| 96 | <param name="mailer-app" value="msmtp"/> |
| 97 | |
| 98 | Do not change mailer-app-args. |
| 99 | You will also need to download a sendmail clone for Windows (msmtp). This version works without issue: |
| 100 | http://msmtp.sourceforge.net/index.html. Download and copy the .exe to %winddir%\system32. |
| 101 | You'll need to create a small config file for smtp credentials (host name, authentication, tls, etc.) in |
| 102 | %USERPROFILE%\Application Data\ called "msmtprc.txt". Below is a sample copy of this file: |
| 103 | |
| 104 | ################################### |
| 105 | # The SMTP server of the provider. |
| 106 | account provider |
| 107 | host smtp.myisp.com |
| 108 | from john@myisp.com |
| 109 | auth login |
| 110 | user johndoe |
| 111 | password mypassword |
| 112 | |
| 113 | # Set a default account |
| 114 | account default : provider |
| 115 | ################################### |
| 116 | |
| 117 | --> |
| 118 | |
| 119 | <param name="mailer-app" value="sendmail"/> |
| 120 | <param name="mailer-app-args" value="-t"/> |
| 121 | <param name="dump-cores" value="yes"/> |
| 122 | |
| 123 | <!-- Enable verbose channel events to include every detail about a channel on every event --> |
| 124 | <!-- <param name="verbose-channel-events" value="no"/> --> |
| 125 | |
| 126 | <!-- Enable clock nanosleep --> |
| 127 | <!-- <param name="enable-clock-nanosleep" value="true"/> --> |
| 128 | |
| 129 | <!-- Enable monotonic timing --> |
| 130 | <!-- <param name="enable-monotonic-timing" value="true"/> --> |
| 131 | |
| 132 | <!-- NEEDS DOCUMENTATION --> |
| 133 | <!-- <param name="enable-softtimer-timerfd" value="true"/> --> |
| 134 | <!-- <param name="enable-cond-yield" value="true"/> --> |
| 135 | <!-- <param name="enable-timer-matrix" value="true"/> --> |
| 136 | <!-- <param name="threaded-system-exec" value="true"/> --> |
| 137 | <!-- <param name="tipping-point" value="0"/> --> |
| 138 | <!-- <param name="timer-affinity" value="disabled"/> --> |
| 139 | <!-- NEEDS DOCUMENTATION --> |
| 140 | |
| 141 | <!-- RTP port range --> |
| 142 | <param name="rtp-start-port" value="16384"/> |
| 143 | <param name="rtp-end-port" value="16484"/> |
| 144 | |
| 145 | <param name="rtp-enable-zrtp" value="false"/> |
| 146 | |
| 147 | <!-- <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'" /> --> |
| 148 | <!-- <param name="core-db-dsn" value="dsn:username:password" /> --> |
| 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 | |
| 154 | <!-- <param name="core-dbtype" value="MSSQL"/> --> |
| 155 | |
| 156 | <!-- Allow multiple registrations to the same account in the central registration table --> |
| 157 | <!-- <param name="multiple-registrations" value="true"/> --> |
| 158 | |
| 159 | </settings> |
| 160 | |
| 161 | </configuration> |
| 162 | |