login | register
Sat 04 of Jul, 2009 [06:36 UTC]

voip-info.org

History

DAHDI

Created by: bcnit,Last modification on Sun 21 of Jun, 2009 [00:56 UTC] by rue_mohr

Short for "Digium Asterisk Hardware Device Interface"

The Change

DAHDI is the new name for 'Zaptel' as of May 19th 2008.
The post at http://blogs.digium.com/2008/05/19/zaptel-project-being-renamed-to-dahdi/ details the reason for the change. Asterisk 1.4 releases later than 1.4.21, and all releases of Asterisk 1.6, will automatically use DAHDI in preference to Zaptel, even if Zaptel is still installed on the system.

Details should be available at http://www.asterisk.org/zaptel-to-dahdi

Subversion Release


 svn co http://svn.digium.com/svn/dahdi/linux/trunk dahdi-kernel

and

 svn co http://svn.digium.com/svn/dahdi/tools/trunk dahdi-tools

Or a shortcut (if you just want to get it working, not if you want to work on it). It pulls the above two through svn:externals .

 http://svn.digium.com/svn/dahdi/linux-complete/trunk

Conversion from Zaptel

Digium resources http://www.asterisk.org/zaptel-to-dahdi
/etc/zaptel.conf Becomes /etc/dahdi/system.conf
/etc/asterisk/zapata.conf Becomes /etc/asterisk/chan_dahdi.conf


Configuration Files

/etc/dahdi/system.conf
/etc/asterisk/chan_dahdi.conf

/etc/dahdi/system.conf

Sample system.conf

Note that unlike zaptel.conf, you have to explicitly set the echo canceller for each channel.

There are a number of other configuration files under /etc/dahdi .

/etc/dahdi/init.conf

Replaces /etc/default/zaptel (on Debians) and /etc/sysconfig/zaptel (on most other systems) - this is a shell script snippet that is sourced by the dahdi init.d script. All values there are optional (no need to explicitly define TELEPHONY=no). The variable MODULES, however, is no longer read from it. IT is read from:

/etc/dahdi/modules

A list of modules to load. Replaces the variable MODULES from the above configuration file.

/etc/dahdi/genconf_parameters

Fine--tuning parameters for dahdi_genconf (replaces zapconf and also deprecates genzaptelconf).



Architecture

The package is composed of two sub-packages:

Kernel

Include kernel modules and minila helper files (firmwares)

Tools

The userspace tools to control DAHDI spans/channels:-

dahdi_cfg

The DAHDI Configurator, which parses system.conf

dahdi_genconf

Generates /etc/dahdi/system.conf, so it's better that you don't hand edit system.conf. Uses /etc/dahdi/genconf_parameters to define it's actions.

dahdi_hardware

Displays listing of DAHDI hardware detected

dahdi_monitor

Monitors signal level on analog channel allows you to record audio from it
Usage: dahdi_monitor <channel num> [-vv] -m -o -p -l limit -s FILE -S FILE
example :- dahdi_monitor 1 -vv
note: extremly usefull, but otherwise not mentioned, that the raw format output is 8Khz 16bit signed. Use sox to convert to a wav. sox -r 8000 -s -2 rx.raw rx.wav

dahdi_scan

Generates a list of things DAHDI channels, with some details

dahdi_test

Measures accuracy of the FXO/FXS board software digital signal processing

dahdi_tool

A nice tool to see what your boards are doing.

See also


Comments

Comments Filter
222

333Dahdi on internet less server

by caspar, Tuesday 21 of October, 2008 [07:51:46 UTC]
Does any know how to install Dahdi without an internet connection? It seems like the Dahdi files from Digium does not include all the drivers because it tries to download more and fails the installation.