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




Friday, November 30, 2012

Error: Device eth0 does nt seem to be present, delaying

Today I was making a couple of Clone on VMWare workstation and I got below error after cloned machine was started. as result I didn't have eth0 !


[root@mysql1 ~]#service network restart
Shutting down loopback interface: [ OK ]
Bring up loopback interface: [ OK ]
Bring up interface eth0: Device eth0 doesnt seem to be present, delaying initiatlation [ FAILED ]



So I ran :



[root@mysql1 ~]# dmesg |grep eth
e1000 0000:02:00.0: eth0: (PCI:66MHz:32-bit) 00:0c:29:9e:b4:54
e1000 0000:02:00.0: eth0: Intel(R) PRO/1000 Network Connection
udev: renamed network interface eth0 to eth1



there it was the issue that my eth got renamed, the solution is to edit:

/etc/udev/rules.d/70-persistent-net.rules 

and remove old Ethernet and rename back the new ethernet to eth0
note that I removed the first two lines below with has eth0 and renamed eth1 to eth0
the 00:0c:29:91:f2:83 is actually old MAC address from the source machine that we don't need and 00:0c:29:9e:b5:54 is the new MAC address.


before:

# This file was automatically generated by the /lib/udev/write_net_rules
# program, run by the persistent-net-generator.rules rules file.
#
# You can modify it, as long as you keep each rule on a single
# line, and change only the value of the NAME= key.

# PCI device 0x8086:0x100f (e1000)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:0c:29:91:f2:83", ATTR{type}=="1", KERNEL=="eth*", NAME="eth0"

# PCI device 0x8086:0x100f (e1000)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:0c:29:9e:b5:54", ATTR{type}=="1", KERNEL=="eth*", NAME="eth1"

after:

# This file was automatically generated by the /lib/udev/write_net_rules
# program, run by the persistent-net-generator.rules rules file.
#
# You can modify it, as long as you keep each rule on a single
# line, and change only the value of the NAME= key.

# PCI device 0x8086:0x100f (e1000)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:0c:29:91:f2:83", ATTR{type}=="1", KERNEL=="eth*", NAME="eth0"

# PCI device 0x8086:0x100f (e1000)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:0c:29:9e:b5:54", ATTR{type}=="1", KERNEL=="eth*", NAME="eth1"

after this you need to edit: /etc/sysconfig/networking/devices/ifcfg-eth0 and
change the :

HWADDR=[old mac address]

to

HWADDR=[new mac address]

After this you must reboot your system to get new hardware settings in place

Saturday, May 19, 2012

chan_sip.c: Received SIP subscribe for peer without mailbox: 1000

Asterisk is receiving this error:

chan_sip.c: Received SIP subscribe for peer without mailbox: 1000


To fix it: we must add "mailbox=user@default" to each user in sip.conf:

[1000]
...
...
...
mailbox=1000@default

Asterisk error: WARNING[xxxxx] app_voicemail.c: Failed to obtain database object for 'DATABASE_NAME'!


I received below error on /var/log/asterisk/message:

[2012-05-20 10:28:48] WARNING[12496] app_voicemail.c: Failed to obtain database object for 'DATABASE_NAME'!
[2012-05-20 10:28:48] WARNING[12496] app_voicemail.c: Failed to obtain database object for 'DATABASE_NAME'!
[2012-05-20 10:28:48] WARNING[12496] app_voicemail.c: Failed to obtain database object for 'DATABASE_NAME'!

to fix it we must add below lines to /etc/asterisk/res_odbc.conf


and below lines to /etc/odbc.ini
[ut_a2b]
dsn => DSN_NAME
pre-connect => yes
enabled => yes


[DSN_NAME]
Description=Asterisk voicemail odbc storage
Driver=MySQL
Server=SERVER_ADDRESS
User=DB_USER
Password=SOME_PASSWORD
Database=DB_NAME
Option=1
Trace=yes
Tracefile=/tmp/odbc.log