2
0

vars.xml 7.4 KB

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