2 <!-- Preprocessor Variables
3 These are introduced when configuration strings must be consistent across modules.
4 NOTICE: YOU CAN NOT COMMENT OUT AN X-PRE-PROCESS line, Remove the line instead.
6 WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING
8 YOU SHOULD CHANGE THIS default_password value if you don't want to be subject to any
9 toll fraud in the future. It's your responsibility to secure your own system.
11 This default config is used to demonstrate the feature set of FreeSWITCH.
13 WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING
15 <X-PRE-PROCESS cmd="set" data="default_password=1234"/>
16 <!-- Did you change it yet? -->
18 <X-PRE-PROCESS cmd="set" data="sound_prefix=$${sounds_dir}/en/us/callie"/>
21 This setting is what sets the default domain FreeSWITCH will use if all else fails.
23 FreeSWICH will default to $${local_ip_v4} unless changed. Changing this setting does
24 affect the sip authentication. Please review conf/directory/default.xml for more
25 information on this topic.
27 <X-PRE-PROCESS cmd="set" data="domain=$${local_ip_v4}"/>
28 <X-PRE-PROCESS cmd="set" data="domain_name=$${domain}"/>
29 <X-PRE-PROCESS cmd="set" data="hold_music=local_stream://moh"/>
30 <X-PRE-PROCESS cmd="set" data="use_profile=internal"/>
33 Examples of codec options: (module must be compiled and loaded)
35 codecname[@8000h|16000h|32000h[@XXi]]
37 XX is the frame size must be multples allowed for the codec
38 FreeSWITCH can support 10-120ms on some codecs.
39 We do not support exceeding the MTU of the RTP packet.
42 iLBC@30i - iLBC using mode=30 which will win in all cases.
43 DVI4@8000h@20i - IMA ADPCM 8kHz using 20ms ptime. (multiples of 10)
44 DVI4@16000h@40i - IMA ADPCM 16kHz using 40ms ptime. (multiples of 10)
45 speex@8000h@20i - Speex 8kHz using 20ms ptime.
46 speex@16000h@20i - Speex 16kHz using 20ms ptime.
47 speex@32000h@20i - Speex 32kHz using 20ms ptime.
48 BV16 - BroadVoice 16kb/s narrowband, 8kHz
49 BV32 - BroadVoice 32kb/s wideband, 16kHz
50 G7221@16000h - G722.1 16kHz (aka Siren 7)
51 G7221@32000h - G722.1C 32kHz (aka Siren 14)
52 CELT@32000h - CELT 32kHz, only 10ms supported
53 CELT@48000h - CELT 48kHz, only 10ms supported
54 GSM@40i - GSM 8kHz using 40ms ptime. (GSM is done in multiples of 20, Default is 20ms)
55 G722 - G722 16kHz using default 20ms ptime. (multiples of 10)
56 PCMU - G711 8kHz ulaw using default 20ms ptime. (multiples of 10)
57 PCMA - G711 8kHz alaw using default 20ms ptime. (multiples of 10)
58 G726-16 - G726 16kbit adpcm using default 20ms ptime. (multiples of 10)
59 G726-24 - G726 24kbit adpcm using default 20ms ptime. (multiples of 10)
60 G726-32 - G726 32kbit adpcm using default 20ms ptime. (multiples of 10)
61 G726-40 - G726 40kbit adpcm using default 20ms ptime. (multiples of 10)
62 AAL2-G726-16 - Same as G726-16 but using AAL2 packing. (multiples of 10)
63 AAL2-G726-24 - Same as G726-24 but using AAL2 packing. (multiples of 10)
64 AAL2-G726-32 - Same as G726-32 but using AAL2 packing. (multiples of 10)
65 AAL2-G726-40 - Same as G726-40 but using AAL2 packing. (multiples of 10)
66 LPC - LPC10 using 90ms ptime (only supports 90ms at this time in FreeSWITCH)
67 L16 - L16 isn't recommended for VoIP but you can do it. L16 can exceed the MTU rather quickly.
69 These are the passthru audio codecs:
71 G729 - G729 in passthru mode. (mod_g729)
72 G723 - G723.1 in passthru mode. (mod_g723_1)
73 AMR - AMR in passthru mode. (mod_amr)
75 These are the passthru video codecs: (mod_h26x)
79 H263-1998 - H.263-1998 Video
80 H263-2000 - H.263-2000 Video
83 RTP Dynamic Payload Numbers currently used in FreeSWITCH and what for.
88 99 - Speex 8kHz, 16kHz, 32kHz
103 114 - CELT 32kHz, 48kHz
104 115 - G722.1C (32kHz)
110 121 - AAL2-G726-40 && G726-40
111 122 - AAL2-G726-32 && G726-32
112 123 - AAL2-G726-24 && G726-24
113 124 - AAL2-G726-16 && G726-16
119 <X-PRE-PROCESS cmd="set" data="global_codec_prefs=G7221@32000h,G7221@16000h,G722,PCMU,PCMA,GSM"/>
120 <X-PRE-PROCESS cmd="set" data="outbound_codec_prefs=PCMU,PCMA,GSM"/>
122 <X-PRE-PROCESS cmd="set" data="bind_server_ip=auto"/>
124 <!-- NOTICE NOTICE NOTICE NOTICE NOTICE NOTICE NOTICE NOTICE NOTICE NOTICE NOTICE
126 If you're going to load test FreeSWITCH please input real IP addresses
127 for external_rtp_ip and external_sip_ip
132 ip address: "12.34.56.78"
133 a stun server lookup: "stun:stun.server.com"
134 a DNS name: "host:host.server.com"
135 where fs.mydomain.com is a DNS A record-useful when fs is on
136 a dynamic IP address, and uses a dynamic DNS updater.
137 If unspecified, the bind_server_ip value is used.
138 Used by: sofia.conf.xml dingaling.conf.xml
140 <X-PRE-PROCESS cmd="set" data="external_rtp_ip=stun:stun.freeswitch.org"/>
143 Used as the public IP address for SDP.
145 ip address: "12.34.56.78"
146 a stun server lookup: "stun:stun.server.com"
147 a DNS name: "host:host.server.com"
148 where fs.mydomain.com is a DNS A record-useful when fs is on
149 a dynamic IP address, and uses a dynamic DNS updater.
150 If unspecified, the bind_server_ip value is used.
151 Used by: sofia.conf.xml dingaling.conf.xml
153 <X-PRE-PROCESS cmd="set" data="external_sip_ip=stun:stun.freeswitch.org"/>
156 Used to turn on sip loopback unrolling.
158 <X-PRE-PROCESS cmd="set" data="unroll_loops=true"/>
160 <!-- outbound_caller_id and outbound_caller_name
161 The caller ID telephone number we should use when calling out.
162 Used by: conference.conf.xml and user directory for default
163 outbound callerid name and number.
165 <X-PRE-PROCESS cmd="set" data="outbound_caller_name=FreeSWITCH"/>
166 <X-PRE-PROCESS cmd="set" data="outbound_caller_id=0000000000"/>
168 <!-- various debug and defaults -->
169 <X-PRE-PROCESS cmd="set" data="call_debug=false"/>
170 <X-PRE-PROCESS cmd="set" data="console_loglevel=info"/>
171 <X-PRE-PROCESS cmd="set" data="default_areacode=918"/>
172 <X-PRE-PROCESS cmd="set" data="default_country=US"/>
174 <X-PRE-PROCESS cmd="set" data="uk-ring=%(400,200,400,450);%(400,2200,400,450)"/>
175 <X-PRE-PROCESS cmd="set" data="us-ring=%(2000,4000,440.0,480.0)"/>
176 <X-PRE-PROCESS cmd="set" data="fr-ring=%(1500,3500,440.0,0.0)"/>
177 <X-PRE-PROCESS cmd="set" data="rs-ring=%(1000,4000,425.0,0.0)"/>
178 <X-PRE-PROCESS cmd="set" data="ru-ring=%(800,3200,425,0)"/>
179 <X-PRE-PROCESS cmd="set" data="bong-ring=v=-7;%(100,0,941.0,1477.0);v=-7;>=2;+=.1;%(1400,0,350,440)"/>
180 <X-PRE-PROCESS cmd="set" data="sit=%(274,0,913.8);%(274,0,1370.6);%(380,0,1776.7)"/>
183 SIP and TLS settings. http://wiki.freeswitch.org/wiki/Tls
185 <X-PRE-PROCESS cmd="set" data="sip_tls_version=tlsv1"/>
187 <!-- Internal SIP Profile -->
188 <X-PRE-PROCESS cmd="set" data="internal_auth_calls=true"/>
189 <X-PRE-PROCESS cmd="set" data="internal_sip_port=5060"/>
190 <X-PRE-PROCESS cmd="set" data="internal_tls_port=5061"/>
191 <X-PRE-PROCESS cmd="set" data="internal_ssl_enable=false"/>
192 <X-PRE-PROCESS cmd="set" data="internal_ssl_dir=$${base_dir}/conf/ssl"/>
194 <!-- External SIP Profile -->
195 <X-PRE-PROCESS cmd="set" data="external_auth_calls=false"/>
196 <X-PRE-PROCESS cmd="set" data="external_sip_port=5080"/>
197 <X-PRE-PROCESS cmd="set" data="external_tls_port=5081"/>
198 <X-PRE-PROCESS cmd="set" data="external_ssl_enable=false"/>
199 <X-PRE-PROCESS cmd="set" data="external_ssl_dir=$${base_dir}/conf/ssl"/>
201 <!-- Call recordings directory -->
202 <X-PRE-PROCESS cmd="set" data="recordings_dir=/var/lib/freeswitch/recordings" />