PageRenderTime 95ms CodeModel.GetById 85ms app.highlight 5ms RepoModel.GetById 1ms app.codeStats 0ms

/virtualboxes/blueswitch/templates/vars.xml

https://gitlab.com/voxinesshq/docker-factory
XML | 421 lines | 72 code | 21 blank | 328 comment | 0 complexity | e5d94754a53f41cacf80dedc7b28606b MD5 | raw file
  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
 16  <!-- Set local_ip_v4 to hard-coded IP -->
 17  <X-PRE-PROCESS cmd="set" data="local_ip_v4={{ freeswitch_bind_ip }}"/>
 18
 19  <X-PRE-PROCESS cmd="set" data="default_password=1234"/>
 20  <!-- Did you change it yet? -->
 21  <!--
 22      The following variables are set dynamically - calculated if possible by freeswitch - and 
 23      are available to the config as $${variable}.  You can see their calculated value via fs_cli
 24      by entering eval $${variable}
 25      
 26      hostname
 27      local_ip_v4 
 28      local_mask_v4
 29      local_ip_v6
 30      switch_serial
 31      base_dir
 32      recordings_dir
 33      sound_prefix
 34      sounds_dir
 35      conf_dir
 36      log_dir
 37      run_dir
 38      db_dir
 39      mod_dir
 40      htdocs_dir
 41      script_dir
 42      temp_dir
 43      grammar_dir
 44      certs_dir
 45      storage_dir
 46      cache_dir
 47      core_uuid
 48      zrtp_enabled
 49      nat_public_addr
 50      nat_private_addr
 51      nat_type
 52      
 53  -->
 54
 55
 56  <X-PRE-PROCESS cmd="set" data="sound_prefix=$${sounds_dir}/en/us/callie"/>
 57
 58  <!--
 59      This setting is what sets the default domain FreeSWITCH will use if all else fails.
 60      
 61      FreeSWICH will default to $${local_ip_v4} unless changed.  Changing this setting does 
 62      affect the sip authentication.  Please review conf/directory/default.xml for more
 63      information on this topic.
 64  -->
 65  <X-PRE-PROCESS cmd="set" data="domain=$${local_ip_v4}"/>
 66  <X-PRE-PROCESS cmd="set" data="domain_name=$${domain}"/>
 67  <X-PRE-PROCESS cmd="set" data="hold_music=local_stream://moh"/>
 68  <X-PRE-PROCESS cmd="set" data="use_profile=external"/>
 69  <X-PRE-PROCESS cmd="set" data="rtp_sdes_suites=AEAD_AES_256_GCM_8|AEAD_AES_128_GCM_8|AES_CM_256_HMAC_SHA1_80|AES_CM_192_HMAC_SHA1_80|AES_CM_128_HMAC_SHA1_80|AES_CM_256_HMAC_SHA1_32|AES_CM_192_HMAC_SHA1_32|AES_CM_128_HMAC_SHA1_32|AES_CM_128_NULL_AUTH"/>
 70  <!--
 71      Enable ZRTP globally you can override this on a per channel basis
 72      
 73      http://wiki.freeswitch.org/wiki/ZRTP (on how to enable zrtp)
 74  -->
 75  <X-PRE-PROCESS cmd="set" data="zrtp_secure_media=true"/>
 76  <!--
 77      NOTICE: When using SRTP it's critical that you do not offer or accept
 78      variable bit rate codecs, doing so would leak information and possibly
 79      compromise your SRTP stream. (FS-6404)
 80
 81      Supported SRTP Crypto Suites:
 82
 83      AEAD_AES_256_GCM_8
 84      ____________________________________________________________________________
 85      This algorithm is identical to AEAD_AES_256_GCM (see Section 5.2 of
 86      [RFC5116]), except that the tag length, t, is 8, and an
 87      authentication tag with a length of 8 octets (64 bits) is used.
 88      An AEAD_AES_256_GCM_8 ciphertext is exactly 8 octets longer than its
 89      corresponding plaintext.
 90
 91
 92      AEAD_AES_128_GCM_8
 93      ____________________________________________________________________________
 94      This algorithm is identical to AEAD_AES_128_GCM (see Section 5.1 of
 95      [RFC5116]), except that the tag length, t, is 8, and an
 96      authentication tag with a length of 8 octets (64 bits) is used.
 97      An AEAD_AES_128_GCM_8 ciphertext is exactly 8 octets longer than its
 98      corresponding plaintext.
 99
