Tuesday, April 30, 2013

loader.c: Error loading module 'chan_dahdi.so': /usr/lib/asterisk/modules/chan_dahdi.so: undefined symbol: openr2_context_set_dtmf_detection_end_timeout


Today I faced an issue after upgrading Asterisk and Dahdi on Elastix box.
Apparently updating partially was a bad idea and I ran into some issues and dahdi module didn't like to be loaded.

I tried to manually load the to module to see if there is any error on console

[root@10200 ~]# asterisk -rvvvvvvvvv
Asterisk 1.8.21.0, Copyright (C) 1999 - 2012 Digium, Inc. and others.
Created by Mark Spencer <markster@digium.com>
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 1.8.21.0 currently running on 10200 (pid = 4284)
Verbosity is at least 9
Saved useragent "Voip Phone 1.0" for peer 904
10200*CLI> module load chan_dahdi.so 
Unable to load module chan_dahdi.so
Command 'module load chan_dahdi.so ' failed.


There was none so I tried to check the logs on asterisk:
[root@10200 ~]# tail /var/log/asterisk/full 
[Apr 30 16:08:34] VERBOSE[4339] manager.c:   == Manager 'admin' logged on from 127.0.0.1
[Apr 30 16:08:40] VERBOSE[4288] asterisk.c:     -- Remote UNIX connection
[Apr 30 16:08:42] VERBOSE[4343] asterisk.c:     -- Remote UNIX connection disconnected
[Apr 30 16:08:45] VERBOSE[4288] asterisk.c:     -- Remote UNIX connection
[Apr 30 16:08:45] VERBOSE[4311] chan_sip.c:        > Saved useragent "Voip Phone 1.0" for peer 904
[Apr 30 16:08:51] VERBOSE[4345] asterisk.c:     -- Remote UNIX connection disconnected
[Apr 30 16:08:52] VERBOSE[4288] asterisk.c:     -- Remote UNIX connection
[Apr 30 16:09:04] WARNING[4347] loader.c: Error loading module 'chan_dahdi.so': /usr/lib/asterisk/modules/chan_dahdi.so: undefined symbol: openr2_context_set_dtmf_detection_end_timeout
[Apr 30 16:09:04] WARNING[4347] loader.c: Module 'chan_dahdi.so' could not be loaded.
[Apr 30 16:09:05] VERBOSE[4347] asterisk.c:     -- Remote UNIX connection disconnected
[root@10200 ~]#

Solution: so all I needed to was updating all other related items specially : "libopenr2-devel"

yum update libpri libpri-devel dahdi dahdi-devel kmod-dahdi kmod-rhino kmod-wanpipe wanpipe-util kmod-dahdi kmod-rhino kmod-wanpipe wanpipe-util libopenr2-devel -y

2 comments:

  1. Dear All,
    Please provide me solution of this error..I am getting this error when i restarting dahdi.

    Oct 13 11:22:26 localhost kernel: wcte13xp 0000:0d:00.0: Firmware 780017 is running, but we require 6f0017. ERROR: This version of dahdi temporarily disabled field upgradeable firmware. Please upgrade your dahdi revision.
    Oct 13 11:22:26 localhost kernel: ACPI: PCI interrupt for device 0000:0d:00.0 disabled
    Oct 13 11:22:26 localhost kernel: wcte13xp: probe of 0000:0d:00.0 failed with error -5
    Oct 13 13:25:16 localhost ntpd[2719]: synchronized to 218.189.210.3, stratum 2

    Thanks in Advance

    ReplyDelete
  2. Thank you for saving my sanity, I couldn't find the right package to finish the upgrade.

    ReplyDelete