Friday, August 2, 2013

Kannel error: AT2[wavecom1]: at2_device_thread: open_at2_device failed. System error 13: Permission denied


If you ever run into below error on kannel.
please note that this is due to permission to your USB or Serial Model

2013-08-02 22:50:01 [2853] [6] ERROR: System error 13: Permission denied
2013-08-02 22:50:01 [2853] [6] ERROR: AT2[wavecom1]: at2_device_thread: open_at2_device failed.
2013-08-02 22:50:01 [2853] [6] ERROR: System error 13: Permission denied
2013-08-02 22:50:01 [2853] [6] ERROR: AT2[wavecom1]: Couldn't connect (retrying in 10 seconds).
2013-08-02 22:50:01 [2853] [6] INFO: AT2[wavecom1]: opening device
2013-08-02 22:50:01 [2853] [6] ERROR: AT2[wavecom1]: open failed! ERRNO=13
2013-08-02 22:50:01 [2853] [6] ERROR: System error 13: Permission denied
2013-08-02 22:50:01 [2853] [6] ERROR: AT2[wavecom1]: at2_device_thread: open_at2_device failed.
2013-08-02 22:50:01 [2853] [6] ERROR: System error 13: Permission denied
2013-08-02 22:50:01 [2853] [6] ERROR: AT2[wavecom1]: Couldn't connect (retrying in 10 seconds).

You can run below command for serial modems:

First run the su:
[md@sms02 ~]$ su
Password:
[root@sms02 md]#
chmod 777 /dev/ttyS*


or for USB modem run below command,
[root@sms02 md]# chmod 777 /dev/ttyS*


you may want to add it to your rc.local to apply at the boot time:

[root@sms02 md]#echo 'chmod 777 /dev/ttyS*' >> /etc/rc.local

"Google Chrome Has Flagged 'IDM Integration' Has Malicious " How To Fix?

WARNING :

The flaw in IDM extension is serious security threat.
I have all my saved password stolen from my Chrome after I allowed this extension when I unchecked.

This was a desaster, I have more than 120 saved password, I had to change all of them one by one.

TAKE THIS SERIOUSLY.

if you need IDM download for Youtube and other staff, follow below:

First:

IDM > Downloads > Automatically start downloading of URLS placed to clipboard

Second on every page you want to download:
1) open a blank tab
2) press F12 to get the developer panel
3) click on NETWORK
4) type the URL (you can copy/paste) into address bar to load the page.
5) click on SIZE column to see which file is it you need, or sort based on TYPE
6) right click and select "COPY LINK ADDRESS"
7) IDM will download this automatically without integration

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