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