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

Monday, April 8, 2013

VMware vSphere Error starting virtual machine

Starting a Virtual Machine on vSphere 5.1 got below error: 




























Failed to power on VM.
Could not power on VM : Admission check failed for memory resource See the VMware ESX Resource Management Guide for information on resource management settings. 
SharedArea: Unable to find 'testSharedAreaPtr' in SHARED_PER_VM_VMX area. 
Using hardware virtualization with a software MMU. 
This host does not support EPT.  

Solution:
check memory size on VM on whether GB or MB is correct. I chose 1024 GB instead of 1024MB