Chan_Dahdi Module not Loading into Asterisk

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Chan_Dahdi Module not Loading into Asterisk

4,460 Views
mohitduggal
Contributor II

Hi All ,

  Dahdi is working fine with the following output from Dahdi_cfg

root@p2020rdb:~# dah di_cfg -vvv

DAHDI Tools Version - 2.10.2

DAHDI Version: 2.10.2

Echo Canceller(s): MG2

Configuration

======================

Channel map:

Channel 01: FXO Kewlstart (Default) (Echo Canceler: mg2) (Slaves: 01)

Channel 02: FXO Kewlstart (Default) (Echo Canceler: mg2) (Slaves: 02)

Channel 03: FXS Kewlstart (Default) (Echo Canceler: mg2) (Slaves: 03)

Channel 04: FXS Kewlstart (Default) (Echo Canceler: mg2) (Slaves: 04)

4 channels to configure.

Setting echocan for channel 1 to mg2

Setting echocan for channel 2 to mg2

Setting echocan for channel 3 to mg2

Setting echocan for channel 4 to mg2

root@p2020rdb:~# aster               /etc/init.d/dahdi restart

Unloading DAHDI hardware modules: usbcore: deregistering interface driver xpp_usb

dahdi: disable_span: span 1

Freed a Wildcard

dahdi: Telephony Interface Unloaded

done

Loading DAHDI hardware modules:

dahdi: Version: 2.10.2

dahdi: Telephony Interface Registered on major 196

   wct4xxp: done   wcte43x: done   wcte12xp: done   wcte13xp: done   wct1xxp: done   wcte11xp: done   wctdm24xxp: done   wcaxx: done   wcfxo: done   wctdm: dahdi: Warning: Span WCTDM/4 didn't specify a spantype. Please fix driver!

Freshmaker version: 71

Freshmaker passed register test

Module 0: Installed -- AUTO FXS/DPO

Module 1: Installed -- AUTO FXS/DPO

Module 2: Installed -- AUTO FXO (FCC mode)

Module 3: Installed -- AUTO FXO (FCC mode)

Found a Wildcard TDM: Wildcard TDM400P REV E/F (4 modules)

done   wcb4xxp: done   wctc4xxp: dahdi_transcode: Loaded.

done   xpp_usb: INFO-xpp: revision Unknown MAX_XPDS=64 (8*8)

INFO-xpp: FEATURE: with PROTOCOL_DEBUG

INFO-xpp: FEATURE: with sync_tick() from DAHDI

INFO-xpp_usb: revision Unknown

usbcore: registered new interface driver xpp_usb

done

D: auto '/sys/bus/dahdi_devices/devices/pci:0000:02:00.0'

auto-assign /sysdahdi_devices pci:0000:02:00.0: local span 1 is already assigned span 1

/bus/dahdi_devices/devices/pci:0000:02:00.0

Running dahdi_cfg: dahdi_echocan_mg2: Registered echo canceler 'MG2'

done.

But when i try to load chan_dahdi in asterisk following error comes :

[K*CLI> module load chan_dah d i .so

Unable to load module chan_dahdi.so

Command 'module load chan_dahdi.so' failed.

[Jun 30 17:01:36]  [1;31mWARNING [0m[3194]:  [1;37mloader.c [0m: [1;37m553 [0m  [1;37mload_dynamic_module [0m: Error loading module 'chan_dahdi.so': /usr/lib/asterisk/modules/chan_dahdi.so: cannot open shared object file: No such file or directory

*CLI> [Jun 30 17:01:36]  [1;31mWARNING [0m[3194]:  [1;37mloader.c [0m: [1;37m1079 [0m  [1;37mload_resource [0m: Module 'chan_dahdi.so' could not be loaded.

[0;37m*CLI>

Will be very thankful for the help offered. This is the last issue left in integration.

0 Kudos
1 Reply

1,872 Views
alexander_yakov
NXP Employee
NXP Employee

I believe this is a dahdi-related bug - seaching in google I see a number of reports that the wctdm driver(drivers/dahdi/wctdm.c) don't set the "spantype", so dahdi core sets it to "invalid".

For example this link:

https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=780997

I see only two possible ways to fix this - either approach asterisk.org to get this bug fixed, or fix wctdm by yourself.


Have a great day,
Alexander

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 Kudos