Advertisement
Guest User

Untitled

a guest
Apr 18th, 2018
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 12.57 KB | None | 0 0
  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=28196y1923nf98"/>
  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. <!--
  34. Enable ZRTP globally you can override this on a per channel basis
  35.  
  36. http://wiki.freeswitch.org/wiki/ZRTP (on how to enable zrtp)
  37. -->
  38. <X-PRE-PROCESS cmd="set" data="zrtp_secure_media=true"/>
  39.  
  40. <!--
  41. Examples of codec options: (module must be compiled and loaded)
  42.  
  43. codecname[@8000h|16000h|32000h[@XXi]]
  44.  
  45. XX is the frame size must be multples allowed for the codec
  46. FreeSWITCH can support 10-120ms on some codecs.
  47. We do not support exceeding the MTU of the RTP packet.
  48.  
  49.  
  50. iLBC@30i - iLBC using mode=30 which will win in all cases.
  51. DVI4@8000h@20i - IMA ADPCM 8kHz using 20ms ptime. (multiples of 10)
  52. DVI4@16000h@40i - IMA ADPCM 16kHz using 40ms ptime. (multiples of 10)
  53. speex@8000h@20i - Speex 8kHz using 20ms ptime.
  54. speex@16000h@20i - Speex 16kHz using 20ms ptime.
  55. speex@32000h@20i - Speex 32kHz using 20ms ptime.
  56. BV16 - BroadVoice 16kb/s narrowband, 8kHz
  57. BV32 - BroadVoice 32kb/s wideband, 16kHz
  58. G7221@16000h - G722.1 16kHz (aka Siren 7)
  59. G7221@32000h - G722.1C 32kHz (aka Siren 14)
  60. CELT@32000h - CELT 32kHz, only 10ms supported
  61. CELT@48000h - CELT 48kHz, only 10ms supported
  62. GSM@40i - GSM 8kHz using 40ms ptime. (GSM is done in multiples of 20, Default is 20ms)
  63. G722 - G722 16kHz using default 20ms ptime. (multiples of 10)
  64. PCMU - G711 8kHz ulaw using default 20ms ptime. (multiples of 10)
  65. PCMA - G711 8kHz alaw using default 20ms ptime. (multiples of 10)
  66. G726-16 - G726 16kbit adpcm using default 20ms ptime. (multiples of 10)
  67. G726-24 - G726 24kbit adpcm using default 20ms ptime. (multiples of 10)
  68. G726-32 - G726 32kbit adpcm using default 20ms ptime. (multiples of 10)
  69. G726-40 - G726 40kbit adpcm using default 20ms ptime. (multiples of 10)
  70. AAL2-G726-16 - Same as G726-16 but using AAL2 packing. (multiples of 10)
  71. AAL2-G726-24 - Same as G726-24 but using AAL2 packing. (multiples of 10)
  72. AAL2-G726-32 - Same as G726-32 but using AAL2 packing. (multiples of 10)
  73. AAL2-G726-40 - Same as G726-40 but using AAL2 packing. (multiples of 10)
  74. LPC - LPC10 using 90ms ptime (only supports 90ms at this time in FreeSWITCH)
  75. L16 - L16 isn't recommended for VoIP but you can do it. L16 can exceed the MTU rather quickly.
  76.  
  77. These are the passthru audio codecs:
  78.  
  79. G729 - G729 in passthru mode. (mod_g729)
  80. G723 - G723.1 in passthru mode. (mod_g723_1)
  81. AMR - AMR in passthru mode. (mod_amr)
  82.  
  83. These are the passthru video codecs: (mod_h26x)
  84.  
  85. H261 - H.261 Video
  86. H263 - H.263 Video
  87. H263-1998 - H.263-1998 Video
  88. H263-2000 - H.263-2000 Video
  89. H264 - H.264 Video
  90.  
  91. RTP Dynamic Payload Numbers currently used in FreeSWITCH and what for.
  92.  
  93. 96 - AMR
  94. 97 - iLBC (30)
  95. 98 - iLBC (20)
  96. 99 - Speex 8kHz, 16kHz, 32kHz
  97. 100 -
  98. 101 - telephone-event
  99. 102 -
  100. 103 -
  101. 104 -
  102. 105 -
  103. 106 - BV16
  104. 107 - G722.1 (16kHz)
  105. 108 -
  106. 109 -
  107. 110 -
  108. 111 -
  109. 112 -
  110. 113 -
  111. 114 - CELT 32kHz, 48kHz
  112. 115 - G722.1C (32kHz)
  113. 116 -
  114. 117 - SILK 8kHz
  115. 118 - SILK 12kHz
  116. 119 - SILK 16kHz
  117. 120 - SILK 24kHz
  118. 121 - AAL2-G726-40 && G726-40
  119. 122 - AAL2-G726-32 && G726-32
  120. 123 - AAL2-G726-24 && G726-24
  121. 124 - AAL2-G726-16 && G726-16
  122. 125 -
  123. 126 -
  124. 127 - BV32
  125.  
  126. -->
  127. <!--
  128. <X-PRE-PROCESS cmd="set" data="global_codec_prefs=G729,G722,PCMU,PCMA,GSM"/>
  129. <X-PRE-PROCESS cmd="set" data="outbound_codec_prefs=G729,G722,PCMU,PCMA,GSM"/>
  130. -->
  131. <!--
  132. <X-PRE-PROCESS cmd="set" data="global_codec_prefs=G722,PCMU,PCMA,GSM"/>
  133. <X-PRE-PROCESS cmd="set" data="outbound_codec_prefs=G722,PCMU,PCMA,GSM"/>
  134. -->
  135.  
  136. <X-PRE-PROCESS cmd="set" data="global_codec_prefs=PCMU,GSM"/>
  137. <X-PRE-PROCESS cmd="set" data="outbound_codec_prefs=PCMU,GSM"/>
  138.  
  139. <!--
  140. xmpp_client_profile and xmpp_server_profile
  141. xmpp_client_profile can be any string.
  142. xmpp_server_profile is appended to "dingaling_" to form the database name
  143. containing the "subscriptions" table.
  144. used by: dingaling.conf.xml enum.conf.xml
  145. -->
  146.  
  147. <X-PRE-PROCESS cmd="set" data="xmpp_client_profile=xmppc"/>
  148. <X-PRE-PROCESS cmd="set" data="xmpp_server_profile=xmpps"/>
  149. <!--
  150. THIS IS ONLY USED FOR DINGALING
  151.  
  152. bind_server_ip
  153.  
  154. Can be an ip address, a dns name, or "auto".
  155. This determines an ip address available on this host to bind.
  156. If you are separating RTP and SIP traffic, you will want to have
  157. use different addresses where this variable appears.
  158. Used by: dingaling.conf.xml
  159. -->
  160. <X-PRE-PROCESS cmd="set" data="bind_server_ip=34.194.139.196"/>
  161.  
  162. <!-- NOTICE NOTICE NOTICE NOTICE NOTICE NOTICE NOTICE NOTICE NOTICE NOTICE NOTICE
  163.  
  164. If you're going to load test FreeSWITCH please input real IP addresses
  165. for external_rtp_ip and external_sip_ip
  166. -->
  167.  
  168. <!-- external_rtp_ip
  169. Can be an one of:
  170. ip address: "12.34.56.78"
  171. a stun server lookup: "stun:stun.server.com"
  172. a DNS name: "host:host.server.com"
  173. where fs.mydomain.com is a DNS A record-useful when fs is on
  174. a dynamic IP address, and uses a dynamic DNS updater.
  175. If unspecified, the bind_server_ip value is used.
  176. Used by: sofia.conf.xml dingaling.conf.xml
  177. -->
  178. <X-PRE-PROCESS cmd="set" data="external_rtp_ip=34.194.139.196"/>
  179.  
  180. <!-- external_sip_ip
  181. Used as the public IP address for SDP.
  182. Can be an one of:
  183. ip address: "12.34.56.78"
  184. a stun server lookup: "stun:stun.server.com"
  185. a DNS name: "host:host.server.com"
  186. where fs.mydomain.com is a DNS A record-useful when fs is on
  187. a dynamic IP address, and uses a dynamic DNS updater.
  188. If unspecified, the bind_server_ip value is used.
  189. Used by: sofia.conf.xml dingaling.conf.xml
  190. -->
  191. <X-PRE-PROCESS cmd="set" data="external_sip_ip=34.194.139.196"/>
  192.  
  193. <!-- unroll-loops
  194. Used to turn on sip loopback unrolling.
  195. -->
  196. <X-PRE-PROCESS cmd="set" data="unroll_loops=true"/>
  197.  
  198. <!-- outbound_caller_id and outbound_caller_name
  199. The caller ID telephone number we should use when calling out.
  200. Used by: conference.conf.xml and user directory for default
  201. outbound callerid name and number.
  202. -->
  203. <X-PRE-PROCESS cmd="set" data="outbound_caller_name=FreeSWITCH"/>
  204. <X-PRE-PROCESS cmd="set" data="outbound_caller_id=0000000000"/>
  205.  
  206. <!-- various debug and defaults -->
  207. <X-PRE-PROCESS cmd="set" data="call_debug=false"/>
  208. <X-PRE-PROCESS cmd="set" data="console_loglevel=info"/>
  209. <X-PRE-PROCESS cmd="set" data="default_areacode=918"/>
  210. <X-PRE-PROCESS cmd="set" data="default_country=US"/>
  211.  
  212. <!-- if false or undefined, the destination number is included in presence NOTIFY dm:note.
  213. if true, the destination number is not included -->
  214. <X-PRE-PROCESS cmd="set" data="presence_privacy=false"/>
  215.  
  216. <X-PRE-PROCESS cmd="set" data="be-ring=%(1000,3000,425)"/>
  217. <X-PRE-PROCESS cmd="set" data="ca-ring=%(2000,4000,440,480)"/>
  218. <X-PRE-PROCESS cmd="set" data="cn-ring=%(1000,4000,450)"/>
  219. <X-PRE-PROCESS cmd="set" data="cy-ring=%(1500,3000,425)"/>
  220. <X-PRE-PROCESS cmd="set" data="cz-ring=%(1000,4000,425)"/>
  221. <X-PRE-PROCESS cmd="set" data="de-ring=%(1000,4000,425)"/>
  222. <X-PRE-PROCESS cmd="set" data="dk-ring=%(1000,4000,425)"/>
  223. <X-PRE-PROCESS cmd="set" data="dz-ring=%(1500,3500,425)"/>
  224. <X-PRE-PROCESS cmd="set" data="eg-ring=%(2000,1000,475,375)"/>
  225. <X-PRE-PROCESS cmd="set" data="es-ring=%(1500,3000,425)"/>
  226. <X-PRE-PROCESS cmd="set" data="fi-ring=%(1000,4000,425)"/>
  227. <X-PRE-PROCESS cmd="set" data="fr-ring=%(1500,3500,440)"/>
  228. <X-PRE-PROCESS cmd="set" data="hk-ring=%(400,200,440,480);%(400,3000,440,480)"/>
  229. <X-PRE-PROCESS cmd="set" data="hu-ring=%(1250,3750,425)"/>
  230. <X-PRE-PROCESS cmd="set" data="il-ring=%(1000,3000,400)"/>
  231. <X-PRE-PROCESS cmd="set" data="in-ring=%(400,200,425,375);%(400,2000,425,375)"/>
  232. <X-PRE-PROCESS cmd="set" data="jp-ring=%(1000,2000,420,380)"/>
  233. <X-PRE-PROCESS cmd="set" data="ko-ring=%(1000,2000,440,480)"/>
  234. <X-PRE-PROCESS cmd="set" data="pk-ring=%(1000,2000,400)"/>
  235. <X-PRE-PROCESS cmd="set" data="pl-ring=%(1000,4000,425)"/>
  236. <X-PRE-PROCESS cmd="set" data="ro-ring=%(1850,4150,475,425)"/>
  237. <X-PRE-PROCESS cmd="set" data="rs-ring=%(1000,4000,425)"/>
  238. <X-PRE-PROCESS cmd="set" data="ru-ring=%(800,3200,425)"/>
  239. <X-PRE-PROCESS cmd="set" data="sa-ring=%(1200,4600,425)"/>
  240. <X-PRE-PROCESS cmd="set" data="tr-ring=%(2000,4000,450)"/>
  241. <X-PRE-PROCESS cmd="set" data="uk-ring=%(400,200,400,450);%(400,2000,400,450)"/>
  242. <X-PRE-PROCESS cmd="set" data="us-ring=%(2000,4000,440,480)"/>
  243. <X-PRE-PROCESS cmd="set" data="bong-ring=v=-7;%(100,0,941.0,1477.0);v=-7;>=2;+=.1;%(1400,0,350,440)"/>
  244. <X-PRE-PROCESS cmd="set" data="beep=%(1000,0,640)"/>
  245. <X-PRE-PROCESS cmd="set" data="sit=%(274,0,913.8);%(274,0,1370.6);%(380,0,1776.7)"/>
  246. <!--
  247. Setting up your default sip provider is easy.
  248. Below are some values that should work in most cases.
  249.  
  250. These are for conf/directory/default/example.com.xml
  251. -->
  252. <X-PRE-PROCESS cmd="set" data="default_provider=example.com"/>
  253. <X-PRE-PROCESS cmd="set" data="default_provider_username=joeuser"/>
  254. <X-PRE-PROCESS cmd="set" data="default_provider_password=password"/>
  255. <X-PRE-PROCESS cmd="set" data="default_provider_from_domain=example.com"/>
  256. <!-- true or false -->
  257. <X-PRE-PROCESS cmd="set" data="default_provider_register=false"/>
  258. <X-PRE-PROCESS cmd="set" data="default_provider_contact=5000"/>
  259.  
  260. <!--
  261. SIP and TLS settings. http://wiki.freeswitch.org/wiki/Tls
  262. -->
  263. <X-PRE-PROCESS cmd="set" data="sip_tls_version=tlsv1"/>
  264.  
  265. <!-- Internal SIP Profile -->
  266. <X-PRE-PROCESS cmd="set" data="internal_auth_calls=true"/>
  267. <X-PRE-PROCESS cmd="set" data="internal_sip_port=5060"/>
  268. <X-PRE-PROCESS cmd="set" data="internal_tls_port=5061"/>
  269. <X-PRE-PROCESS cmd="set" data="internal_ssl_enable=false"/>
  270. <X-PRE-PROCESS cmd="set" data="internal_ssl_dir=$${base_dir}/conf/ssl"/>
  271.  
  272. <!-- External SIP Profile -->
  273. <X-PRE-PROCESS cmd="set" data="external_auth_calls=false"/>
  274. <X-PRE-PROCESS cmd="set" data="external_sip_port=5080"/>
  275. <X-PRE-PROCESS cmd="set" data="external_tls_port=5081"/>
  276. <X-PRE-PROCESS cmd="set" data="external_ssl_enable=false"/>
  277. <X-PRE-PROCESS cmd="set" data="external_ssl_dir=$${base_dir}/conf/ssl"/>
  278.  
  279. <!-- IVR defaults -->
  280. <X-PRE-PROCESS cmd="set" data="ivr_engine_ip=34.195.18.106"/>
  281. <X-PRE-PROCESS cmd="set" data="ivr_engine_ip_backup=34.195.18.106"/>
  282.  
  283. <!-- ACD defaults -->
  284. <X-PRE-PROCESS cmd="set" data="acd_engine_ip=172.30.3.165"/>
  285. <X-PRE-PROCESS cmd="set" data="acd_engine_ip_backup=172.30.3.165"/>
  286. </include>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement