GSnover
(GSnover)
May 18, 2015, 3:25pm
1
Continuing the discussion from DAHDI module not loading (SOLVED, but a bug) :
Installed FreePBX Distro (2.210.62.2 64-bit) and updated with “yum update”.
chan_dahdi.so module will not load into asterisk. I tried installing ss7* and libopen* as suggested by some, but still no joy.
Here is a list of RPMs:
[root@sfo-asterisk-tel-02 ~]# rpm -q -a dahdi-linux
dahdi-linux-2.6.1-13_centos6.x86_64
[root@sfo-asterisk-tel-02 ~]# rpm -q -a freepbx*
freepbx-2.10.0-99.noarch
freepbxdistro-header-2.10.0-5.noarch
[root@sfo-asterisk-tel-02 ~]# rpm -q -a asterisk*
…
asterisk10-core-10.11.1-75_centos6.x86_64
asterisk10-addons-mysql-10.11.1-75_centos6.x86_64
asterisk10-dahdi-10.11.1-75_centos6.x86_64
asterisk10-10.11.1-75_centos6.x86_64
…
asterisk10-addons-core-10.11.1-75_centos6.x86_64
…
asterisk10-addons-10.11.1-75_centos6.x86_64
…
[root@sfo-asterisk-tel-02 ~]# rpm -q -a kernel*
kernel-firmware-2.6.32-220.13.1.el6.noarch
kernel-headers-2.6.32-220.13.1.el6.x86_64
kernel-devel-2.6.32-220.13.1.el6.x86_64
kernel-2.6.32-220.13.1.el6.x86_64
[root@sfo-asterisk-tel-02 ~]# rpm -q -a wanpipe*
wanpipe-3.5.28.5-kernel.2.6.32.220.13.1.el6.dahdi.2.6.1.rel.15.x86_64
I tried manually loading the module:
sfo-asterisk-tel-02*CLI> module load chan_dahdi.so
Unable to load module chan_dahdi.so
Command ‘module load chan_dahdi.so’ failed.
I ran depmod (which was a problem I already ran into getting the sip module to load.)
Dahdi seems to be running fine:
[root@sfo-asterisk-tel-02 ~]# dahdi_cfg -vvvvvvv
DAHDI Tools Version - 2.6.1
DAHDI Version: 2.6.1
Echo Canceller(s): HWEC
Configuration
SPAN 1: ESF/B8ZS Build-out: 0 db (CSU)/0-133 feet (DSX-1)
Channel map:
Channel 01: Clear channel (Default) (Echo Canceler: mg2) (Slaves: 01)
Channel 02: Clear channel (Default) (Echo Canceler: mg2) (Slaves: 02)
Channel 03: Clear channel (Default) (Echo Canceler: mg2) (Slaves: 03)
Channel 04: Clear channel (Default) (Echo Canceler: mg2) (Slaves: 04)
Channel 05: Clear channel (Default) (Echo Canceler: mg2) (Slaves: 05)
Channel 06: Clear channel (Default) (Echo Canceler: mg2) (Slaves: 06)
Channel 07: Clear channel (Default) (Echo Canceler: mg2) (Slaves: 07)
Channel 08: Clear channel (Default) (Echo Canceler: mg2) (Slaves: 08)
Channel 09: Clear channel (Default) (Echo Canceler: mg2) (Slaves: 09)
Channel 10: Clear channel (Default) (Echo Canceler: mg2) (Slaves: 10)
Channel 11: Clear channel (Default) (Echo Canceler: mg2) (Slaves: 11)
Channel 12: Clear channel (Default) (Echo Canceler: mg2) (Slaves: 12)
Channel 13: Clear channel (Default) (Echo Canceler: mg2) (Slaves: 13)
Channel 14: Clear channel (Default) (Echo Canceler: mg2) (Slaves: 14)
Channel 15: Clear channel (Default) (Echo Canceler: mg2) (Slaves: 15)
Channel 16: Clear channel (Default) (Echo Canceler: mg2) (Slaves: 16)
Channel 17: Clear channel (Default) (Echo Canceler: mg2) (Slaves: 17)
Channel 18: Clear channel (Default) (Echo Canceler: mg2) (Slaves: 18)
Channel 19: Clear channel (Default) (Echo Canceler: mg2) (Slaves: 19)
Channel 20: Clear channel (Default) (Echo Canceler: mg2) (Slaves: 20)
Channel 21: Clear channel (Default) (Echo Canceler: mg2) (Slaves: 21)
Channel 22: Clear channel (Default) (Echo Canceler: mg2) (Slaves: 22)
Channel 23: Clear channel (Default) (Echo Canceler: mg2) (Slaves: 23)
Channel 24: Hardware assisted D-channel (Default) (Echo Canceler: none) (Slaves: 24)
24 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
Setting echocan for channel 5 to mg2
Setting echocan for channel 6 to mg2
Setting echocan for channel 7 to mg2
Setting echocan for channel 8 to mg2
Setting echocan for channel 9 to mg2
Setting echocan for channel 10 to mg2
Setting echocan for channel 11 to mg2
Setting echocan for channel 12 to mg2
Setting echocan for channel 13 to mg2
Setting echocan for channel 14 to mg2
Setting echocan for channel 15 to mg2
Setting echocan for channel 16 to mg2
Setting echocan for channel 17 to mg2
Setting echocan for channel 18 to mg2
Setting echocan for channel 19 to mg2
Setting echocan for channel 20 to mg2
Setting echocan for channel 21 to mg2
Setting echocan for channel 22 to mg2
Setting echocan for channel 23 to mg2
Setting echocan for channel 24 to none
[root@sfo-asterisk-tel-02 ~]#
[root@sfo-asterisk-tel-02 ~]# modprobe -l | grep dahdi
dahdi/tor3/tor3e.ko
dahdi/voicebus/dahdi_voicebus.ko
dahdi/dahdi_echocan_sec2.ko
dahdi/xpp/xpd_pri.ko
dahdi/xpp/xpp_usb.ko
dahdi/xpp/xpd_fxs.ko
dahdi/xpp/xpd_fxo.ko
dahdi/xpp/xpd_bri.ko
dahdi/xpp/xpd_echo.ko
dahdi/xpp/xpp.ko
dahdi/wcfxo.ko
dahdi/dahdi_dynamic_loc.ko
dahdi/wcte11xp.ko
dahdi/tor2.ko
dahdi/dahdi_echocan_mg2.ko
dahdi/wctdm24xxp/wctdm24xxp.ko
dahdi/dahdi_echocan_kb1.ko
dahdi/wcte12xp/wcte12xp.ko
dahdi/rhino/rxt1/rxt1.ko
dahdi/rhino/rcbfx/rcbfx.ko
dahdi/rhino/r1t1/r1t1.ko
dahdi/pciradio.ko
dahdi/opvxd115/opvxd115.ko
dahdi/opvxa1200/opvxa1200.ko
dahdi/wct4xxp/wct4xxp.ko
dahdi/wctdm.ko
dahdi/dahdi_dynamic_ethmf.ko
dahdi/dahdi_echocan_jpah.ko
dahdi/dahdi_transcode.ko
dahdi/wctc4xxp/wctc4xxp.ko
dahdi/wct1xxp.ko
dahdi/dahdi_dynamic_eth.ko
dahdi/dahdi_dynamic.ko
dahdi/dahdi_echocan_sec.ko
dahdi/dahdi_echocan_oslec.ko
dahdi/zaphfc/zaphfc.ko
dahdi/opvxa24xx/opvxa24xx.ko
dahdi/dahdi.ko
dahdi/wcb4xxp/wcb4xxp.ko
dahdi/wcb4xxp/opvxec.ko
I just re-ran setup-sangoma, but the problem persists.
Just found the issue – saw these messages in /var/log/asterisk/full:
[2013-01-16 19:34:50] WARNING[5525] loader.c: Error loading module ‘chan_dahdi.so’: libwat.so.1.0.24: cannot open shared object file: No such file or directory
So did a “yum install libwat*” and now dahdi loads correctly.
Looks like a bug somewhere.
I think this needs to be relooked at - I did all the updates on this box this weekend with System Admin Pro and still ended up with this problem - so something in the scripts is missing this bug also.
Your issue is you are on Asterisk 10 which has not gotten updates in over a year. You need to go to Asterisk 11.17 or newer
GSnover
(GSnover)
May 18, 2015, 4:06pm
3
Nope:
Asterisk 11.17.1, Copyright © 1999 - 2013 Digium, Inc. and others.
Created by Mark Spencer [email protected]
Asterisk comes with ABSOLUTELY NO WARRANTY; type ‘core show warranty’ for details.
This is free software, with components licensed under the GNU General Public
License version 2 and other licenses; you are welcome to redistribute it under
certain conditions. Type ‘core show license’ for details.
Connected to Asterisk 11.17.1 currently running on localhost (pid = 12102)
localhost*CLI>
GSnover
(GSnover)
May 18, 2015, 4:07pm
4
This box might have been on 10 at some point, but it’s not now.
Your list above says
asterisk10-core-10.11.1-75_centos6.x86_64
GSnover
(GSnover)
May 18, 2015, 5:43pm
6
No - I was just quoting the above post because it was the same error - that whole section in gray is from the original post - did I quote it wrong?
GSnover
(GSnover)
May 18, 2015, 6:23pm
7
Just fresh loaded a box this morning and brought it up to current using the System Admin - same thing:
loader.c: Error loading module ‘chan_dahdi.so’: libwat.so.1.0.24: cannot open shared object file: No such file or directory.
[root@localhost /]# yum info libwat*
Loaded plugins: fastestmirror, kmod
Loading mirror speeds from cached hostfile
Installed Packages
Name : libwat
Arch : x86_64
Version : 2.0.2
Release : 1.shmz65.1.6
Size : 151 k
Repo : installed
From repo : pbx
Summary : LibWAT is an open source library that encapsulates the protocols used to communicate with Wireless GSM modules.
URL : http://www.sangoma.com
License : GPL
Description : LibWAT is an open source library that encapsulates the protocols used to communicate with Wireless GSM modules.
: LibWAT is a dependency for Asterisk and DAHDI if GSM signaling is used.
: LibWAT is still in beta phase.
Name : libwat-debuginfo
Arch : x86_64
Version : 2.0.2
Release : 1.shmz65.1.6
Size : 1.1 M
Repo : installed
From repo : pbx
Summary : Debug information for package libwat
URL : http://www.sangoma.com
License : GPL
Description : This package provides debug information for package libwat.
: Debug information is useful when developing applications that use this
: package or when debugging this package.
Name : libwat-devel
Arch : x86_64
Version : 2.0.2
Release : 1.shmz65.1.6
Size : 32 k
Repo : installed
From repo : pbx
Summary : Libwat libraries and header files for libwat development
URL : http://www.sangoma.com
License : GPL
Description : The static libraries and header files needed for building additional plugins/modules
do this from the CLI
yum clean all
yum update
Are their any RPMs that need to be updated. if so update them and then restart asterisk/dahdi and let me know.
GSnover
(GSnover)
May 19, 2015, 12:14am
9
[root@asterisk ~]# yum clean all
Loaded plugins: fastestmirror, kmod
Cleaning repos: base extras pbx schmooze-commercial updates
Cleaning up Everything
Cleaning up list of fastest mirrors
[root@asterisk ~]# yum update
Loaded plugins: fastestmirror, kmod
Determining fastest mirrors
base | 2.0 kB 00:00
base/primary | 2.5 MB 00:03
base 6402/6402
extras | 1.3 kB 00:00
extras/primary | 6.8 kB 00:00
extras 15/15
pbx | 1.3 kB 00:00
pbx/primary | 833 kB 00:01
pbx 3274/3274
schmooze-commercial | 1.3 kB 00:00
schmooze-commercial/primary | 22 kB 00:00
schmooze-commercial 150/150
updates | 1.3 kB 00:00
updates/primary | 644 kB 00:01
updates 1456/1456
Setting up Update Process
No Packages marked for Update
[root@asterisk ~]#