Debian Codegraph @

README

raw
1 DAHDI Telephony Interface Driver
2 =================================
3 Fork by Osmocom, re-introduces support for old hardware and
4 adds support for Osmocom icE1usb adapter.
5
6 Additional drivers:
7 - icE1usb:
8 * Osmocom icE1usb
9 - wcte11xp:
10 * Digium TE11xP: PCI single-port T1/E1 card
11 - wcte12xp:
12 * Digium TE12xP: PCI single-port T1/E1 card
13 - zaphfc:
14 * CologneChip HFC-S-based PCI cards
15
16 -----------------
17
18 Asterisk Development Team <[email protected]>
19 $Revision$, $Date$
20
21 DAHDI stands for Digium Asterisk Hardware Device Interface.
22
23 This package contains the kernel modules for DAHDI. For the required
24 userspace tools see the package dahdi-tools.
25
26 Supported Hardware
27 ------------------
28 Digital Cards
29 ~~~~~~~~~~~~~
30 - wcte43x:
31 * Digium TE435: PCI express quad-port T1/E1/J1
32 * Digium TE436: PCI quad-port T1/E1/J1
33 * Digium TE235: PCI express dual-port T1/E1/J1
34 * Digium TE236: PCI dual-port T1/E1/J1
35 - wcte13xp:
36 * Digium TE131: PCI express single-port T1/E1/J1
37 * Digium TE133: PCI express single-port T1/E1/J1 with echocan
38 * Digium TE132: PCI single-port T1/E1/J1
39 * Digium TE134: PCI single-port T1/E1/J1 with echocan
40 - wct4xxp:
41 * Digium TE205P/TE207P/TE210P/TE212P: PCI dual-port T1/E1/J1
42 * Digium TE405P/TE407P/TE410P/TE412P: PCI quad-port T1/E1/J1
43 * Digium TE220: PCI-Express dual-port T1/E1/J1
44 * Digium TE420: PCI-Express quad-port T1/E1/J1
45 * Digium TE820: PCI-Express eight-port T1/E1/J1
46 - wcb4xxp:
47 * Digium B410: PCI quad-port BRI
48 * Digium B233: PCI-Express dual-port BRI with echo can
49 * Digium B234: PCI dual-port dual-port BRI with echo can
50 * Digium B433: PCI-Express quad-port BRI with echo can
51 * Digium B434: PCI quad-port BRI with echo can
52
53
54 Analog Cards
55 ~~~~~~~~~~~~
56 - wcaxx:
57 * Digium A8A: PCI up to 8 mixed FXS/FXO ports
58 * Digium A8B: PCI express up to 8 mixed FXS/FXO ports
59 * Digium A4A: PCI up to 4 mixed FXS/FXO ports
60 * Digium A4B: PCI express up to 4 mixed FXS/FXO ports
61 - wctdm24xxp:
62 * Digium TDM2400P/AEX2400: up to 24 analog ports
63 * Digium Hx8 Series: Up to 8 analog or BRI ports
64 - xpp: Xorcom Astribank: a USB connected unit of up to 32 ports
65 (including the digital BRI and E1/T1 modules)
66
67
68 Other Drivers
69 ~~~~~~~~~~~~~
70 - wctc4xxp: Digium hardware transcoder cards (also need dahdi_transcode)
71 - dahdi_dynamic_eth: TDM over Ethernet (TDMoE) driver. Requires dahdi_dynamic
72 - dahdi_dynamic_loc: Mirror a local span. Requires dahdi_dynamic
73
74 Installation
75 ------------
76 If all is well, you just need to run the following:
77
78 make
79 make install
80
81 You'll need the utilities provided in the package dahdi-tools to
82 configure DAHDI devices on your system.
83
84 If using `sudo` to build/install, you may need to add /sbin to your PATH.
85
86 If you still have problems, read further.
87
88
89 Build Requirements
90 ~~~~~~~~~~~~~~~~~~
91 gcc and friends. Generally you will need to install the package gcc.
92 There may be cases where you will need a specific version of gcc to build
93 kernel modules.
94
95 Kernel Source / "Headers"
96 ^^^^^^^^^^^^^^^^^^^^^^^^^
97 - Building DAHDI-linux requires a kernel build tree.
98 - This should basically be at least a partial kernel source tree and
99 most importantly, the exact kernel .config file used for the build as
100 well as several files generated at kernel build time.
101 - KERNEL_VERSION is the output of the command `uname -r`
102 - If you build your own kernel, you need to point to the exact kernel
103 build tree. Luckily for you, this will typically be pointed by the
104 symbolic link /lib/modules/KERNEL_VERSION/build which is the location
105 zaptel checks by default.
106 - If you use a kernel from your distribution you will typically have a
107 package with all the files required to build a kernel modules for your
108 kernel image.
109 * On Debian and Ubuntu this is
110 +++ linux-headers-`uname -r` +++
111 * On Fedora, RHEL and compatibles (e.g. CentOS) and SUSE this is
112 the kernel-devel package. Or if you run kernel-smp or kernel-xen,
113 you need kernel-smp-devel or kernel-xen-devel, respectively.
114 * In some distributions (e.g.: in RHEL/CentOS, Fedora, Ubuntu) the
115 installation of the kernel-devel / kernel-headers package will
116 be of a version that is newer than the one you currently run. In
117 such a case you may need to upgrade the kernel package itself as
118 well and reboot.
119 - To point explicitly to a different build tree: set KSRC to the kernel
120 source tree or KVERS to the exact kernel version (if "headers" are
121 available for a different version). This parameter must be run on
122 every calls to 'make' (e.g.: 'make clean', 'make install').
123
124 make KVERS=2.6.18.Custom
125 make KSRC=/home/tzafrir/kernels/linus
126
127
128 Kernel Configuration
129 ^^^^^^^^^^^^^^^^^^^^
130 If you build a custom kernel, note the following configuration items:
131
132 - CONFIG_CRC_CCITT must be enabled ('y' or 'm'). On 2.6 kernels this can
133 be selected These can be selected from the "Library Routines" submenu
134 during kernel configuration via "make menuconfig".
135 - DAHDI will work if you disable module unloading. But you may need
136 extra reboots.
137 - DAHDI needs the BKL (Big Kernel Lock). This may be annoying in
138 >=2.6.37 kernels. Make sure you enable CONFIG_BKL on those kernels.
139
140
141 Installing to a Subtree
142 ~~~~~~~~~~~~~~~~~~~~~~~
143 The following may be useful when testing the package or when preparing a
144 package for a binary distribution (such as an rpm package) installing
145 onto a subtree rather than on the real system.
146
147 make install DESTDIR=targetdir
148
149 This can be useful for any partial install target of the above (e.g:
150 install-modules or install-programs).
151
152 the targetdir must be an absolute path, at least if you install the
153 modules. To install to a relative path you can use something like:
154
155 make install-modules DESTDIR=$PWD/target
156
157
158 Extra Modules
159 ~~~~~~~~~~~~~
160 To build extra modules / modules directory not included in the DAHDI
161 distribution, use the optional variables MODULES_EXTRA and
162 SUBDIRS_EXTRA:
163
164 make MODULES_EXTRA="mod1 mod2"
165 make MODULES_EXTRA="mod1 mod2" SUBDIRS_EXTRA="subdir1/ subdir1/"
166
167
168 Static Device Files
169 ~~~~~~~~~~~~~~~~~~~
170 Userspace programs communicate with the DAHDI modules through special
171 device files under /dev/dahdi . Those are normally created by udev, but
172 if you use an embedded-type system and don't wish to use udev, you can
173 generate them with the following script, from the source directory:
174
175 ./build_tools/make_static_devs
176
177 This will generate the device files under /dev/dahdi . If you need to
178 generate them elsewhere (e.g. `tmp/newroot/dev/dahdi`) use the option -d
179 to the script:
180
181 ./build_tools/make_static_devs -d tmp/newroot/dev/dahdi
182
183
184 DKMS
185 ~~~~
186 DKMS, Dynamic Kernel Module Support, is a framework for building Linux
187 kernel modules. It is used, among others, by several distributions that
188 package the DAHDI kernel modules.
189
190 DKMS is designed to provide updates over drivers installed from original
191 kernel modules tree. Thus it installed modules into /lib/modules/updates
192 or /lib/modules/VERSION/updates . This is generally not an issue on
193 normal operation. However if you try to install DAHDI from source on
194 a system with DAHDI installed from DKMS this way (potentially of an
195 older version), be sure to remove the DKMS-installed modules from the
196 updates directory. If you're not sure, the following command will give
197 you a clue of the versions installed:
198
199 find /lib/modules -name dahdi.ko
200
201
202 ===== LINUX_DIR
203 The relative path to the dahdi-linux tree. The default is '.' and normally
204 there's no reason to override it.
205
206 ===== TOOLS_DIR
207 The relative path to the dahdi-tools tree. The default is 'dahdi-tools'.
208
209 ===== XPP_SYNC
210 Set a syncing astribank. See xpp_sync(8). Default is 'auto'.
211
212 ===== AST_SCRIPT
213 The command for an init.d script to start/stop Asterisk. Should accept
214 'start' and 'stop' commands. Use 'true' if you want to make that a
215 no-op. Defaults to '/etc/init.d/asterisk' .
216
217 ===== MODULES_LOAD
218 Manual list of modules. They will be loaded by insmod. If reside in a
219 subdir, add it explicitly. Modules for the drivers that are detected on
220 the system will be added by the script. Default: 'dahdi
221 dahdi_echocan_mg2'
222
223 ===== REMOVE_MODULES
224 A list of modules to remove when unloading. Will be resolved
225 recursively. The default is 'dahdi'. You may also want to have 'oslec'
226 or 'hpec' there if you use them.
227
228 ===== KVERS
229 If you want to build DAHDI for a different kernel version than the one
230 currently running on the system (mostly useful for a remote install).
231 Note that you will normally need to export this, in order for this to
232 take effect on the 'make' command. In live/live.conf itself have the line:
233
234 export KVERS="2.6.39-local"
235
236 ===== KSRC
237 Alternatively, if you want to point to an exact kernel source tree,
238 set it with KSRC. Just like KVERS above, it needs to be explicitly exported.
239
240 export KSRC="/usr/src/tree/linux"
241
242
243 Module Parameters
244 -----------------
245 The kernel modules can be configured through module parameters. Module
246 parameters can optionally be set at load time. They are normally set (if
247 needed) by a line in a file under /etc/modprobe.d/ or in the file
248 /etc/modprobe.conf.
249
250 Example line:
251
252 options dahdi debug=1
253
254 The module parameters can normally be modified at runtime through sysfs:
255
256 pungenday:~# cat /sys/module/dahdi/parameters/debug
257 0
258 pungenday:~# echo 1 >/sys/module/dahdi/parameters/debug
259 pungenday:~# cat /sys/module/dahdi/parameters/debug
260 1
261
262 Viewing and setting parameters that way is possible as of kernel 2.6 .
263 In kernels older than 2.6.10, the sysfs "files" for the parameters
264 reside directly under /sys/module/'module_name' .
265
266 Useful module parameters:
267
268 === debug
269 (most modules)
270
271 Sets debug mode / debug level. With most modules 'debug' can be either
272 disabled (0, the default value) or enabled (any other value).
273
274 wctdm and wcte1xp print several extra debugging messages if the value
275 of debug is more than 1.
276
277 Some modules have "debugging flags" bits - the value of debug is a
278 bitmask and several messages are printed if some bits are set:
279
280 To get a list of parameters supported by a module, use
281
282 modinfo module_name
283
284 Or, for a module you have just built:
285
286 modinfo ./drivers/dahdi/module_name.ko
287
288 For the xpp modules this will also include the description and default
289 value of the module. You can find a list of useful xpp module parameters
290 in README.Astribank .
291
292
293 - wctdm24xxp:
294 * 1: DEBUG_CARD
295 * 2: DEBUG_ECHOCAN
296 - wct4xxp:
297 * 1: DEBUG_MAIN
298 * 2: DEBUG_DTMF
299 * 4: DEBUG_REGS
300 * 8: DEBUG_TSI
301 * 16: DEBUG_ECHOCAN
302 * 32: DEBUG_RBS
303 * 64: DEBUG_FRAMER
304 - xpp: See also README.Astribank:
305 * 1: GENERAL - General debug comments.
306 * 2: PCM - PCM-related messages. Tend to flood logs.
307 * 4: LEDS - Anything related to the LEDs status control. The driver
308 produces a lot of messages when the option is enabled.
309 * 8: SYNC - Synchronization related messages.
310 * 16: SIGNAL - DAHDI signalling related messages.
311 * 32: PROC - Messages related to the procfs interface.
312 * 64: REGS - Reading and writing to chip registers. Tends to flood
313 logs.
314 * 128: DEVICES - Device instantiation, destruction and such.
315 * 256 - COMMANDS - Protocol commands. Tends to flood logs.
316 +
317 +
318 The script xpp_debug in the source tree can help settting them at run
319 time.
320
321 === deftaps
322 (dahdi)
323
324 The default size for the echo canceller. The number is in "taps", that
325 is "samples", 1/8 ms. The default is 64 - for a tail size of 8 ms.
326
327 Asterisk's chan_dahdi tends to pass its own value anyway, with a
328 different default size. So normally setting this doesn't change
329 anything.
330
331 === max_pseudo_channels
332 (dahdi)
333
334 The maximum number of pseudo channels that dahdi will allow userspace to
335 create. Pseudo channels are used when conferencing channels together.
336 The default is 512.
337
338 === auto_assign_spans
339 (dahdi)
340
341 See <<_span_assignments,Span Assignments>> below.
342
343 XPP (Astribank) module parameters
344 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
345 ==== debug
346 (all modules) - see above.
347
348 ==== dahdi_autoreg
349 (xpp)
350
351 Deprecated. See dahdi.<<_auto_assign_spans,auto_assign_spans>> above.
352
353 Originally had a somewhat similar (but xpp-specific and more limited)
354 role to auto_assign_spans. For backward compatibility this variable is
355 still kept, but its value is unused. Astribanks will auto-register
356 with dahdi if auto_assign_spans is not set.
357
358 ==== tools_rootdir
359 (xpp)
360
361 Defaults to /. Passed (as the variable DAHDI_TOOLS_ROOTDIR) to generated
362 events (which can be used in udev hooks). Also serves as the base of
363 the variable DAHDI_INIT_DIR (by default: $DAHDI_TOOLS_DIR/usr/share/dahdi).
364
365 ==== initdir
366 (xpp)
367
368 Deprecated. Setting both initdir and tools_rootdir will generate an error.
369
370 A directory under tools_rootdir containing the initialization scripts.
371 The default is /usr/share/dahdi .
372 Setting this value could be useful if that location is inconvenient for you.
373
374 ==== rx_tasklet
375 (xpp)
376
377 Enable (1) or disable (0) doing most of the packets processing in
378 separate tasklets. This should probably help on higher-end systems with
379 multiple Astribanks.
380
381 ==== vmwi_ioctl
382 (xpd_fxs)
383
384 Does userspace support VMWI notification via ioctl? Default: 1 (yes).
385
386 Disable this (0) to have the driver attempt to detect the voicemail
387 message waiting indication status for this port from FSK messages
388 userspace (Asterisk) sends. Set the ports to use AC neon-lamp style
389 message waiting indication. The detection from the FSK messages takes
390 extra CPU cycles but is required with e.g. Asterisk < 1.6.0 .
391
392 Also note that in order for this parameter to take effect, it must be
393 set before the span is registered. This practically means that it
394 should be set through modprobe.d files.
395
396 See also Voicemail Indication in README.Astribank.
397
398 ==== usb1
399 (xpp_usb)
400
401 Enable (1) or disable (0) support of USB1 devices. Disabled by default.
402
403 USB1 devices are not well-tested. It seems that they don't work at all
404 for Astribank BRI. Generally they should work with the current code, but
405 we expect the voice quality issues. Hence we would like to make it
406 very clear that you if you have a USB1 port (rather than a USB2 one, as
407 recommended) you will have to take an action to enable the device.
408
409 ==== poll intervals
410 (various)
411
412 There are various values which the driver occasionally polls the
413 device for. For instance, the parameter poll_battery_interval for
414 xpd_fxo to poll the battery, in order to know if the telco line is
415 actually connected.
416
417 The value of those parameters is typically a number in milliseconds.
418 0 is used to disable polling. Under normal operation there should be
419 no reason to play with those parameters.
420
421 ==== dtmf_detection
422 (xpd_fxs)
423
424 Enable (1) or disable (0) support of hardware DTMF detection by the
425 Astribank.
426
427 ==== caller_id_style
428 (xpd_fxo)
429
430 Various types of caller ID signalling styles require knowing the PCM
431 even when the line is on-hook (which is usually a waste of CPU and
432 bandwidth). This parameter allows fine-tuning the behaviour here:
433
434 * 0 (default) - Don't pass extra PCM when on-hook.
435 * 1 ETSI-FSK: Wait for polarity reversal to come before a ring and
436 then start passing PCM until the caller ID has been passed.
437 * 2 ETSI-DTMF: Always pass PCM and generate a DTMF if polarity reversal is
438 detected before ring.
439 * 3 Passthrough: Always pass PCM as-is.
440
441 This parameter is read-only. It cannot be changed at run-time.
442
443 ==== battery_threshold
444 (xpd_fxo)
445
446 Minimum voltage that shows there is battery. Defaults to 3. Normally you
447 should not need to change this, unless dealing with a funky PSTN
448 provider.
449
450 ==== battery_debounce
451 (xpd_fxo)
452
453 Minimum interval (msec) for detection of battery off (as opposed to e.g.
454 a temporary power denial to signal a hangup). Defaults to 1000. As with
455 battery_threshold above, there's normally no need to tweak it.
456
457 ==== use_polrev_firmware
458 (xpd_fxo)
459
460 Enable (1, default) or disable (0) support for polarity reversal
461 detection in the hardware. Only has effect with PIC_TYPE_2.hex rev. >=
462 11039 and with the initialization changes (init_card_2_30) in rev.
463 949aa49.
464
465 This parameter is read-only. It cannot be changed at run-time.
466
467
468 Internals
469 ---------
470 DAHDI Device Files
471 ~~~~~~~~~~~~~~~~~~
472 Userspace programs will usually interact with DAHDI through device
473 files under the /dev/dahdi directory (pedantically: character device files
474 with major number 196) . Those device files can be generated statically
475 or dynamically through the udev system.
476
477 * /dev/dahdi/ctl (196:0) - a general device file for various information and
478 control operations on the DAHDI channels.
479 * /dev/dahdi/chan/N/M - A device file for channel M in span N
480 - Both N and M are zero padded 3 digit numbers
481 - Both N and M start at 001
482 - M is chanpos - numbering relative to the current span.
483 * /dev/dahdi/NNN (196:NNN) - for NNN in the range 1-249. A device file for
484 DAHDI channel NNN. It can be used to read data from the channel
485 and write data to the channel. It is not generated by default but may
486 be generated as a symlink using udev rules.
487 * /dev/dahdi/transcode (196:250) - Used to connect to a DAHDI transcoding
488 device.
489 * /dev/dahdi/timer (196:253) - Allows setting timers. Used anywhere?
490 * /dev/dahdi/channel (196:254) - Can be used to open an arbitrary DAHDI
491 channel. This is an alternative to /dev/dahdi/NNN that is not limited to
492 249 channels.
493 * /dev/dahdi/pseudo (196:255) - A timing-only device. Every time you open
494 it, a new DAHDI channel is created. That DAHDI channel is "pseudo" -
495 DAHDI receives no data in it, and only sends garbage data with the
496 same timing as the DAHDI timing master device.
497
498
499 DAHDI Timing
500 ~~~~~~~~~~~~
501 A PBX system should generally have a single clock. If you are connected to a
502 telephony provider via a digital interface (e.g: E1, T1) you should also
503 typically use the provider's clock (as you get through the interface). Hence
504 one important job of Asterisk is to provide timing to the PBX.
505
506 DAHDI "ticks" once per millisecond (1000 times per second). On each tick every
507 active DAHDI channel reads and 8 bytes of data. Asterisk also uses this for
508 timing, through a DAHDI pseudo channel it opens.
509
510 However, not all PBX systems are connected to a telephony provider via a T1 or
511 similar connection. With an analog connection you are not synced to the other
512 party. And some systems don't have DAHDI hardware at all. Even a digital card
513 may be used for other uses or is simply not connected to a provider. DAHDI
514 cards are also capable of providing timing from a clock on card. Cheap x100P
515 clone cards are sometimes used for that purpose.
516
517 If a hardware timing source either cannot be found or stops providing timing
518 during runtime, DAHDI will automatically use the host timer in order provide
519 timing.
520
521 You can check the DAHDI timing source with dahdi_test, which is a small
522 utility that is included with DAHDI. It runs in cycles. In each such cycle it
523 tries to read 8192 bytes, and sees how long it takes. If DAHDI is not loaded
524 or you don't have the device files, it will fail immediately. If you lack a
525 timing device it will hang forever in the first cycle. Otherwise it will just
526 give you in each cycle the percent of how close it was. Also try running it
527 with the option -v for a verbose output.
528
529
530 Spans and Channels
531 ~~~~~~~~~~~~~~~~~~
532 DAHDI provides telephony *channels* to the userspace applications.
533 Those channels are channels are incorporated into logical units called
534 *spans*.
535
536 With digital telephony adapters (e.g: E1 or T1), a span normally
537 represents a single port. With analog telephony a span typically
538 represents a PCI adapter or a similar logical unit.
539
540 Both channels and spans are identified by enumerating numbers (beginning
541 with 1). The number of the channel is the lowest unused one when it is
542 generated, and ditto for spans.
543
544 There are up to 128 spans and 1024 channels. This is a hard-wired limit
545 (see dahdi/user.h . Several places throuout the code assume a channel
546 number fits in a 16 bits number). Channel and span numbers start at 1.
547
548
549 Span Assignments
550 ~~~~~~~~~~~~~~~~
551 A DAHDI device (e.g. a PCI card) is represented within the DAHDI drivers
552 as a 'DAHDI device'. Normally (with auto_assign_spans=1 in the module
553 dahdi, which is the default), when a device is discovered and loaded,
554 it registers with the DAHDI core and its spans automatically become
555 available. However if you have more than one device, you may be
556 interested to set explicit spans and channels numbers for them. To use
557 manual span assigment, set 'auto_assign_spans' to 0 . e.g. in a file
558 under /etc/modprobe.d/ include the following line:
559
560 options dahdi auto_assign_spans=0
561
562 You will then need to assign the spans manually at device startup. You
563 will need to assign a span number and channel numbers for each
564 available span on the system. On my test system I have one BRI PCI card
565 and one Astribank BRI+FXS:
566
567 # grep . /sys/bus/dahdi_devices/devices/*/spantype
568 /sys/bus/dahdi_devices/devices/astribanks:xbus-00/spantype:1:BRI
569 /sys/bus/dahdi_devices/devices/astribanks:xbus-00/spantype:2:BRI
570 /sys/bus/dahdi_devices/devices/astribanks:xbus-00/spantype:3:BRI
571 /sys/bus/dahdi_devices/devices/astribanks:xbus-00/spantype:4:BRI
572 /sys/bus/dahdi_devices/devices/astribanks:xbus-00/spantype:5:BRI
573 /sys/bus/dahdi_devices/devices/astribanks:xbus-00/spantype:6:BRI
574 /sys/bus/dahdi_devices/devices/astribanks:xbus-00/spantype:7:BRI
575 /sys/bus/dahdi_devices/devices/astribanks:xbus-00/spantype:8:BRI
576 /sys/bus/dahdi_devices/devices/astribanks:xbus-00/spantype:9:FXS
577 /sys/bus/dahdi_devices/devices/pci:0000:00:09.0/spantype:1:TE
578 /sys/bus/dahdi_devices/devices/pci:0000:00:09.0/spantype:2:TE
579 /sys/bus/dahdi_devices/devices/pci:0000:00:09.0/spantype:3:NT
580 /sys/bus/dahdi_devices/devices/pci:0000:00:09.0/spantype:4:NT
581
582 All spans here, except the FXS one, are BRI spans with 3 channels per span.
583
584 In order to assign a span, we write three numbers separated by colns to
585 the file 'assign_span' in the SysFS node
586
587 local_num:span_num:base_chan_num
588
589 Thus:
590
591 echo 9:5:10 >/sys/bus/dahdi_devices/devices/astribanks:xbus-00/assign_span
592 echo 2:8:40 >/sys/bus/dahdi_devices/devices/pci:0000:00:09.0/assign_span
593 echo 1:1:1 >/sys/bus/dahdi_devices/devices/astribanks:xbus-00/assign_span
594 echo 4:6:20 >/sys/bus/dahdi_devices/devices/pci:0000:00:09.0/assign_span
595 echo 3:2:5 >/sys/bus/dahdi_devices/devices/astribanks:xbus-00/assign_span
596
597 As you can see, the order of span numbers or local span number is
598 insignificant. However the order of channel numbers must be the same as
599 that of span numbers.
600
601 Which indeed produced:
602
603 # head -n3 -q /proc/dahdi/*
604 Span 1: XBUS-00/XPD-00 "Xorcom XPD [usb:LAB-0003].1: BRI_NT"
605
606 1 XPP_BRI_NT/00/00/0
607 Span 2: XBUS-00/XPD-02 "Xorcom XPD [usb:LAB-0003].3: BRI_TE"
608
609 5 XPP_BRI_TE/00/02/0
610 Span 5: XBUS-00/XPD-10 "Xorcom XPD [usb:LAB-0003].9: FXS" (MASTER)
611
612 10 XPP_FXS/00/10/0
613 Span 6: B4/0/4 "B4XXP (PCI) Card 0 Span 4" RED
614
615 23 B4/0/4/1 YELLOW
616 Span 8: B4/0/2 "B4XXP (PCI) Card 0 Span 2" RED
617
618 40 B4/0/2/1 RED
619
620 Likewise spans can be unassigned by writing to the 'unassign-span'
621 "file".
622
623
624 Dynamic Spans
625 ~~~~~~~~~~~~~
626 Dynamic spans are spans that are not represented by real hardware.
627 Currently there are two types of them:
628
629 tdmoe::
630 TDM over Ethernet. A remote span is identified by an ethernet (MAC)
631 address.
632
633 local::
634 Generates a span that is actually a loopback to a different local
635 span.
636
637 Modules that support the dynamic spans are typically loaded at the time
638 the ioctl DAHDI_DYNAMIC_CREATE is called. This is typically called by
639 dahdi_cfg when it has a line such as:
640
641 dynamic,somename,params
642
643 in /etc/dahdi/system.conf . In that case it will typically try to load
644 (through modprobe) the modules dahdi_dynamic and
645 dahdi_dynamic_'somename'. It will then pass 'params' to it.
646
647 Dynamic spans are known to be tricky and are some of the least-tested
648 parts of DAHDI.
649
650
651 Echo Cancellers
652 ~~~~~~~~~~~~~~~
653 (To be documented later)
654
655
656 Tone Zones
657 ~~~~~~~~~~
658 (To be documented later)
659
660
661 PROCFS Interface: /proc/dahdi
662 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
663 A simple way to get the current list of spans and channels each span contains
664 is the files under /proc/dahdi . /proc/dahdi is generated by DAHDI as it
665 loads. As each span registers to DAHDI, a file under /proc/dahdi is created
666 for it. The name of that file is the number of that span.
667
668 Each file has a 1-line title for the span followed by a few optional
669 general counter lines, an empty line and then a line for each channel of
670 the span.
671
672 The title line shows the number of the span, its name and title, and
673 (potentially) the alarms in which it is.
674
675 The title shows the span number and name, followed by any alarms the
676 span may have: For example, here is the first span in my system (with no
677 alarms):
678
679 Span 1: XBUS-00/XPD-00 "Xorcom XPD #0/0: FXS"
680
681 There are several extra optional keywords that may be added there:
682
683 (Master)::
684 This span is the master span. See <<_dahdi_timing,DAHDI Timing>>.
685 ClockSource::
686 The clock source among several spans that belong to a single E1/J1/T1
687 card.
688 RED/YELLOW/RED/NOTOPEN/LOOP/RECOVERING::
689 The span is in alarm
690
691 Following that line there may be some optional lines about IRQ misses,
692 timing slips and such, if there are any.
693
694 The channel line for each channel shows its channel number, name and the
695 actual signalling assigned to it through dahdi_cfg. Before being configured by
696 dahdi_cfg: This is DAHDI channel 2, whose name is 'XPP_FXS/0/0/1'.
697
698 2 XPP_FXS/0/0/1
699
700 After being configured by dahdi_cfg: the signalling 'FXOLS' was added. FXS
701 channels have FXO signalling and vice versa:
702
703 2 XPP_FXS/0/0/1 FXOLS
704
705 If the channel is in use (typically opened by Asterisk) then you will
706 see an extra '(In use)':
707
708 2 XPP_FXS/0/0/1 FXOLS (In use)
709
710
711 SysFS Interface
712 ~~~~~~~~~~~~~~~
713 DAHDI exposes several interfaces under the SysFS virtual file system.
714 SysFS represents kernel objects in nodes - directories. There properties
715 are often files. They may also contain other nodes or include symlinks
716 to other nodes.
717
718 Class DAHDI
719 ^^^^^^^^^^^
720 Under /sys/class/dadhi there exists a node for the non-channel DAHDI
721 device file under /dev/dahdi. The name is 'dahdi!foo' for the file
722 '/dev/dahdi/foo' (udev translates exclamation marks to slashes). Those
723 nodes are not, for the most part, proper SysFS nodes, and don't include
724 any interesting properties. The files in this class `ctl`, `timer`,
725 `channel`, `pseudo` and (if exists) `transcode`.
726
727
728 Devices Bus
729 ^^^^^^^^^^^
730 Each DAHDI device (a physical device, such as a PCI card) is represented
731 by a node under /sys/bus/dahdi_devices/devices named with the name of
732 its device.
733
734 Its attributes include:
735
736 ===== /sys/bus/dahdi_devices/devices/DEVICE/assgin-span
737 Write-only attribute: this device's spans should now be assigned
738 ("registered"). See section about <<_span_assignments>>.
739
740 ===== /sys/bus/dahdi_devices/devices/DEVICE/auto-assign
741 Write-only attribute. Spans in the device auto-assign ("register" as in
742 the original interface). See section about <<_span_assignments>>.
743
744 ===== /sys/bus/dahdi_devices/devices/DEVICE/hardware_id
745 A unique hardware-level identifier (e.g. serial number), if available.
746
747 ===== /sys/bus/dahdi_devices/devices/DEVICE/manufacturer
748 The name of the manufacturer. Freeform-string.
749
750 ===== /sys/bus/dahdi_devices/devices/DEVICE/registration_time
751 The time at which the device registered with the DAHDI core. Example
752 value: "0005634136.941901429".
753
754 ===== /sys/bus/dahdi_devices/devices/DEVICE/spantype
755 A line for each available span: <num>:<type>. This has to be provided
756 here as in the case of manual assignment, userspace may need to know
757 it before span nodes are created.
758
759 ===== /sys/bus/dahdi_devices/devices/DEVICE/spantype
760 Device type.
761
762 ===== /sys/bus/dahdi_devices/devices/DEVICE/unassign-span
763 Write-only attribute: the span whose device-local number is written
764 should now be unassigned ("unregistered"). See section about
765 <<_span_assignments>>.
766
767
768 Spans Bus
769 ^^^^^^^^^
770 Each DAHDI span is represented by a node under
771 /sys/bus/dahdi_spans/devices with the name 'span-N' (where N is the
772 number of the span). Spans of each device also reside under the node of
773 the device.
774
775 Useful attributes in the span node:
776
777 ===== /sys/bus/dahdi_spans/devices/span-N/alarms
778 The alarms of the span. Currently this is a numeric representation.
779 This may change in the future.
780
781 ===== /sys/bus/dahdi_spans/devices/span-N/basechan
782 The channel number of the first channel. The channel numbers of the
783 following channels are guaranteed to follow it.
784
785 ===== /sys/bus/dahdi_spans/devices/span-N/channels
786 The number of the channels in the span.
787
788 ===== /sys/bus/dahdi_spans/devices/span-N/desc
789 A free-form description of the span.
790
791 ===== /sys/bus/dahdi_spans/devices/span-N/is_digital
792 1 if the span is digital, 0 if it isn't.
793
794 ===== /sys/bus/dahdi_spans/devices/span-N/is_sync_master
795 1 if the span is the sync master, 0 if it isn't.
796
797 ===== /sys/bus/dahdi_spans/devices/span-N/lbo
798 LBO setting for the channel.
799
800 ===== /sys/bus/dahdi_spans/devices/span-N/lineconfig
801 The framing and coding of the span, for a digital span. Textual
802 represenation:
803
804 <B8ZS|AMI|HDB3>/<D4|ESF|CCS>[/CRC4]
805
806 ===== /sys/bus/dahdi_spans/devices/span-N/local_spanno
807 The number of the span within the DAHDI device.
808
809 ===== /sys/bus/dahdi_spans/devices/span-N/name
810 A concise name for this span.
811
812 ===== /sys/bus/dahdi_spans/devices/span-N/spantype
813 A very short type string.
814
815 ===== /sys/bus/dahdi_spans/devices/span-N/syncsrc
816 Current sync source.
817
818 ==== sys/bus/dahdi_spans/drivers/generic_lowlevel/master_span
819 All spans in the bus are handled by a single driver. The driver has one
820 non-standard attribute: master_span. printing it shows the current DAHDI
821 master span writing a number to it forces setting this span as the master
822 span.
823
824
825 Channels Bus
826 ^^^^^^^^^^^^
827 Each DAHDI channel is represented by a node under
828 /sys/bus/dahdi_channels/devices with the name 'dahdi!channels!N!M'
829 (where N is the number of the span and M is the number of the channel
830 in the span - chanpos). Channels of each span also reside under the node
831 of the span.
832
833 Useful attributes in the channel node (All attributed listed below are
834 read-only):
835
836 ===== /sys/bus/dahdi_spans/devices/span-N/dahdi!channels!N!M/alarms
837 List of names of the current active alarms (space separated). Normally
838 (no alarms) empty. Example:
839
840 RED YELLOW
841
842 ===== /sys/bus/dahdi_spans/devices/span-N/dahdi!channels!N!M/blocksize
843 The block size set by userspace.
844
845 ===== /sys/bus/dahdi_spans/devices/span-N/dahdi!channels!N!M/channo
846 The (global) channel number.
847
848 ===== /sys/bus/dahdi_spans/devices/span-N/dahdi!channels!N!M/chanpos
849 The channel number within the span.
850
851 ===== /sys/bus/dahdi_spans/devices/span-N/dahdi!channels!N!M/dev
852 Major and minor device numbers.
853
854 ===== /sys/bus/dahdi_spans/devices/span-N/dahdi!channels!N!M/ec_factory
855 The name of the echo canceller to be used in the channel, if one is
856 configured. Example:
857
858 MG2
859
860 ===== /sys/bus/dahdi_spans/devices/span-N/dahdi!channels!N!M/ec_state
861 State of the echo canceller. ACTIVE: configured and inuse. INACTIVE
862 otherwise.
863
864 ===== /sys/bus/dahdi_spans/devices/span-N/dahdi!channels!N!M/in_use
865 1 if the channel is in use (was opepend by userspace), 0 otherwise.
866
867 ===== /sys/bus/dahdi_spans/devices/span-N/dahdi!channels!N!M/name
868 A name string for the channel
869
870 ===== /sys/bus/dahdi_spans/devices/span-N/dahdi!channels!N!M/sig
871 The signalling types set for the channel. A space-separated list of
872 signalling types.
873
874 ===== /sys/bus/dahdi_spans/devices/span-N/dahdi!channels!N!M/sigcap
875 The signalling types this channel may be configured to handle. A space-
876 separated list of signalling types.
877
878
879 User-space Interface
880 ~~~~~~~~~~~~~~~~~~~~
881 User-space programs can only work with DAHDI channels. The basic
882 operation is 'read()' to read audio from the device and write() to write
883 audio to it. Audio can be encoded as either alaw (G.711a) or (m)ulaw
884 (G.711u). See the ioctl DAHDI_SETLAW.
885
886 While it is technically possible to use /dev/dahdi/NUMBER directly, this
887 will only work for channel numbers up to 249. Generally you should use:
888
889 int channo = CHAN_NUMBER_TO_OPEN;
890 int rc;
891 int fd = open("/dev/dahdi/channel", O_RDRW, 0600);
892 // Make sure fd >= 0
893 rc = ioctl(fd, DAHDI_SPECIFY, &channo) < 0);
894 // Make sure this rc >= 0
895
896 FIXME: there's more to tell about the user-space interface.
897
898
899 Configuration
900 ~~~~~~~~~~~~~
901 Most of the configuration is applied from userspace using the tool
902 'dahdi_cfg' in the package dahdi_tools. This section will not cover the
903 specifics of that file. Rather it will cover the way configuration from
904 this file is applied. Also note that there are other methods to
905 configure DAHDI drivers: there are <<_module_parameters,Module
906 Parameters>>. The xpp driver have their own separate initialization
907 scripts and xpp.conf that arecovered in README.Astribank.
908
909 When a span is registered, it is considered "unconfigured". Only after
910 dahdi_cfg has been run to apply configuration, the span is ready to run.
911
912 Some of the configuration is handled by the DAHDI core. Some of it is
913 handled by callbacks, which are function pointers in the `struct
914 dahdi_span': 'spanconfig', 'chanconfig' and (in a way) 'startup'.
915
916 Dahdi_cfg starts by reading the configuration from the configuration
917 file ('/etc/dahdi/system.conf', by default), and creating a local
918 configuration to apply. If you use -v, at this stage it will pront the
919 configuration that is "about to be configured". Then it will start to
920 actually apply the configuration.
921
922 Before actually applying configuration, it destroys any existing
923 <<_dynamic_spans,dynamic spans>> and generates new ones (if so
924 configured. FIXME: what about running DAHDI_SPANCONFIG for new dynamic
925 spans?).
926
927 Next thing it will do is apply the parameters from *span* lines using
928 the ioctl DAHDI_SPANCONFIG. Some generic processing of parameters passed
929 in DAHDI_SPANCONFIG is done in the DAHDI core, in the callback function
930 spanconfig in , but most of it is left to 'spanconfig' callback of the
931 span (if it exists. This one typically does not exists on analog cards).
932
933 Now dahdi_cfg will ask each existing channel for its existing
934 configuration and apply configuration if configuration changes are
935 needed. Configuration is applied to the channels using the ioctl call
936 DAHDI_CHANCONFIG ioctl. As in the case of the span configuration, part
937 of it is applied by the DAHDI core, and then it is handed over to the
938 span's chanconfig callback. Typically all spans will have such a
939 callback.
940
941 <<_echo_cancellers,Echo cancellers>> and <<_tone_zones,tone-zones>> are
942 handled separately later.
943
944 Once everything is done, the ioctl DAHDI_STARTUP is called for every
945 span. This is also translated to a call to the optional span callback
946 'startup'.
947
948 Finally the ioctl DAHDI_HDLC_RATE is called for every channel (that is:
949 if '56k' is not set for the channel, it will be explicitly set to the
950 standard HDLC rate of 64k).
951
952
953 Low-Level Drivers
954 ~~~~~~~~~~~~~~~~~
955 Low-level drivers create spans ('struct dahdi_span'). They register the
956 spans with the DAHDI core using 'dahdi_device_register()'.
957
958 'struct dahdi_span' has a number of informative members that are updated
959 solely by the low-level driver:
960
961 name::
962 A concise span name. E.g.: Foo/1
963 desc::
964 A slightly longer span name.
965 spantype::
966 Span type in text form.
967 manufacturer::
968 Span's device manufacturer
969 devicetype::
970 Span's device type
971 location::
972 span device's location in system
973 irq::
974 IRQ for this span's hardware
975 irqmisses::
976 Interrupt misses
977 timingslips::
978 Clock slips
979
980 There are various function pointers in the struct 'dahdi_span' which are
981 used by the DAHDI core to call the low-level driver. Most of them are
982 optional.
983
984 The following apply to a span:
985
986 setchunksize::
987 FIXME: seems to be unused.
988
989 spanconfig::
990 Basic span configuration (called from dahdi_cfg).
991
992 startup::
993 Last minute initialization after the configuration was applied.
994
995 shutdown::
996 Explicit shutdown (e.g. for dynamic spans). Normally not needed.
997
998 maint::
999 Enable/disable maintinance mode (FIXME: document).
1000
1001 sync_tick::
1002 Get notified that the master span has ticked.
1003
1004 The following apply to a single channel.
1005
1006 chanconfig::
1007 Configure the channel (called from dahdi_cfg).
1008
1009 open::
1010 Channel was opened for read/write from user-space.
1011
1012 close::
1013 Channel was closed by user-space.
1014
1015 ioctl::
1016 Handle extra ioctls. Should return -ENOTTY if ioctl is not known to
1017 the channel
1018
1019 echocan_create::
1020 Create a custom echo canceller. Normally used for providing a hardware
1021 echo canceller. If NULL, the standard DAHDI echo canceller modules
1022 will be used.
1023
1024 rbsbits::
1025 Copy signalling bits to device. See below on signalling.
1026
1027 hooksig::
1028 Implement RBS-like signalling-handling. See below on signalling.
1029
1030 sethook::
1031 Handle signalling yourself. See below on signalling.
1032
1033 hdlc_hard_xmit::
1034 Used to tell an onboard HDLC controller that there is data ready to
1035 transmit.
1036
1037 audio_notify::
1038 (if DAHDI_AUDIO_NOTIFY is set) - be notified when the channel is (or
1039 isn't) in audio mode. Which may mean (for an ISDN B-channel) that its
1040 data need not be sent.
1041
1042 There are several alternative methods for a span to use for
1043 signalling. One of them should be used.
1044
1045 Signalling: rbsbits
1046 ^^^^^^^^^^^^^^^^^^^
1047 If the device is a CAS interface, the driver should copy the signalling
1048 bits to and from the other side, and DAHDI will handle the signalling.
1049 The driver just need to provide a 'rbsbits' and set DAHDI_FLAG_RBS in
1050 the span->flags.
1051
1052 Note that 'rbs' (Robed Bits Signalling) here merely refers to the (up
1053 to) 4 signalling bits of the channel. In T1 they are transmitted by
1054 "robbing" bits from the channels and hence the name. In E1 they are
1055 transmitted in a timeframe of their own.
1056
1057 The driver should then signal a change in the signalling bits in a
1058 channel using dahdi_rbsbits().
1059
1060
1061 Signalling: hooksig
1062 ^^^^^^^^^^^^^^^^^^^
1063 If the device does not know about signalling bits, but has their
1064 equivalents (i.e. can disconnect battery, detect off hook, generate
1065 ring, etc directly) then the driver can specify a 'sethook' function and
1066 set DAHDI_FLAG_RBS in span->flags. In that case DAHDI will call that
1067 function whenever the signalling state changes.
1068
1069 The hooksig function is only used if the rbsbits function is not set.
1070
1071 The span should notify DAHDI of a change of signalling in a channel using
1072 dahdi_hooksig().
1073
1074
1075 Signalling: sethook
1076 ^^^^^^^^^^^^^^^^^^^
1077 Alternatively, if DAHDI_FLAG_RBS is not set in the flags of the span (to
1078 use either rbsbits or hooksig), the DAHDI core will try to call the
1079 'sethook' function of the span (if it exists) to handle individual hook
1080 states.
1081
1082 The span should then notify DAHDI of a change in the signalling state
1083 using dahdi_sethook().
1084
1085 FIXME: anybody using this one?
1086
1087
1088 ABI Compatibility
1089 ~~~~~~~~~~~~~~~~~
1090 Like any other kernel code, DAHDI strives to maintain a stable interface to
1091 userspace programs. The API of DAHDI to userspace programs, dahdi/user.h, has
1092 remained backward-compatible for a long time and is expected to remain so in
1093 the future. With the ABI (the bits themselves) things are slightly trickier.
1094
1095 DAHDI's interface to userspace is mostly ioctl(3) calls. Ioctl calls
1096 are identified by a number that stems from various things, one of which
1097 is the size of the data structure passed between the kernel and
1098 userspace.
1099
1100 Many of the DAHDI ioctl-s use some specific structs to pass information
1101 between kernel and userspace. In some cases the need arose to pass a few
1102 more data members in each call. Simply adding a new member to the struct
1103 would have meant a new number for the ioctl, as its number depends on
1104 the size of the data passed.
1105
1106 Thus we would add a new ioctl with the same base number and with the
1107 original struct.
1108
1109 So suppose we had the following ioctl:
1110 ----------------------------------
1111 struct dahdi_example {
1112 int sample;
1113 }
1114
1115 #define DAHDI_EXAMPLE _IOWR (DAHDI_CODE, 62, struct dahdi_example)
1116 ----------------------------------
1117
1118 And we want to add the field 'int onemore', we won't just add it to the
1119 struct. We will do something that is more complex:
1120 ------------------------------------
1121 /* The original, unchanged: */
1122 struct dahdi_example_v1 {
1123 int sample;
1124 }
1125
1126 /* The new struct: */
1127 struct dahdi_example {
1128 int sample;
1129 int onemore;
1130 }
1131
1132 #define DAHDI_EXAMPLE_V1 _IOWR(DAHDI_CODE, 62, struct dahdi_example_v1)
1133 #define DAHDI_EXAMPLE _IOWR(DAHDI_CODE, 62, struct dahdi_example)
1134 ------------------------------------
1135 We actually have here two different ioctls: the old DAHDI_EXAMPLE would be
1136 0xC004DA3E . DAHDI_EXAMPLE_V1 would have the same value. But the new value
1137 of DAHDI_EXAMPLE would be 0xC008DA3E .
1138
1139 Programs built with the original dahdi/user.h (before the change) use the
1140 original ioctl, whether or not the kernel code is actually of the newer
1141 version. Thus in most cases there are no compatibility issues.
1142
1143 When can we have compatibility issues? If we have code built with the new
1144 dahdi/user.h, but the loaded kernel code (modules) are of the older version.
1145 Thus the userspace program will try to use the newer DAHDI_EXAMPLE (0xC008DA3E).
1146 But the kernel code has no handler for that ioctl. The result: the error 25,
1147 ENOTTY, which means "Inappropriate ioctl for device".
1148
1149 As a by-product of that method, for each interface change a new #define is
1150 added. That definition is for the old version and thus it might appear
1151 slightly confusing in the code, but it is useful for writing code that works
1152 with all versions of DAHDI.
1153
1154 Past Incompatibilities
1155 ^^^^^^^^^^^^^^^^^^^^^^
1156 .DAHDI 2.3:
1157 DAHDI_SPANINFO_V1 (extra members added). This will typically only be
1158 used on ISDN (PRI/BRI) spans in Asterisk.
1159
1160 .DAHDI 2.2:
1161 * DAHDI_GET_PARAMS_V1, DAHDI_GETCONF_V1, DAHDI_SETCONF_V1,
1162 DAHDI_GETGAINS_V1 ('direction' changed from 'R' to 'RW' to fix
1163 FreeBSD support).
1164 * DAHDI_CONFDIAG_V1, DAHDI_CHANDIAG_V1 (fixed direction).
1165
1166
1167 Alarm Types
1168 ~~~~~~~~~~~
1169 An alarm indicates that a port is not available for some reason. Thus it
1170 is probably not a good idea to try to call out through it.
1171
1172
1173 Red Alarm
1174 ^^^^^^^^^
1175 Your T1/E1 port will go into red alarm when it cannot maintain
1176 synchronization with the remote switch. A red alarm typically
1177 indicates either a physical wiring problem, loss of connectivity, or a
1178 framing and/or line-coding mismatch with the remote switch. When your
1179 T1/E1 port loses sync, it will transmit a yellow alarm to the remote
1180 switch to indicate that it's having a problem receiving signal from
1181 the remote switch.
1182
1183 The easy way to remember this is that the R in red stands for "right
1184 here" and "receive"... indicating that we're having a problem right
1185 here receiving the signal from the remote switch.
1186
1187
1188 Yellow Alarm
1189 ^^^^^^^^^^^^
1190 (RAI -- Remote Alarm Indication)
1191
1192 Your T1/E1 port will go into yellow alarm when it receives a signal
1193 from the remote switch that the port on that remote switch is in red
1194 alarm. This essentially means that the remote switch is not able to
1195 maintain sync with you, or is not receiving your transmission.
1196
1197 The easy way to remember this is that the Y in yellow stands for
1198 "yonder"... indicating that the remote switch (over yonder) isn't able
1199 to see what you're sending.
1200
1201
1202 Blue Alarm
1203 ^^^^^^^^^^
1204 (AIS -- Alarm Indication Signal)
1205
1206 Your T1/E1 port will go into blue alarm when it receives all unframed
1207 1s on all timeslots from the remote switch. This is a special signal
1208 to indicate that the remote switch is having problems with its
1209 upstream connection. dahdi_tool and Asterisk don't correctly indicate
1210 a blue alarm at this time. The easy way to remember this is that
1211 streams are blue, so a blue alarm indicates a problem upstream from
1212 the switch you're connected to.
1213
1214
1215 Recovering from Alarm
1216 ^^^^^^^^^^^^^^^^^^^^^
1217 TODO: explain.
1218
1219
1220 Loopback
1221 ^^^^^^^^
1222 Not really an alarm. Indicates that a span is not available, as the port
1223 is in either a local or remote loopback mode.
1224
1225
1226 Not Open
1227 ^^^^^^^^
1228 Something is not connected. Used by e.g. the drivers of the Astribank to
1229 indicate a span that belongs to a device that has been disconnected
1230 but is still being used by userspace programs and thus can't e
1231 destroyed.
1232
1233
1234 License
1235 -------
1236 This package is distributed under the terms of the GNU General Public License
1237 Version 2, except for some components which are distributed under the terms of
1238 the GNU Lesser General Public License Version 2.1. Both licenses are included
1239 in this directory, and each file is clearly marked as to which license applies.
1240
1241 If you wish to use the DAHDI drivers in an application for which the license
1242 terms are not appropriate (e.g. a proprietary embedded system), licenses under
1243 more flexible terms can be readily obtained through Digium, Inc. at reasonable
1244 cost.
1245
1246 Known Issues
1247 ------------
1248
1249 KB1 does not function when echocancel > 128
1250 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1251 KB1 was not designed to function at greater than 128 taps, and if configured
1252 this way, will result in the destruction of audio. Ideally DAHDI would return
1253 an error when a KB1 echocanceller is configured with greater than 128 taps.
1254
1255
1256 Reporting Bugs
1257 --------------
1258 Please report bug and patches to the Asterisk bug tracker at
1259 http://issues.asterisk.org in the "DAHDI-linux" category.
1260
1261 Links
1262 -----
1263 - http://asterisk.org/[] - The Asterisk PBX
1264 - http://docs.tzafrir.org.il/dahdi-linux/README.html[Up-to-date HTML version
1265 of this file]