2009-03-26 21:44:28 -04:00
|
|
|
<include>
|
2007-10-17 12:08:14 -04:00
|
|
|
<!-- Preprocessor Variables
|
|
|
|
These are introduced when configuration strings must be consistent across modules.
|
2009-02-16 10:14:05 -05:00
|
|
|
NOTICE: YOU CAN NOT COMMENT OUT AN X-PRE-PROCESS line, Remove the line instead.
|
2009-03-26 21:44:28 -04:00
|
|
|
|
|
|
|
WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING
|
|
|
|
|
|
|
|
YOU SHOULD CHANGE THIS default_password value if you don't want to be subject to any
|
|
|
|
toll fraud in the future. It's your responsibility to secure your own system.
|
|
|
|
|
|
|
|
This default config is used to demonstrate the feature set of FreeSWITCH.
|
|
|
|
|
|
|
|
WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING
|
|
|
|
-->
|
|
|
|
<X-PRE-PROCESS cmd="set" data="default_password=1234"/>
|
|
|
|
<!-- Did you change it yet? -->
|
|
|
|
|
2008-09-29 01:23:28 -04:00
|
|
|
<!--
|
|
|
|
This setting is what sets the default domain FreeSWITCH will use if all else fails.
|
|
|
|
|
|
|
|
FreeSWICH will default to $${local_ip_v4} unless changed. Changing this setting does
|
|
|
|
affect the sip authentication. Please review conf/directory/default.xml for more
|
|
|
|
information on this topic.
|
|
|
|
-->
|
2007-11-14 15:29:19 -05:00
|
|
|
<X-PRE-PROCESS cmd="set" data="domain=$${local_ip_v4}"/>
|
2009-02-16 14:01:50 -05:00
|
|
|
<X-PRE-PROCESS cmd="set" data="domain_name=$${domain}"/>
|
2008-04-11 16:12:41 -04:00
|
|
|
<X-PRE-PROCESS cmd="set" data="hold_music=local_stream://moh"/>
|
2009-06-19 16:02:05 -04:00
|
|
|
<X-PRE-PROCESS cmd="set" data="use_profile=internal"/>
|
2009-05-27 01:07:19 -04:00
|
|
|
|
2009-05-27 14:31:49 -04:00
|
|
|
<!--
|
|
|
|
Enable ZRTP globally you can override this on a per channel basis
|
|
|
|
|
|
|
|
http://wiki.freeswitch.org/wiki/ZRTP (on how to enable zrtp)
|
|
|
|
-->
|
2009-05-27 01:07:19 -04:00
|
|
|
<X-PRE-PROCESS cmd="set" data="zrtp_secure_media=true"/>
|
2009-05-27 12:09:51 -04:00
|
|
|
|
2008-02-10 00:07:29 -05:00
|
|
|
<!--
|
|
|
|
Examples of codec options: (module must be compiled and loaded)
|
|
|
|
|
|
|
|
codecname[@8000h|16000h|32000h[@XXi]]
|
|
|
|
|
|
|
|
XX is the frame size must be multples allowed for the codec
|
|
|
|
FreeSWITCH can support 10-120ms on some codecs.
|
|
|
|
We do not support exceeding the MTU of the RTP packet.
|
|
|
|
|
|
|
|
|
|
|
|
iLBC@30i - iLBC using mode=30 which will win in all cases.
|
|
|
|
DVI4@8000h@20i - IMA ADPCM 8kHz using 20ms ptime. (multiples of 10)
|
|
|
|
DVI4@16000h@40i - IMA ADPCM 16kHz using 40ms ptime. (multiples of 10)
|
|
|
|
speex@8000h@20i - Speex 8kHz using 20ms ptime.
|
|
|
|
speex@16000h@20i - Speex 16kHz using 20ms ptime.
|
|
|
|
speex@32000h@20i - Speex 32kHz using 20ms ptime.
|
2009-11-23 13:32:33 -05:00
|
|
|
BV16 - BroadVoice 16kb/s narrowband, 8kHz
|
|
|
|
BV32 - BroadVoice 32kb/s wideband, 16kHz
|
2008-12-12 15:52:52 -05:00
|
|
|
G7221@16000h - G722.1 16kHz (aka Siren 7)
|
|
|
|
G7221@32000h - G722.1C 32kHz (aka Siren 14)
|
2008-12-21 14:48:33 -05:00
|
|
|
CELT@32000h - CELT 32kHz, only 10ms supported
|
|
|
|
CELT@48000h - CELT 48kHz, only 10ms supported
|
2008-02-10 00:07:29 -05:00
|
|
|
GSM@40i - GSM 8kHz using 40ms ptime. (GSM is done in multiples of 20, Default is 20ms)
|
|
|
|
G722 - G722 16kHz using default 20ms ptime. (multiples of 10)
|
|
|
|
PCMU - G711 8kHz ulaw using default 20ms ptime. (multiples of 10)
|
|
|
|
PCMA - G711 8kHz alaw using default 20ms ptime. (multiples of 10)
|
|
|
|
G726-16 - G726 16kbit adpcm using default 20ms ptime. (multiples of 10)
|
|
|
|
G726-24 - G726 24kbit adpcm using default 20ms ptime. (multiples of 10)
|
|
|
|
G726-32 - G726 32kbit adpcm using default 20ms ptime. (multiples of 10)
|
|
|
|
G726-40 - G726 40kbit adpcm using default 20ms ptime. (multiples of 10)
|
|
|
|
AAL2-G726-16 - Same as G726-16 but using AAL2 packing. (multiples of 10)
|
|
|
|
AAL2-G726-24 - Same as G726-24 but using AAL2 packing. (multiples of 10)
|
|
|
|
AAL2-G726-32 - Same as G726-32 but using AAL2 packing. (multiples of 10)
|
|
|
|
AAL2-G726-40 - Same as G726-40 but using AAL2 packing. (multiples of 10)
|
|
|
|
LPC - LPC10 using 90ms ptime (only supports 90ms at this time in FreeSWITCH)
|
|
|
|
L16 - L16 isn't recommended for VoIP but you can do it. L16 can exceed the MTU rather quickly.
|
|
|
|
|
|
|
|
These are the passthru audio codecs:
|
|
|
|
|
|
|
|
G729 - G729 in passthru mode. (mod_g729)
|
|
|
|
G723 - G723.1 in passthru mode. (mod_g723_1)
|
|
|
|
AMR - AMR in passthru mode. (mod_amr)
|
|
|
|
|
|
|
|
These are the passthru video codecs: (mod_h26x)
|
|
|
|
|
|
|
|
H261 - H.261 Video
|
|
|
|
H263 - H.263 Video
|
|
|
|
H263-1998 - H.263-1998 Video
|
|
|
|
H263-2000 - H.263-2000 Video
|
|
|
|
H264 - H.264 Video
|
2010-01-11 19:31:29 -05:00
|
|
|
|
|
|
|
RTP Dynamic Payload Numbers currently used in FreeSWITCH and what for.
|
|
|
|
|
|
|
|
96 - AMR
|
|
|
|
97 - iLBC (30)
|
|
|
|
98 - iLBC (20)
|
|
|
|
99 - Speex 8kHz, 16kHz, 32kHz
|
|
|
|
100 -
|
|
|
|
101 - telephone-event
|
|
|
|
102 -
|
|
|
|
103 -
|
|
|
|
104 -
|
|
|
|
105 -
|
|
|
|
106 - BV16
|
|
|
|
107 - G722.1 (16kHz)
|
|
|
|
108 -
|
|
|
|
109 -
|
|
|
|
110 -
|
|
|
|
111 -
|
|
|
|
112 -
|
|
|
|
113 -
|
|
|
|
114 - CELT 32kHz, 48kHz
|
|
|
|
115 - G722.1C (32kHz)
|
|
|
|
116 -
|
|
|
|
117 - SILK 8kHz
|
|
|
|
118 - SILK 12kHz
|
|
|
|
119 - SILK 16kHz
|
|
|
|
120 - SILK 24kHz
|
|
|
|
121 - AAL2-G726-40 && G726-40
|
|
|
|
122 - AAL2-G726-32 && G726-32
|
|
|
|
123 - AAL2-G726-24 && G726-24
|
|
|
|
124 - AAL2-G726-16 && G726-16
|
|
|
|
125 -
|
|
|
|
126 -
|
|
|
|
127 - BV32
|
2008-02-10 00:07:29 -05:00
|
|
|
|
|
|
|
-->
|
2009-05-28 00:08:09 -04:00
|
|
|
<X-PRE-PROCESS cmd="set" data="global_codec_prefs=G7221@32000h,G7221@16000h,G722,PCMU,PCMA,GSM"/>
|
2008-03-04 02:25:23 -05:00
|
|
|
<X-PRE-PROCESS cmd="set" data="outbound_codec_prefs=PCMU,PCMA,GSM"/>
|
2009-05-27 12:09:51 -04:00
|
|
|
|
|
|
|
<!--
|
|
|
|
xmpp_client_profile and xmpp_server_profile
|
|
|
|
xmpp_client_profile can be any string.
|
|
|
|
xmpp_server_profile is appended to "dingaling_" to form the database name
|
|
|
|
containing the "subscriptions" table.
|
|
|
|
used by: dingaling.conf.xml enum.conf.xml
|
|
|
|
-->
|
|
|
|
|
2007-11-14 15:29:19 -05:00
|
|
|
<X-PRE-PROCESS cmd="set" data="xmpp_client_profile=xmppc"/>
|
|
|
|
<X-PRE-PROCESS cmd="set" data="xmpp_server_profile=xmpps"/>
|
2009-01-13 21:56:30 -05:00
|
|
|
<!--
|
2009-01-13 22:24:27 -05:00
|
|
|
THIS IS ONLY USED FOR DINGALING
|
2009-01-13 21:56:30 -05:00
|
|
|
|
|
|
|
bind_server_ip
|
|
|
|
|
2007-10-17 12:08:14 -04:00
|
|
|
Can be an ip address, a dns name, or "auto".
|
|
|
|
This determines an ip address available on this host to bind.
|
|
|
|
If you are separating RTP and SIP traffic, you will want to have
|
|
|
|
use different addresses where this variable appears.
|
2008-09-12 22:15:39 -04:00
|
|
|
Used by: dingaling.conf.xml
|
2007-10-17 12:08:14 -04:00
|
|
|
-->
|
2007-11-14 15:29:19 -05:00
|
|
|
<X-PRE-PROCESS cmd="set" data="bind_server_ip=auto"/>
|
2008-10-09 01:17:14 -04:00
|
|
|
|
2008-12-27 18:56:22 -05:00
|
|
|
<!-- NOTICE NOTICE NOTICE NOTICE NOTICE NOTICE NOTICE NOTICE NOTICE NOTICE NOTICE
|
|
|
|
|
|
|
|
If you're going to load test FreeSWITCH please input real IP addresses
|
|
|
|
for external_rtp_ip and external_sip_ip
|
|
|
|
-->
|
|
|
|
|
2007-10-17 12:08:14 -04:00
|
|
|
<!-- external_rtp_ip
|
2009-02-11 14:29:06 -05:00
|
|
|
Can be an one of:
|
|
|
|
ip address: "12.34.56.78"
|
|
|
|
a stun server lookup: "stun:stun.server.com"
|
|
|
|
a DNS name: "host:host.server.com"
|
|
|
|
where fs.mydomain.com is a DNS A record-useful when fs is on
|
|
|
|
a dynamic IP address, and uses a dynamic DNS updater.
|
2007-10-17 12:08:14 -04:00
|
|
|
If unspecified, the bind_server_ip value is used.
|
|
|
|
Used by: sofia.conf.xml dingaling.conf.xml
|
|
|
|
-->
|
2008-01-17 18:41:45 -05:00
|
|
|
<X-PRE-PROCESS cmd="set" data="external_rtp_ip=stun:stun.freeswitch.org"/>
|
2008-10-09 01:17:14 -04:00
|
|
|
|
2007-10-17 12:08:14 -04:00
|
|
|
<!-- external_sip_ip
|
2009-02-11 14:29:06 -05:00
|
|
|
Used as the public IP address for SDP.
|
|
|
|
Can be an one of:
|
|
|
|
ip address: "12.34.56.78"
|
|
|
|
a stun server lookup: "stun:stun.server.com"
|
|
|
|
a DNS name: "host:host.server.com"
|
|
|
|
where fs.mydomain.com is a DNS A record-useful when fs is on
|
|
|
|
a dynamic IP address, and uses a dynamic DNS updater.
|
2007-10-17 12:08:14 -04:00
|
|
|
If unspecified, the bind_server_ip value is used.
|
|
|
|
Used by: sofia.conf.xml dingaling.conf.xml
|
|
|
|
-->
|
2008-01-17 18:41:45 -05:00
|
|
|
<X-PRE-PROCESS cmd="set" data="external_sip_ip=stun:stun.freeswitch.org"/>
|
2008-10-09 01:17:14 -04:00
|
|
|
|
2008-01-03 18:42:15 -05:00
|
|
|
<!-- unroll-loops
|
|
|
|
Used to turn on sip loopback unrolling.
|
2007-10-17 12:08:14 -04:00
|
|
|
-->
|
2008-01-03 18:42:15 -05:00
|
|
|
<X-PRE-PROCESS cmd="set" data="unroll_loops=true"/>
|
2008-10-09 01:17:14 -04:00
|
|
|
|
2007-10-17 12:08:14 -04:00
|
|
|
<!-- outbound_caller_id and outbound_caller_name
|
|
|
|
The caller ID telephone number we should use when calling out.
|
2008-09-29 17:30:11 -04:00
|
|
|
Used by: conference.conf.xml and user directory for default
|
|
|
|
outbound callerid name and number.
|
2007-10-17 12:08:14 -04:00
|
|
|
-->
|
2007-11-14 15:29:19 -05:00
|
|
|
<X-PRE-PROCESS cmd="set" data="outbound_caller_name=FreeSWITCH"/>
|
2008-03-04 02:25:23 -05:00
|
|
|
<X-PRE-PROCESS cmd="set" data="outbound_caller_id=0000000000"/>
|
2008-09-29 17:30:11 -04:00
|
|
|
|
|
|
|
<!-- various debug and defaults -->
|
2008-01-03 18:42:15 -05:00
|
|
|
<X-PRE-PROCESS cmd="set" data="call_debug=false"/>
|
2008-09-29 11:53:36 -04:00
|
|
|
<X-PRE-PROCESS cmd="set" data="console_loglevel=info"/>
|
2008-09-29 17:30:11 -04:00
|
|
|
<X-PRE-PROCESS cmd="set" data="default_areacode=918"/>
|
2008-10-10 21:08:56 -04:00
|
|
|
<X-PRE-PROCESS cmd="set" data="default_country=US"/>
|
2008-06-25 16:56:01 -04:00
|
|
|
|
|
|
|
<X-PRE-PROCESS cmd="set" data="uk-ring=%(400,200,400,450);%(400,2200,400,450)"/>
|
2009-07-03 13:16:00 -04:00
|
|
|
<X-PRE-PROCESS cmd="set" data="us-ring=%(2000,4000,440.0,480.0)"/>
|
|
|
|
<X-PRE-PROCESS cmd="set" data="fr-ring=%(1500,3500,440.0,0.0)"/>
|
|
|
|
<X-PRE-PROCESS cmd="set" data="rs-ring=%(1000,4000,425.0,0.0)"/>
|
2009-12-01 15:45:21 -05:00
|
|
|
<X-PRE-PROCESS cmd="set" data="ru-ring=%(800,3200,425,0)"/>
|
2008-06-25 16:56:01 -04:00
|
|
|
<X-PRE-PROCESS cmd="set" data="bong-ring=v=-7;%(100,0,941.0,1477.0);v=-7;>=2;+=.1;%(1400,0,350,440)"/>
|
2008-10-09 21:28:35 -04:00
|
|
|
<X-PRE-PROCESS cmd="set" data="sit=%(274,0,913.8);%(274,0,1370.6);%(380,0,1776.7)"/>
|
2008-09-29 17:30:11 -04:00
|
|
|
<!--
|
|
|
|
Setting up your default sip provider is easy.
|
|
|
|
Below are some values that should work in most cases.
|
|
|
|
|
2008-10-29 19:14:22 -04:00
|
|
|
These are for conf/directory/default/example.com.xml
|
2008-09-29 17:30:11 -04:00
|
|
|
-->
|
2008-10-29 19:14:22 -04:00
|
|
|
<X-PRE-PROCESS cmd="set" data="default_provider=example.com"/>
|
2008-09-29 17:30:11 -04:00
|
|
|
<X-PRE-PROCESS cmd="set" data="default_provider_username=joeuser"/>
|
|
|
|
<X-PRE-PROCESS cmd="set" data="default_provider_password=password"/>
|
2008-10-29 19:14:22 -04:00
|
|
|
<X-PRE-PROCESS cmd="set" data="default_provider_from_domain=example.com"/>
|
2008-09-29 17:30:11 -04:00
|
|
|
<!-- true or false -->
|
|
|
|
<X-PRE-PROCESS cmd="set" data="default_provider_register=false"/>
|
|
|
|
<X-PRE-PROCESS cmd="set" data="default_provider_contact=5000"/>
|
2008-10-08 21:13:40 -04:00
|
|
|
|
|
|
|
<!--
|
2009-07-11 15:11:13 -04:00
|
|
|
SIP and TLS settings. http://wiki.freeswitch.org/wiki/Tls
|
2008-10-08 21:13:40 -04:00
|
|
|
-->
|
|
|
|
<X-PRE-PROCESS cmd="set" data="sip_tls_version=tlsv1"/>
|
2008-10-09 12:19:37 -04:00
|
|
|
|
2008-10-08 21:13:40 -04:00
|
|
|
<!-- Internal SIP Profile -->
|
2008-10-09 12:19:37 -04:00
|
|
|
<X-PRE-PROCESS cmd="set" data="internal_auth_calls=true"/>
|
|
|
|
<X-PRE-PROCESS cmd="set" data="internal_sip_port=5060"/>
|
|
|
|
<X-PRE-PROCESS cmd="set" data="internal_tls_port=5061"/>
|
2008-10-08 21:13:40 -04:00
|
|
|
<X-PRE-PROCESS cmd="set" data="internal_ssl_enable=false"/>
|
|
|
|
<X-PRE-PROCESS cmd="set" data="internal_ssl_dir=$${base_dir}/conf/ssl"/>
|
2008-10-09 12:19:37 -04:00
|
|
|
|
2008-10-08 21:13:40 -04:00
|
|
|
<!-- External SIP Profile -->
|
2008-10-09 12:19:37 -04:00
|
|
|
<X-PRE-PROCESS cmd="set" data="external_auth_calls=false"/>
|
|
|
|
<X-PRE-PROCESS cmd="set" data="external_sip_port=5080"/>
|
|
|
|
<X-PRE-PROCESS cmd="set" data="external_tls_port=5081"/>
|
2008-10-08 21:13:40 -04:00
|
|
|
<X-PRE-PROCESS cmd="set" data="external_ssl_enable=false"/>
|
|
|
|
<X-PRE-PROCESS cmd="set" data="external_ssl_dir=$${base_dir}/conf/ssl"/>
|
2009-03-26 21:44:28 -04:00
|
|
|
</include>
|