Dahdi not working after chan_dahdi.conf loaded

Hi, I am a new asterisk learner and for a while I’m studying asterisk with the book “Asterisk, The definitive guide, third edition”

And I have problems on loading my fxs card (Openvox A400P with 4 fxs modules which is equivalent to tdm400p of digium)

I have configured /etc/dahdi/modules and /etc/dahdi/system.conf and all ports are ok and dahdi started perfectly. But whenever I loaded the /etc/asterisk/chan_dahdi.conf , Asterisk has loses connection to dahdi. and I can not load chan_dahdi.so manually via asterisk_cli.

My configuration is:
Ubuntu server 10.04.03
Asterisk 1.8
Dahdi 2.6.0

and I’m trying to setup my fxs card as explained here:


# Contains the list of modules to be loaded / unloaded by /etc/init.d/dahdi.
# NOTE:  Please add/edit /etc/modprobe.d/dahdi or /etc/modprobe.conf if you 
#        would like to add any module parameters.
# Format of this file: list of modules, each in its own line. 
# Anything after a '#' is ignore, likewise trailing and leading
# whitespaces and empty lines.

# Digium TE205P/TE207P/TE210P/TE212P: PCI dual-port T1/E1/J1
# Digium TE405P/TE407P/TE410P/TE412P: PCI quad-port T1/E1/J1
# Digium TE220: PCI-Express dual-port T1/E1/J1
# Digium TE420: PCI-Express quad-port T1/E1/J1
# wct4xxp

# Digium TE120P: PCI single-port T1/E1/J1
# Digium TE121: PCI-Express single-port T1/E1/J1
# Digium TE122: PCI single-port T1/E1/J1
# wcte12xp

# Digium T100P: PCI single-port T1
# Digium E100P: PCI single-port E1
# wct1xxp

# Digium TE110P: PCI single-port T1/E1/J1
# wcte11xp

# Digium TDM2400P/AEX2400: up to 24 analog ports
# Digium TDM800P/AEX800: up to 8 analog ports
# Digium TDM410P/AEX410: up to 4 analog ports

# X100P - Single port FXO interface
# X101P - Single port FXO interface 

# Digium TDM400P: up to 4 analog ports

# Digium B410P: 4 NT/TE BRI ports

# Digium TC400B: G729 / G723 Transcoding Engine

# Xorcom Astribank Devices


# Autogenerated by /usr/sbin/dahdi_genconf on Fri Feb  3 15:09:40 2012
# If you edit this file and execute /usr/sbin/dahdi_genconf again,
# your manual changes will be LOST.
# Dahdi Configuration File
# This file is parsed by the Dahdi Configurator, dahdi_cfg
# Global data

loadzone	= de
defaultzone	= de

# 1-2 fxs ports 3-4 fxo ports

fxoks = 1-4



; No trunk groups are needed in this configuration.


; The channels context is used when defining channels using the
; older deprecated method.  Don't use this as a section name.

; A template to hold common options for all phones.
usecallerid = yes
hidecallerid = no
callwaiting = no
threewaycalling = yes
transfer = yes
immediate = no
context = LocalSets
signalling = fxo_ks ; Uses FXO signaling for an FXS channel 

callerid = "Mark Michelson" <5555>
dahdichan = 1

callerid = "David Vossel" <2222>
dahdichan = 2

callerid = "Jason Parker" <1111>
dahdichan = 3

callerid = "Matthew Nicholson" <(256)555-4343>
dahdichan = 4

result of dahdi_scan

[1] active=yes alarms=OK description=Wildcard TDM400P REV E/F Board 5 name=WCTDM/4 manufacturer=Digium devicetype=Wildcard TDM400P REV E/F location=PCI Bus 05 Slot 01 basechan=1 totchans=4 irq=0 type=analog port=1,FXS port=2,FXS port=3,FXS port=4,FXS

result of dahdi_cfg

[code]DAHDI Tools Version - 2.6.0

DAHDI Version: 2.6.0
Echo Canceller(s): HWEC

Channel map:

Channel 01: FXO Kewlstart (Default) (Echo Canceler: none) (Slaves: 01)
Channel 02: FXO Kewlstart (Default) (Echo Canceler: none) (Slaves: 02)
Channel 03: FXO Kewlstart (Default) (Echo Canceler: none) (Slaves: 03)
Channel 04: FXO Kewlstart (Default) (Echo Canceler: none) (Slaves: 04)

4 channels to configure.

Setting echocan for channel 1 to none
Setting echocan for channel 2 to none
Setting echocan for channel 3 to none
Setting echocan for channel 4 to none

result of dmesg

[16843.036905] dahdi: Telephony Interface Registered on major 196 [16843.036908] dahdi: Version: 2.6.0 [16843.043824] Freshmaker version: 71 [16843.045157] Freshmaker passed register test [16844.774226] Module 0: Installed -- AUTO FXS/DPO [16845.998807] Module 1: Installed -- AUTO FXS/DPO [16847.221042] Module 2: Installed -- AUTO FXS/DPO [16848.452266] Module 3: Installed -- AUTO FXS/DPO [16848.464945] Found a Wildcard TDM: Wildcard TDM400P REV E/F (4 modules)

now at asterisk_cli dahdi show channels is not working

asteriskpbx*CLI> dahdi show channels No such command 'dahdi show channels' (type 'core show help dahdi show' for other possible commands)

and chan_dahdi.so can not be loaded manually

asteriskpbx*CLI> module load chan_dahdi.so Unable to load module chan_dahdi.so Command 'module load chan_dahdi.so' failed. == Parsing '/etc/asterisk/chan_dahdi.conf': == Found -- Automatically generated pseudo channel

When I deleted the profiles at /etc/asterisk/chan_dahdi.conf, I am able to load conf_dahdi.so manually

asteriskpbx*CLI> module load chan_dahdi.so Loaded chan_dahdi.so == Parsing '/etc/asterisk/chan_dahdi.conf': == Found -- Automatically generated pseudo channel == Registered channel type 'DAHDI' (DAHDI Telephony Driver w/PRI) == Manager registered action DAHDITransfer == Manager registered action DAHDIHangup == Manager registered action DAHDIDialOffhook == Manager registered action DAHDIDNDon == Manager registered action DAHDIDNDoff == Manager registered action DAHDIShowChannels == Manager registered action DAHDIRestart Loaded chan_dahdi.so => (DAHDI Telephony Driver w/PRI)

but of course without any dahdi channels

asteriskpbx*CLI> dahdi show channels Chan Extension Context Language MOH Interpret Blocked State pseudo default default In Service

how can i make the dahdi work???

i m not a dahdi expert but i can give you my chan_dadhi.conf






thanks, but not working.
btw, what was your dahdi version?

i think there must be something wrong in chan_dahdi.conf, place check that or PM me.

i had also a problem with DAHDI. i had defined the channels twice inside the chan_dahdi.conf.
i am not using the dahdi-channels.conf now and have defined the channels in chan_dahdi.conf.
here is the link to my problem post.


Here is a re-write to try.

callerid = “Mark Michelson” <5555>
channel => 1

callerid = “David Vossel” <2222>
channel => 2

callerid = “Jason Parker” <1111>
channel => 3

callerid = “Matthew Nicholson” <(256)555-4343>
channel => 4

If this or other methods provided above do not work then you may need to do a clean install of asterisk+dahdi. or probably try some other version.