100
101      AES_CM_256_HMAC_SHA1_80 | AES_CM_192_HMAC_SHA1_80 | AES_CM_128_HMAC_SHA1_80
102      ____________________________________________________________________________
103      AES_CM_128_HMAC_SHA1_80 is the SRTP default AES Counter Mode cipher
104      and HMAC-SHA1 message authentication with an 80-bit authentication
105      tag. The master-key length is 128 bits and has a default lifetime of
106      a maximum of 2^48 SRTP packets or 2^31 SRTCP packets, whichever comes
107      first.
108
109
110      AES_CM_256_HMAC_SHA1_32 | AES_CM_192_HMAC_SHA1_32 | AES_CM_128_HMAC_SHA1_32
111      ____________________________________________________________________________
112      This crypto-suite is identical to AES_CM_128_HMAC_SHA1_80 except that
113      the authentication tag is 32 bits. The length of the base64-decoded key and
114      salt value for this crypto-suite MUST be 30 octets i.e., 240 bits; otherwise,
115      the crypto attribute is considered invalid.
116
117
118      AES_CM_128_NULL_AUTH
119      ____________________________________________________________________________
120      The SRTP default cipher (AES-128 Counter Mode), but to use no authentication
121      method.  This policy is NOT RECOMMENDED unless it is unavoidable; see
122      Section 7.5 of [RFC3711].
123
124
125      SRTP variables that modify behaviors based on direction/leg:
126
127      rtp_secure_media
128      ____________________________________________________________________________
129      possible values:
130          mandatory - Accept/Offer SAVP negotiation ONLY
131          optional  - Accept/Offer SAVP/AVP with SAVP preferred
132          forbidden - More useful for inbound to deny SAVP negotiation
133          false     - implies forbidden
134          true      - implies mandatory
135
136      default if not set is accept SAVP inbound if offered.
137
138
139      rtp_secure_media_inbound | rtp_secure_media_outbound
140      ____________________________________________________________________________
141      This is the same as rtp_secure_media, but would apply to either inbound
142      or outbound offers specifically.
143
144
145      How to specify crypto suites:
146      ____________________________________________________________________________
147      By default without specifying any crypto suites FreeSWITCH will offer
148      crypto suites from strongest to weakest accepting the strongest each
149      endpoint has in common.  If you wish to force specific crypto suites you
150      can do so by appending the suites in a comma separated list in the order
151      that you wish to offer them in.
152
153      Examples:
154
155          rtp_secure_media=mandatory:AES_CM_256_HMAC_SHA1_80,AES_CM_256_HMAC_SHA1_32
156          rtp_secure_media=true:AES_CM_256_HMAC_SHA1_80,AES_CM_256_HMAC_SHA1_32
157          rtp_secure_media=optional:AES_CM_256_HMAC_SHA1_80
158          rtp_secure_media=true:AES_CM_256_HMAC_SHA1_80
159
160      Additionally you can narrow this down on either inbound or outbound by
161      specifying as so:
162
163          rtp_secure_media_inbound=true:AEAD_AES_256_GCM_8
164          rtp_secure_media_inbound=mandatory:AEAD_AES_256_GCM_8
165          rtp_secure_media_outbound=true:AEAD_AES_128_GCM_8
166          rtp_secure_media_outbound=optional:AEAD_AES_128_GCM_8
167
168
169      rtp_secure_media_suites
170      ____________________________________________________________________________
171      Optionaly you can use rtp_secure_media_suites to dictate the suite list
172      and only use rtp_secure_media=[optional|mandatory|false|true] without having
173      to dictate the suite list with the rtp_secure_media* variables.
174  -->
175  <!-- 
176       Examples of codec options: (module must be compiled and loaded)
177       
178       codecname[@8000h|16000h|32000h[@XXi]]
179       
180       XX is the frame size must be multples allowed for the codec
181       FreeSWITCH can support 10-120ms on some codecs. 
182       We do not support exceeding the MTU of the RTP packet.
183
184
185       iLBC@30i         - iLBC using mode=30 which will win in all cases.
186       DVI4@8000h@20i   - IMA ADPCM 8kHz using 20ms ptime. (multiples of 10)
187       DVI4@16000h@40i  - IMA ADPCM 16kHz using 40ms ptime. (multiples of 10)
188       speex@8000h@20i  - Speex 8kHz using 20ms ptime.
189       speex@16000h@20i - Speex 16kHz using 20ms ptime.
190       speex@32000h@20i - Speex 32kHz using 20ms ptime.
191       BV16             - BroadVoice 16kb/s narrowband, 8kHz
192       BV32             - BroadVoice 32kb/s wideband, 16kHz
193       G7221@16000h     - G722.1 16kHz (aka Siren 7)
194       G7221@32000h     - G722.1C 32kHz (aka Siren 14)
195       CELT@32000h      - CELT 32kHz, only 10ms supported
196       CELT@48000h      - CELT 48kHz, only 10ms supported
197       GSM@40i          - GSM 8kHz using 40ms ptime. (GSM is done in multiples of 20, Default is 20ms)
198       G722             - G722 16kHz using default 20ms ptime. (multiples of 10)
199       PCMU             - G711 8kHz ulaw using default 20ms ptime. (multiples of 10)
200       PCMA             - G711 8kHz alaw using default 20ms ptime. (multiples of 10)
201       G726-16          - G726 16kbit adpcm using default 20ms ptime. (multiples of 10)
202       G726-24          - G726 24kbit adpcm using default 20ms ptime. (multiples of 10)
203       G726-32          - G726 32kbit adpcm using default 20ms ptime. (multiples of 10)
204       G726-40          - G726 40kbit adpcm using default 20ms ptime. (multiples of 10)
205       AAL2-G726-16     - Same as G726-16 but using AAL2 packing. (multiples of 10)
206       AAL2-G726-24     - Same as G726-24 but using AAL2 packing. (multiples of 10)
207       AAL2-G726-32     - Same as G726-32 but using AAL2 packing. (multiples of 10)
208       AAL2-G726-40     - Same as G726-40 but using AAL2 packing. (multiples of 10)
209       LPC              - LPC10 using 90ms ptime (only supports 90ms at this time in FreeSWITCH)
210       L16              - L16 isn't recommended for VoIP but you can do it. L16 can exceed the MTU rather quickly.
211       
212       These are the passthru audio codecs:
213       
214       G729             - G729 in passthru mode. (mod_g729)
215       G723             - G723.1 in passthru mode. (mod_g723_1)
216       AMR              - AMR in passthru mode. (mod_amr)
217       
218       These are the passthru video codecs: (mod_h26x)
219       
220       H261             - H.261 Video
221       H263             - H.263 Video
222       H263-1998        - H.263-1998 Video
223       H263-2000        - H.263-2000 Video
224       H264             - H.264 Video
225       
226       RTP Dynamic Payload Numbers currently used in FreeSWITCH and what for.
227
228       96  - AMR
229       97  - iLBC (30)
230       98  - iLBC (20)
231       99  - Speex 8kHz, 16kHz, 32kHz
232       100 -
233       101 - telephone-event
234       102 -
235       103 - 
236       104 - 
237       105 - 
238       106 - BV16
239       107 - G722.1 (16kHz)
240       108 -
241       109 -
242       110 -
243       111 -
244       112 -
245       113 -
246       114 - CELT 32kHz, 48kHz
247       115 - G722.1C (32kHz)
248       116 -
249       117 - SILK 8kHz
250       118 - SILK 12kHz
251       119 - SILK 16kHz
252       120 - SILK 24kHz
253       121 - AAL2-G726-40 && G726-40
254       122 - AAL2-G726-32 && G726-32
255       123 - AAL2-G726-24 && G726-24
256       124 - AAL2-G726-16 && G726-16
257       125 - 
258       126 -
259       127 - BV32
260
261  -->
262  <X-PRE-PROCESS cmd="set" data="global_codec_prefs=OPUS,G722,PCMU,PCMA,GSM"/>
263  <X-PRE-PROCESS cmd="set" data="outbound_codec_prefs=PCMU,PCMA,GSM"/>
264
265  <!--
266      xmpp_client_profile and xmpp_server_profile
267      xmpp_client_profile can be any string. 
268      xmpp_server_profile is appended to "dingaling_" to form the database name
269      containing the "subscriptions" table.
270      used by: dingaling.conf.xml enum.conf.xml 
271  --> 
272
273  <X-PRE-PROCESS cmd="set" data="xmpp_client_profile=xmppc"/>
274  <X-PRE-PROCESS cmd="set" data="xmpp_server_profile=xmpps"/>
275  <!-- 
276       THIS IS ONLY USED FOR DINGALING
277
278       bind_server_ip
279
280       Can be an ip address, a dns name, or "auto". 
281       This determines an ip address available on this host to bind.
282       If you are separating RTP and SIP traffic, you will want to have
283       use different addresses where this variable appears.
284       Used by: dingaling.conf.xml
285  -->
286  <X-PRE-PROCESS cmd="set" data="bind_server_ip=auto"/>
287
288  <!-- NOTICE NOTICE NOTICE NOTICE NOTICE NOTICE NOTICE NOTICE NOTICE NOTICE NOTICE
289       
290       If you're going to load test FreeSWITCH please input real IP addresses
291       for external_rtp_ip and external_sip_ip
292  -->
293
294  <!-- external_rtp_ip
295       Can be an one of:
296           ip address: "12.34.56.78"
297           a stun server lookup: "stun:stun.server.com"
298           a DNS name: "host:host.server.com"
299       where fs.mydomain.com is a DNS A record-useful when fs is on
300       a dynamic IP address, and uses a dynamic DNS updater.
301       If unspecified, the bind_server_ip value is used.
302       Used by: sofia.conf.xml dingaling.conf.xml
303  -->
304  <X-PRE-PROCESS cmd="set" data="external_rtp_ip={{ external_rtp_ip }}"/>
305
306  <!-- external_sip_ip
307      Used as the public IP address for SDP.
308       Can be an one of:
309           ip address: "12.34.56.78"
310           a stun server lookup: "stun:stun.server.com"
311           a DNS name: "host:host.server.com"
312       where fs.mydomain.com is a DNS A record-useful when fs is on
313       a dynamic IP address, and uses a dynamic DNS updater.
314       If unspecified, the bind_server_ip value is used.
315       Used by: sofia.conf.xml dingaling.conf.xml
316  -->
317  <X-PRE-PROCESS cmd="set" data="external_sip_ip={{ external_sip_ip }}"/>
318
319  <!-- unroll-loops
320       Used to turn on sip loopback unrolling.
321  --> 
322  <X-PRE-PROCESS cmd="set" data="unroll_loops=true"/>
323
324  <!-- outbound_caller_id and outbound_caller_name
325       The caller ID telephone number we should use when calling out.
326       Used by: conference.conf.xml and user directory for default
327       outbound callerid name and number.
328  -->
329  <X-PRE-PROCESS cmd="set" data="outbound_caller_name=FreeSWITCH"/>
330  <X-PRE-PROCESS cmd="set" data="outbound_caller_id=0000000000"/>
331
332  <!-- various debug and defaults -->
333  <X-PRE-PROCESS cmd="set" data="call_debug=false"/>
334  <X-PRE-PROCESS cmd="set" data="console_loglevel=info"/>
335  <X-PRE-PROCESS cmd="set" data="default_areacode=918"/>
336  <X-PRE-PROCESS cmd="set" data="default_country=US"/>
337
338  <!-- if false or undefined, the destination number is included in presence NOTIFY dm:note.
339       if true, the destination number is not included -->
340  <X-PRE-PROCESS cmd="set" data="presence_privacy=false"/>
341
342  <X-PRE-PROCESS cmd="set" data="be-ring=%(1000,3000,425)"/>
343  <X-PRE-PROCESS cmd="set" data="ca-ring=%(2000,4000,440,480)"/>
344  <X-PRE-PROCESS cmd="set" data="cn-ring=%(1000,4000,450)"/>
345  <X-PRE-PROCESS cmd="set" data="cy-ring=%(1500,3000,425)"/>
346  <X-PRE-PROCESS cmd="set" data="cz-ring=%(1000,4000,425)"/>
347  <X-PRE-PROCESS cmd="set" data="de-ring=%(1000,4000,425)"/>
348  <X-PRE-PROCESS cmd="set" data="dk-ring=%(1000,4000,425)"/>
349  <X-PRE-PROCESS cmd="set" data="dz-ring=%(1500,3500,425)"/>
350  <X-PRE-PROCESS cmd="set" data="eg-ring=%(2000,1000,475,375)"/>
351  <X-PRE-PROCESS cmd="set" data="es-ring=%(1500,3000,425)"/>
352  <X-PRE-PROCESS cmd="set" data="fi-ring=%(1000,4000,425)"/>
353  <X-PRE-PROCESS cmd="set" data="fr-ring=%(1500,3500,440)"/>
354  <X-PRE-PROCESS cmd="set" data="hk-ring=%(400,200,440,480);%(400,3000,440,480)"/>
355  <X-PRE-PROCESS cmd="set" data="hu-ring=%(1250,3750,425)"/>
356  <X-PRE-PROCESS cmd="set" data="il-ring=%(1000,3000,400)"/>
357  <X-PRE-PROCESS cmd="set" data="in-ring=%(400,200,425,375);%(400,2000,425,375)"/>
358  <X-PRE-PROCESS cmd="set" data="jp-ring=%(1000,2000,420,380)"/>
359  <X-PRE-PROCESS cmd="set" data="ko-ring=%(1000,2000,440,480)"/>
360  <X-PRE-PROCESS cmd="set" data="pk-ring=%(1000,2000,400)"/>
361  <X-PRE-PROCESS cmd="set" data="pl-ring=%(1000,4000,425)"/>
362  <X-PRE-PROCESS cmd="set" data="ro-ring=%(1850,4150,475,425)"/>
363  <X-PRE-PROCESS cmd="set" data="rs-ring=%(1000,4000,425)"/>
364  <X-PRE-PROCESS cmd="set" data="ru-ring=%(800,3200,425)"/>
365  <X-PRE-PROCESS cmd="set" data="sa-ring=%(1200,4600,425)"/>
366  <X-PRE-PROCESS cmd="set" data="tr-ring=%(2000,4000,450)"/>
367  <X-PRE-PROCESS cmd="set" data="uk-ring=%(400,200,400,450);%(400,2000,400,450)"/>
368  <X-PRE-PROCESS cmd="set" data="us-ring=%(2000,4000,440,480)"/>
369  <X-PRE-PROCESS cmd="set" data="bong-ring=v=-7;%(100,0,941.0,1477.0);v=-7;>=2;+=.1;%(1400,0,350,440)"/>
370  <X-PRE-PROCESS cmd="set" data="beep=%(1000,0,640)"/>
371  <X-PRE-PROCESS cmd="set" data="sit=%(274,0,913.8);%(274,0,1370.6);%(380,0,1776.7)"/>
372  <!--
373      Setting up your default sip provider is easy.
374      Below are some values that should work in most cases.
375      
376      These are for conf/directory/default/example.com.xml
377  -->
378  <X-PRE-PROCESS cmd="set" data="default_provider=example.com"/>
379  <X-PRE-PROCESS cmd="set" data="default_provider_username=joeuser"/>
380  <X-PRE-PROCESS cmd="set" data="default_provider_password=password"/>
381  <X-PRE-PROCESS cmd="set" data="default_provider_from_domain=example.com"/>
382  <!-- true or false -->
383  <X-PRE-PROCESS cmd="set" data="default_provider_register=false"/>
384  <X-PRE-PROCESS cmd="set" data="default_provider_contact=5000"/>
385
386  <!--
387     SIP and TLS settings. http://wiki.freeswitch.org/wiki/Tls
388     
389     valid options: sslv2,sslv3,sslv23,tlsv1,tlsv1.1,tlsv1.2
390
391     default: tlsv1,tlsv1.1,tlsv1.2
392  -->
393  <X-PRE-PROCESS cmd="set" data="sip_tls_version=tlsv1,tlsv1.1,tlsv1.2"/>
394
395  <!--
396     TLS cipher suite: default ALL:!ADH:!LOW:!EXP:!MD5:@STRENGTH
397
398     The actual ciphers supported will change per platform.
399
400     openssl ciphers -v 'ALL:!ADH:!LOW:!EXP:!MD5:@STRENGTH'
401
402     Will show you what is available in your verion of openssl.
403     Freeswitch does not support non-Elliptic Curve Diffie Hellman key 
404     exchange.  
405  -->
406  <X-PRE-PROCESS cmd="set" data="sip_tls_ciphers=ALL:!ADH:!LOW:!EXP:!MD5:@STRENGTH"/>
407  
408  <!-- Internal SIP Profile -->
409  <X-PRE-PROCESS cmd="set" data="internal_auth_calls=true"/>
410  <X-PRE-PROCESS cmd="set" data="internal_sip_port=5060"/>
411  <X-PRE-PROCESS cmd="set" data="internal_tls_port=5061"/>
412  <X-PRE-PROCESS cmd="set" data="internal_ssl_enable=false"/>
413
414
415  <!-- External SIP Profile -->
416  <X-PRE-PROCESS cmd="set" data="external_auth_calls=false"/>
417  <X-PRE-PROCESS cmd="set" data="external_sip_port=5080"/>
418  <X-PRE-PROCESS cmd="set" data="external_tls_port=5081"/>
419  <X-PRE-PROCESS cmd="set" data="external_ssl_enable=false"/>
420
421</include>