[packages]: net/freeswitch: Added initial uci configuration capability.
[openwrt/svn-archive/archive.git] / net / freeswitch / files / etc.uci / vars.xml
1 <include>
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.
5
6 WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING
7
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.
10
11 This default config is used to demonstrate the feature set of FreeSWITCH.
12
13 WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING
14 -->
15 <X-PRE-PROCESS cmd="set" data="default_password=1234"/>
16 <!-- Did you change it yet? -->
17
18 <X-PRE-PROCESS cmd="set" data="sound_prefix=$${sounds_dir}/en/us/callie"/>
19
20 <!--
21 This setting is what sets the default domain FreeSWITCH will use if all else fails.
22
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.
26 -->
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"/>
31
32 <!--
33 Examples of codec options: (module must be compiled and loaded)
34
35 codecname[@8000h|16000h|32000h[@XXi]]
36
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.
40
41
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.
68
69 These are the passthru audio codecs:
70
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)
74
75 These are the passthru video codecs: (mod_h26x)
76
77 H261 - H.261 Video
78 H263 - H.263 Video
79 H263-1998 - H.263-1998 Video
80 H263-2000 - H.263-2000 Video
81 H264 - H.264 Video
82
83 RTP Dynamic Payload Numbers currently used in FreeSWITCH and what for.
84
85 96 - AMR
86 97 - iLBC (30)
87 98 - iLBC (20)
88 99 - Speex 8kHz, 16kHz, 32kHz
89 100 -
90 101 - telephone-event
91 102 -
92 103 -
93 104 -
94 105 -
95 106 - BV16
96 107 - G722.1 (16kHz)
97 108 -
98 109 -
99 110 -
100 111 -
101 112 -
102 113 -
103 114 - CELT 32kHz, 48kHz
104 115 - G722.1C (32kHz)
105 116 -
106 117 - SILK 8kHz
107 118 - SILK 12kHz
108 119 - SILK 16kHz
109 120 - SILK 24kHz
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
114 125 -
115 126 -
116 127 - BV32
117
118 -->
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"/>
121
122 <X-PRE-PROCESS cmd="set" data="bind_server_ip=auto"/>
123
124 <!-- NOTICE NOTICE NOTICE NOTICE NOTICE NOTICE NOTICE NOTICE NOTICE NOTICE NOTICE
125
126 If you're going to load test FreeSWITCH please input real IP addresses
127 for external_rtp_ip and external_sip_ip
128 -->
129
130 <!-- external_rtp_ip
131 Can be an one of:
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
139 -->
140 <X-PRE-PROCESS cmd="set" data="external_rtp_ip=stun:stun.freeswitch.org"/>
141
142 <!-- external_sip_ip
143 Used as the public IP address for SDP.
144 Can be an one of:
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
152 -->
153 <X-PRE-PROCESS cmd="set" data="external_sip_ip=stun:stun.freeswitch.org"/>
154
155 <!-- unroll-loops
156 Used to turn on sip loopback unrolling.
157 -->
158 <X-PRE-PROCESS cmd="set" data="unroll_loops=true"/>
159
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.
164 -->
165 <X-PRE-PROCESS cmd="set" data="outbound_caller_name=FreeSWITCH"/>
166 <X-PRE-PROCESS cmd="set" data="outbound_caller_id=0000000000"/>
167
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"/>
173
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)"/>
181
182 <!--
183 SIP and TLS settings. http://wiki.freeswitch.org/wiki/Tls
184 -->
185 <X-PRE-PROCESS cmd="set" data="sip_tls_version=tlsv1"/>
186
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"/>
193
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"/>
200
201 <!-- Call recordings directory -->
202 <X-PRE-PROCESS cmd="set" data="recordings_dir=/home/freeswitch/recordings" />
203 </include>