dahdi not working after chan_dahdi.conf loaded

Get help with installing, upgrading and running Asterisk.

Moderators: muppetmaster, Moderator, Support

dahdi not working after chan_dahdi.conf loaded

Postby geaper » Tue Feb 07, 2012 7:54 am

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:
http://www.asteriskdocs.org/en/3rd_Edition/asterisk-book-html/asterisk-book.html#DeviceConfig_id164614

/etc/dahdi/modules
Code: Select all
# 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
#wctdm24xxp

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

# Digium TDM400P: up to 4 analog ports
wctdm

# Digium B410P: 4 NT/TE BRI ports
#wcb4xxp

# Digium TC400B: G729 / G723 Transcoding Engine
#wctc4xxp

# Xorcom Astribank Devices
#xpp_usb


/etc/dahdi/system.comf
Code: Select all
# 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


/etc/asterisk/chan_dahdi.conf
Code: Select all
[trunkgroups]

; No trunk groups are needed in this configuration.

[channels]

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

[phone](!)
;
; 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


[phone1](phone)
callerid = "Mark Michelson" <5555>
dahdichan = 1


[phone2](phone)
callerid = "David Vossel" <2222>
dahdichan = 2


[phone3](phone)
callerid = "Jason Parker" <1111>
dahdichan = 3

[phone4](phone)
callerid = "Matthew Nicholson" <(256)555-4343>
dahdichan = 4


result of dahdi_scan
Code: Select all
[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: Select all
DAHDI Tools Version - 2.6.0

DAHDI Version: 2.6.0
Echo Canceller(s): HWEC
Configuration
======================


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
Code: Select all
[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
Code: Select all
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
Code: Select all
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
Code: Select all
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
Code: Select all
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???
geaper
Newsterisk
 
Posts: 3
Joined: Thu Oct 13, 2011 3:43 am

Re: dahdi not working after chan_dahdi.conf loaded

Postby tomdemoor » Tue Feb 07, 2012 2:00 pm

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

[channels]
usecallerid=yes
hidecallerid=no
callwaiting=yes
threewaycalling=yes
transfer=yes
canpark=yes

group=1
context=users
signalling=fxo_ks
channel=>1


group=2
context=users
signalling=fxo_ks
channel=>2


group=3
context=users
signalling=fxo_ks
channel=>3


group=4
context=users
signalling=fxo_ks
channel=>4
tomdemoor
Oldsterisk
 
Posts: 131
Joined: Mon Jan 16, 2012 4:24 am

Re: dahdi not working after chan_dahdi.conf loaded

Postby geaper » Wed Feb 08, 2012 5:57 am

thanks, but not working.
btw, what was your dahdi version?
geaper
Newsterisk
 
Posts: 3
Joined: Thu Oct 13, 2011 3:43 am

Re: dahdi not working after chan_dahdi.conf loaded

Postby james.zhu » Thu Feb 09, 2012 9:05 pm

hi:
i think there must be something wrong in chan_dahdi.conf, place check that or PM me.
Regards!
James.zhu
Hiastar Technilogies CO., LTD
Email: james.zhu@hiastar.com, QQ: 522137361, skype: voipview
websites: http://www.hiastar.com
james.zhu
Oldsterisk
 
Posts: 104
Joined: Tue May 13, 2008 7:34 pm
Location: China

Re: dahdi not working after chan_dahdi.conf loaded

Postby unluckyprince » Fri Feb 10, 2012 12:53 am

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.

http://forums.digium.com/viewtopic.php?f=1&t=81370&sid=163aca19602fff822ba5391a8851a4cc
unluckyprince
Newsterisk
 
Posts: 41
Joined: Wed Jun 22, 2011 12:38 am

Re: dahdi not working after chan_dahdi.conf loaded

Postby BrennaKessler » Fri Feb 10, 2012 11:06 am

Here is a re-write to try.

[phone1](phone)
callerid = "Mark Michelson" <5555>
channel => 1

[phone2](phone)
callerid = "David Vossel" <2222>
channel => 2

[phone3](phone)
callerid = "Jason Parker" <1111>
channel => 3

[phone4](phone)
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.
BrennaKessler
Newsterisk
 
Posts: 17
Joined: Fri Dec 02, 2011 3:58 am


Return to Asterisk Support

Who is online

Users browsing this forum: No registered users and 44 guests