vars.xml 7.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156
  1. <!-- Preprocessor Variables
  2. These are introduced when configuration strings must be consistent across modules.
  3. -->
  4. <X-PRE-PROCESS cmd="set" data="sound_prefix=$${base_dir}/sounds/en/us/callie"/>
  5. <!--<Z-PRE-PROCESS cmd="set" data="sound_prefix=$${base_dir}/sounds/en/us/allison"/>-->
  6. <!--
  7. This setting is what sets the default domain FreeSWITCH will use if all else fails.
  8. FreeSWICH will default to $${local_ip_v4} unless changed. Changing this setting does
  9. affect the sip authentication. Please review conf/directory/default.xml for more
  10. information on this topic.
  11. -->
  12. <X-PRE-PROCESS cmd="set" data="internal_ip_v4=192.168.86.254"/>
  13. <X-PRE-PROCESS cmd="set" data="external_ip_v4=$${local_ip_v4}"/>
  14. <X-PRE-PROCESS cmd="set" data="domain=$${domain}"/>
  15. <X-PRE-PROCESS cmd="set" data="hold_music=local_stream://moh"/>
  16. <!-- xmpp_client_profile and xmpp_server_profile
  17. xmpp_client_profile can be any string.
  18. xmpp_server_profile is appended to "dingaling_" to form the database name
  19. containing the "subscriptions" table.
  20. used by: dingaling.conf.xml enum.conf.xml
  21. -->
  22. <!--
  23. Examples of codec options: (module must be compiled and loaded)
  24. codecname[@8000h|16000h|32000h[@XXi]]
  25. XX is the frame size must be multples allowed for the codec
  26. FreeSWITCH can support 10-120ms on some codecs.
  27. We do not support exceeding the MTU of the RTP packet.
  28. iLBC@30i - iLBC using mode=30 which will win in all cases.
  29. DVI4@8000h@20i - IMA ADPCM 8kHz using 20ms ptime. (multiples of 10)
  30. DVI4@16000h@40i - IMA ADPCM 16kHz using 40ms ptime. (multiples of 10)
  31. speex@8000h@20i - Speex 8kHz using 20ms ptime.
  32. speex@16000h@20i - Speex 16kHz using 20ms ptime.
  33. speex@32000h@20i - Speex 32kHz using 20ms ptime.
  34. G7221@16000h - G722.1 16kHz (aka Siren 7)
  35. G7221@32000h - G722.1C 32kHz (aka Siren 14)
  36. GSM@40i - GSM 8kHz using 40ms ptime. (GSM is done in multiples of 20, Default is 20ms)
  37. G722 - G722 16kHz using default 20ms ptime. (multiples of 10)
  38. PCMU - G711 8kHz ulaw using default 20ms ptime. (multiples of 10)
  39. PCMA - G711 8kHz alaw using default 20ms ptime. (multiples of 10)
  40. G726-16 - G726 16kbit adpcm using default 20ms ptime. (multiples of 10)
  41. G726-24 - G726 24kbit adpcm using default 20ms ptime. (multiples of 10)
  42. G726-32 - G726 32kbit adpcm using default 20ms ptime. (multiples of 10)
  43. G726-40 - G726 40kbit adpcm using default 20ms ptime. (multiples of 10)
  44. AAL2-G726-16 - Same as G726-16 but using AAL2 packing. (multiples of 10)
  45. AAL2-G726-24 - Same as G726-24 but using AAL2 packing. (multiples of 10)
  46. AAL2-G726-32 - Same as G726-32 but using AAL2 packing. (multiples of 10)
  47. AAL2-G726-40 - Same as G726-40 but using AAL2 packing. (multiples of 10)
  48. LPC - LPC10 using 90ms ptime (only supports 90ms at this time in FreeSWITCH)
  49. L16 - L16 isn't recommended for VoIP but you can do it. L16 can exceed the MTU rather quickly.
  50. These are the passthru audio codecs:
  51. G729 - G729 in passthru mode. (mod_g729)
  52. G723 - G723.1 in passthru mode. (mod_g723_1)
  53. AMR - AMR in passthru mode. (mod_amr)
  54. These are the passthru video codecs: (mod_h26x)
  55. H261 - H.261 Video
  56. H263 - H.263 Video
  57. H263-1998 - H.263-1998 Video
  58. H263-2000 - H.263-2000 Video
  59. H264 - H.264 Video
  60. -->
  61. <X-PRE-PROCESS cmd="set" data="global_codec_prefs=G722,PCMU,PCMA,GSM"/>
  62. <X-PRE-PROCESS cmd="set" data="outbound_codec_prefs=PCMU,PCMA,GSM"/>
  63. <X-PRE-PROCESS cmd="set" data="xmpp_client_profile=xmppc"/>
  64. <X-PRE-PROCESS cmd="set" data="xmpp_server_profile=xmpps"/>
  65. <!-- bind_server_ip
  66. Can be an ip address, a dns name, or "auto".
  67. This determines an ip address available on this host to bind.
  68. If you are separating RTP and SIP traffic, you will want to have
  69. use different addresses where this variable appears.
  70. Used by: dingaling.conf.xml
  71. -->
  72. <X-PRE-PROCESS cmd="set" data="bind_server_ip=auto"/>
  73. <!-- external_rtp_ip
  74. Used as the public IP address for SDP.
  75. Can be an ip address or a string like "stun:stun.server.com"
  76. If unspecified, the bind_server_ip value is used.
  77. Used by: sofia.conf.xml dingaling.conf.xml
  78. -->
  79. <X-PRE-PROCESS cmd="set" data="external_rtp_ip=stun:stun.freeswitch.org"/>
  80. <!-- external_sip_ip
  81. Used as the public IP address for SDP.
  82. Can be an ip address or a string like "stun:stun.server.com"
  83. If unspecified, the bind_server_ip value is used.
  84. Used by: sofia.conf.xml dingaling.conf.xml
  85. -->
  86. <X-PRE-PROCESS cmd="set" data="external_sip_ip=stun:stun.freeswitch.org"/>
  87. <!-- unroll-loops
  88. Used to turn on sip loopback unrolling.
  89. -->
  90. <X-PRE-PROCESS cmd="set" data="unroll_loops=true"/>
  91. <!-- outbound_caller_id and outbound_caller_name
  92. The caller ID telephone number we should use when calling out.
  93. Used by: conference.conf.xml and user directory for default
  94. outbound callerid name and number.
  95. -->
  96. <X-PRE-PROCESS cmd="set" data="outbound_caller_name=FreeSWITCH"/>
  97. <X-PRE-PROCESS cmd="set" data="outbound_caller_id=0000000000"/>
  98. <!-- various debug and defaults -->
  99. <X-PRE-PROCESS cmd="set" data="call_debug=false"/>
  100. <X-PRE-PROCESS cmd="set" data="console_loglevel=info"/>
  101. <X-PRE-PROCESS cmd="set" data="default_areacode=918"/>
  102. <X-PRE-PROCESS cmd="set" data="default_country=US"/>
  103. <X-PRE-PROCESS cmd="set" data="uk-ring=%(400,200,400,450);%(400,2200,400,450)"/>
  104. <X-PRE-PROCESS cmd="set" data="us-ring=%(2000, 4000, 440.0, 480.0)"/>
  105. <X-PRE-PROCESS cmd="set" data="fr-ring=%(1500, 3500, 440.0, 0.0)"/>
  106. <X-PRE-PROCESS cmd="set" data="bong-ring=v=-7;%(100,0,941.0,1477.0);v=-7;>=2;+=.1;%(1400,0,350,440)"/>
  107. <X-PRE-PROCESS cmd="set" data="sit=%(274,0,913.8);%(274,0,1370.6);%(380,0,1776.7)"/>
  108. <!--
  109. Setting up your default sip provider is easy.
  110. Below are some values that should work in most cases.
  111. These are for conf/directory/default/example.com.xml
  112. -->
  113. <X-PRE-PROCESS cmd="set" data="default_provider=example.com"/>
  114. <X-PRE-PROCESS cmd="set" data="default_provider_username=joeuser"/>
  115. <X-PRE-PROCESS cmd="set" data="default_provider_password=password"/>
  116. <X-PRE-PROCESS cmd="set" data="default_provider_from_domain=example.com"/>
  117. <!-- true or false -->
  118. <X-PRE-PROCESS cmd="set" data="default_provider_register=false"/>
  119. <X-PRE-PROCESS cmd="set" data="default_provider_contact=5000"/>
  120. <!--
  121. SIP and TLS settings.
  122. -->
  123. <X-PRE-PROCESS cmd="set" data="sip_tls_version=tlsv1"/>
  124. <!-- Internal SIP Profile -->
  125. <X-PRE-PROCESS cmd="set" data="internal_auth_calls=true"/>
  126. <X-PRE-PROCESS cmd="set" data="internal_sip_port=5060"/>
  127. <X-PRE-PROCESS cmd="set" data="internal_tls_port=5061"/>
  128. <X-PRE-PROCESS cmd="set" data="internal_ssl_enable=false"/>
  129. <X-PRE-PROCESS cmd="set" data="internal_ssl_dir=$${base_dir}/conf/ssl"/>
  130. <!-- External SIP Profile -->
  131. <X-PRE-PROCESS cmd="set" data="external_auth_calls=false"/>
  132. <X-PRE-PROCESS cmd="set" data="external_sip_port=5080"/>
  133. <X-PRE-PROCESS cmd="set" data="external_tls_port=5081"/>
  134. <X-PRE-PROCESS cmd="set" data="external_ssl_enable=false"/>
  135. <X-PRE-PROCESS cmd="set" data="external_ssl_dir=$${base_dir}/conf/ssl"/>