chan_dahdi.so not loading

Used 64 bit 1.810.210.57 iso install disk
Freepbx distro: 1.810.210.57-1

chan_dahdi.so module fails to load in asterisk. The error says it cannot open or find libtonezone.so.2.0. The file is on the system, below is an ldd on the chan_dahdi.so module and directory listing of the libtonezone files.

localhost*CLI> module load chan_dahdi.so
Unable to load module chan_dahdi.so
Command 'module load chan_dahdi.so ’ failed.
[2012-03-14 23:18:48] WARNING[-1]: loader.c:396 load_dynamic_module: Error loading module ‘chan_dahdi.so’: libtonezone.so.2.0: cannot open shared object file: No such file or directory
[2012-03-14 23:18:48] WARNING[-1]: loader.c:848 load_resource: Module ‘chan_dahdi.so’ could not be loaded.

ldd /usr/lib/asterisk/modules/chan_dahdi.so
linux-vdso.so.1 => (0x00007fff269ae000)
libtonezone.so.2.0 => not found
libpri.so.1.4 => /usr/lib/libpri.so.1.4 (0x00002aeefbb80000)
libss7.so.1 => /usr/lib/libss7.so.1 (0x00002aeefbdf6000)
libopenr2.so.1 => /usr/lib/libopenr2.so.1 (0x00002aeefc00c000)
libpthread.so.0 => /lib64/libpthread.so.0 (0x00002aeefc227000)
libc.so.6 => /lib64/libc.so.6 (0x00002aeefc442000)
libm.so.6 => /lib64/libm.so.6 (0x00002aeefc79a000)
/lib64/ld-linux-x86-64.so.2 (0x0000003c50000000)

ls -l /usr/lib/libtonezone.*
-rwxr-xr-x 1 root root 214726 Feb 29 01:04 /usr/lib/libtonezone.a
lrwxrwxrwx 1 root root 18 Mar 14 15:41 /usr/lib/libtonezone.so -> libtonezone.so.2.0
lrwxrwxrwx 1 root root 18 Mar 14 15:41 /usr/lib/libtonezone.so.1 -> libtonezone.so.2.0
lrwxrwxrwx 1 root root 18 Mar 14 15:41 /usr/lib/libtonezone.so.1.0 -> libtonezone.so.2.0
lrwxrwxrwx 1 root root 18 Mar 14 15:41 /usr/lib/libtonezone.so.2 -> libtonezone.so.2.0
-rwxr-xr-x 1 root root 212496 Feb 29 01:04 /usr/lib/libtonezone.so.2.0

[root@localhost ~]# rpm -qa | grep tone
libtonezone-devel-2.6.0-26_centos5
libtonezone-2.6.0-26_centos5

[root@localhost ~]# rpm -qa | grep dahdi
dahdi-firmware-oct6114-256-1.05.01-29_centos5
dahdi-firmware-2.5.0.1-29_centos5
dahdi-linux-debuginfo-2.6.0-20_centos5
dahdi-tools-debuginfo-2.6.0-26_centos5
dahdi-linux-devel-2.6.0-20_centos5
dahdi-tools-2.6.0-26_centos5
wanpipe-3.5.25-kernel.2.6.18.274.3.1.el5.dahdi.2.6.0
dahdi-firmware-hx8-2.06-29_centos5
dahdi-firmware-vpmoct032-1.12.0-29_centos5
dahdi-firmware-tc400m-MR6.12-29_centos5
dahdi-firmware-oct6114-128-1.05.01-29_centos5
dahdi-tools-doc-2.6.0-26_centos5
dahdi-linux-kmod-debuginfo-2.6.0-14_centos5.2.6.18_274.3.1.el5
kmod-dahdi-linux-2.6.0-1_centos5.2.6.18_274.3.1.el5
dahdi-linux-2.6.0-20_centos5
schmooze-dahdi-1.0.0-2
dahdi-firmware-oct6114-064-1.05.01-29_centos5
asterisk18-dahdi-1.8.10.0-14_centos5

Go to the command prompt:

Run

yum install libss7* libopen*

After the process is done:

amportal restart

Those were already installed. I manual compiled dahdi-tools, which includes libtonezone and installed it and that solved the issue. It seems like the latest libtonezone that is include with the distro was for the previous dahdi version. Or at least that seems to be the case when I installed the machines.

Did you try a yum update first

I did at the time, but it has been a week ago. I haven’t tried reinstalling on a test machine to see if it is still an issue on a new install. I will try and do that today.

I had a chance to reinstall the system and the problem no longer exist. It looks like it is pulling a newer version of the asterisk rpm than was available on my earlier install.