Baru diberitahu oleh empunya metalova.
cara reclaim memory yang sudah terpakai
# free -m
total used free shared buffers cached
Mem: 991 902 89 0 370 312
-/+ buffers/cache: 219 772
Swap: 1009 11 998
# echo 3 > /proc/sys/vm/drop_caches
# free -m
total used free shared buffers cached
Mem: 991 177 814 0 2 28
-/+ buffers/cache: 146 845
Swap: 1009 11 998
yum groupinstall 'Development Tools'
yum install newt-devel
yum install ncurses-devel
yum install openssl-devel
http://www.mail-archive.com/linux-il@cs.huji.ac.il/msg56916.html
Asterisk 1.4.x , for x > 21 , can be built to support either Zaptel or
DAHDI. This is a build-time decision. 1.6.0 and above only support
DAHDI. 1.4.21 and below only support Zaptel.
As a very practical test:
# strings /usr/sbin/asterisk | grep /dev | egrep 'zap|dahdi'
/dev/dahdi/timer
# lsmod | grep dahdi
dahdi_echocan_mg2 10248 120
dahdi 196552 4 dahdi_echocan_mg2,wct4xxp
crc_ccitt 6337 1 dahdi
# dahdi_hardware
pci:0000:05:08.0 wct4xxp+ d161:0420 Wildcard TE420 (4th Gen)
“build-essential” is a Debian/Ubuntu package that doesn’t exist in CentOS/RedHat/Fedora family of Linux distros. The closest equivalent is the “Development Tools” package group, install it by:
yum groupinstall 'Development Tools'
[Feb 9 16:34:51] ERROR[4907] asterisk.c: Asterisk has detected a problem with your Zaptel configuration and will shutdown for your protection. You have options:
1. You only have to compile Zaptel support into Asterisk if you need it. One option is to recompile without Zaptel support.
2. You only have to load Zaptel drivers if you want to take advantage of Zaptel services. One option is to unload zaptel modules if you don't need them.
3. If you need Zaptel services, you must correctly configure Zaptel.
artinya ….
3w1d: regxrule_stack_pop_RegXruleNumInfo: stack=0x62837354; count=2
3w1d: regxrule_stack_pop_RegXruleNumInfo: stack=0x62FBC020; count=1
3w1d: regxrule_stack_push_RegXruleNumInfo: stack=0x62FBC020; count=0
3w1d: regxrule_profile_translate: Error: invalid input; callinfo=0x62FB2BDC profilep=0x0 rtype=calling
3w1d: regxrule_profile_translate: Error: invalid input; callinfo=0x62FB2BDC profilep=0x0 rtype=redirect-called
3w1d: regxrule_profile_translate: Error: invalid input; callinfo=0x62FB2BDC profilep=0x0 rtype=called
3w1d: regxrule_stack_push_RegXruleNumInfo: stack=0x62FBC020; count=1
3w1d: regxrule_dp_translate: No profile found in peer 628 for outgoing direction
3w1d: regxrule_dp_translate: calling_number=99556686 calling_octet=0x0
called_number=6281381688486 called_octet=0x80
redirect_number= redirect_type=0 redirect_plan=0 redirect_PI=0 redirect_SI=0
3w1d: regxrule_vp_translate: No profile found in voice port or trunk group for outgoing direction
3w1d: regxrule_vp_translate: calling_number=99556686 calling_octet=0x0
called_number=6281381688486 called_octet=0x80
redirect_number= redirect_type=0 redirect_plan=0
what happened ?