dahdi_config.h 5.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199
  1. /*
  2. * DAHDI configuration options
  3. *
  4. */
  5. /*
  6. * See http://www.asterisk.org for more information about
  7. * the Asterisk project. Please do not directly contact
  8. * any of the maintainers of this project for assistance;
  9. * the project provides a web site, mailing lists and IRC
  10. * channels for your use.
  11. *
  12. * This program is free software, distributed under the terms of
  13. * the GNU General Public License Version 2 as published by the
  14. * Free Software Foundation. See the LICENSE file included with
  15. * this program for more details.
  16. */
  17. #ifndef _DAHDI_CONFIG_H
  18. #define _DAHDI_CONFIG_H
  19. #ifdef __KERNEL__
  20. #include <linux/version.h>
  21. #endif
  22. /* DAHDI compile time options */
  23. /* These default tone lengths are in units of milliseconds. */
  24. #define DAHDI_CONFIG_DEFAULT_DTMF_LENGTH 100
  25. #define DAHDI_CONFIG_DEFAULT_MFR1_LENGTH 68
  26. #define DAHDI_CONFIG_DEFAULT_MFR2_LENGTH 100
  27. #define DAHDI_CONFIG_PAUSE_LENGTH 500
  28. /*
  29. * Uncomment if you have a European phone, or any other phone with a
  30. * short flash time.
  31. * This will stop the flash being mis-detected as a pulse dial "1" on
  32. * phones with short flashes
  33. */
  34. /* #define SHORT_FLASH_TIME */
  35. /*
  36. * Uncomment to disable calibration tests
  37. * (not generally recommended)
  38. */
  39. /* #define NO_CALIBRATION */
  40. /*
  41. * Boost ring voltage (Higher ring voltage, takes more power)
  42. * Note: this only affects the wcfxsusb and wcusb drivers; all other
  43. * drivers have a 'boostringer' module parameter.
  44. */
  45. /* #define BOOST_RINGER */
  46. /*
  47. * Define CONFIG_CALC_XLAW if you have a small number of channels and/or
  48. * a small level 2 cache, to optimize for few channels
  49. *
  50. */
  51. /* #define CONFIG_CALC_XLAW */
  52. /*
  53. * Define if you want MMX optimizations in DAHDI
  54. *
  55. * Note: CONFIG_DAHDI_MMX is generally incompatible with AMD
  56. * processors and can cause system instability!
  57. *
  58. */
  59. /* #define CONFIG_DAHDI_MMX */
  60. /* We now use the linux kernel config to detect which options to use */
  61. /* You can still override them below */
  62. #if defined(CONFIG_HDLC) || defined(CONFIG_HDLC_MODULE)
  63. #define DAHDI_HDLC_TYPE_TRANS
  64. #define HDLC_MAINTAINERS_ARE_MORE_STUPID_THAN_I_THOUGHT
  65. #endif
  66. /*
  67. * Uncomment CONFIG_DAHDI_NET to enable SyncPPP, CiscoHDLC, and Frame Relay
  68. * support.
  69. */
  70. /* #define CONFIG_DAHDI_NET */
  71. /*
  72. * Uncomment for Generic PPP support (i.e. DAHDIRAS)
  73. */
  74. #if defined(CONFIG_PPP) || defined(CONFIG_PPP_MODULE)
  75. /* #define CONFIG_DAHDI_PPP */
  76. #endif
  77. /*
  78. * Uncomment to enable "watchdog" to monitor if interfaces
  79. * stop taking interrupts or otherwise misbehave
  80. */
  81. /* #define CONFIG_DAHDI_WATCHDOG */
  82. /*
  83. * Uncomment the following to include extra debugging output.
  84. */
  85. /* #define CONFIG_DAHDI_DEBUG */
  86. /*
  87. * Uncomment for Non-standard FXS groundstart start state (A=Low, B=Low)
  88. * particularly for CAC channel bank groundstart FXO ports.
  89. */
  90. /* #define CONFIG_CAC_GROUNDSTART */
  91. /*
  92. * Define CONFIG_DAHDI_CORE_TIMER if you would like dahdi to always provide a
  93. * timing source regardless of which spans / drivers are configured.
  94. */
  95. #define CONFIG_DAHDI_CORE_TIMER
  96. /*
  97. * Define CONFIG_DAHDI_NO_ECHOCAN_DISABLE to prevent the 2100Hz tone detector
  98. * from disabling any installed software echocan.
  99. *
  100. */
  101. /* #define CONFIG_DAHDI_NO_ECHOCAN_DISABLE */
  102. /*
  103. * Define if you would like to allow software echocans to process the tx audio
  104. * in addition to the rx audio. Used for things like DC removal.
  105. *
  106. */
  107. /* #define CONFIG_DAHDI_ECHOCAN_PROCESS_TX */
  108. /*
  109. * Uncomment if you happen have an early TDM400P Rev H which
  110. * sometimes forgets its PCI ID to have wcfxs match essentially all
  111. * subvendor ID's
  112. */
  113. /* #define TDM_REVH_MATCHALL */
  114. /*
  115. * Uncomment the following if you want to support E&M trunks being
  116. * able to "flash" after going off-hook (dont ask why, just nod :-) ).
  117. *
  118. * NOTE: *DO NOT* Enable "EMFLASH" and "EMPULSE" at the same time!!
  119. *
  120. */
  121. /* #define EMFLASH */
  122. /*
  123. * Uncomment the following if you want to support E&M trunks being
  124. * able to recognize Dial Pulse digits. This can validly be enabled
  125. * so that either Dial Pulse or DTMF/MF tones will be recognized, but
  126. * the drawback is that the ONHOOK will take an extra {rxwinktime}
  127. * to be recognized.
  128. *
  129. * NOTE: *DO NOT* Enable "EMFLASH" and "EMPULSE" at the same time!!
  130. *
  131. */
  132. /* #define EMPULSE */
  133. /*
  134. * Comment out the following if you dont want events to indicate the
  135. * beginning of an incoming ring. Most non-Asterisk applications will
  136. * want this commented out.
  137. */
  138. #define RINGBEGIN
  139. /*
  140. * Uncomment the following if you need to support FXS Flash events.
  141. * Most applications will want this commented out.
  142. */
  143. /* #define FXSFLASH */
  144. /*
  145. * Enable sync_tick() calls. Allows low-level drivers to synchronize
  146. * their internal clocks to the DAHDI master clock.
  147. */
  148. #define DAHDI_SYNC_TICK
  149. /*
  150. * Skip processing PCM if low-level driver won't use it anyway
  151. */
  152. /* #define OPTIMIZE_CHANMUTE */
  153. /*
  154. * Pass DAHDI_AUDIOMODE to channel driver as well
  155. */
  156. /* #define DAHDI_AUDIO_NOTIFY */
  157. /*
  158. * Creates an interface for mirroring the raw channel data out to a pseudo-chan
  159. */
  160. /* #define CONFIG_DAHDI_MIRROR */
  161. /*
  162. * Adds support for conference links. There are some non-Asterisk users of this
  163. * functionality.
  164. */
  165. /* #define CONFIG_DAHDI_CONFLINK */
  166. #endif