Asterisk 1.8 installation on Centos 6.2
I have a strange problem: when running asterisk -cvvvv i'm getting an error: "Illegal instruction (core dumped)" and asterisk is failed to run, I have checked the internet and everyone are saying this is an hardware issue,
I have found the instructions on Linode on changing the kernel and grub, but they are mostly out dated, and used for old Ubuntu systems, I was able to follow them eventually but the same problem always remain,
spending over 15 hours on this yesterday trying different releases of asterisk 1.8, also I tried doing it on Ubuntu systems, on 64 and 32 bit systems, but nothing works,
I have installed many Asterisk systems in my life but never faced something like that.
I'm really hoping I can move my stuff to Linode,
please help.
Thank you.
8 Replies
Are you compiling this on the Linode in question, or using binaries from elsewhere?
https://issues.asterisk.org/jira/browse/ASTERISK-20128
That's for KVM not XEN but the same bug appears to affect both. (Linode uses xen) There are workarounds on that page.
Yes it sounds exactly like this bug! -
I will try installing 1.8.12.2 and will see how it goes,
Thanks.
It's fine for home use but I'd not put a corporate PBX on there.
@trixvoice:
I'm installing from sources,
Yes it sounds exactly like this bug! -
https://issues.asterisk.org/jira/browse/ASTERISK-20128 I will try installing 1.8.12.2 and will see how it goes,
Thanks.
FWIW, I use asterisk from EPEL on my home machine (in a KVM instance). Seems to work OK for google-talk/SIP integration
Name : asterisk Relocations: (not relocatable)
Version : 1.8.20.0 Vendor: Fedora Project
Release : 1.el6 Build Date: Fri Jan 18 15:02:33 2013
Install Date: (not installed) Build Host: buildvm-24.phx2.fedoraproject.org
Group : Applications/Internet Source RPM: asterisk-1.8.20.0-1.el6.src.rpm
Size : 10856382 License: GPLv2
Signature : RSA/8, Mon Jan 21 20:27:53 2013, Key ID 3b49df2a0608b895
Packager : Fedora Project
URL : http://www.asterisk.org/
Summary : The Open Source PBX
Description :
Asterisk is a complete PBX in software. It runs on Linux and provides
all of the features you would expect from a PBX and more. Asterisk
does voice over IP in three protocols, and can interoperate with
almost all standards-based telephony equipment using relatively
inexpensive hardware.
I'm happy to say I'm back, solutions is so simple:
disable BUILD_NATIVE on the menuconfig
[general]
context=default
allowguest=no
allowtransfer=no
realm=asterisk
udpbindaddr=0.0.0.0:5060
tcpenable=no
tcpbindaddr=0.0.0.0:5060
srvlookup=yes
pedantic=yes
maxexpiry=3600
minexpiry=60
defaultexpiry=120
mwiexpiry=3600
maxforwards=70
qualifyfreq=120
qualifygap=200
disallow=all
allow=ulaw
allow=alaw
mohinterpret=default
mohsuggest=default
language=es
relaxdtmf=no
sendrpid = yes
prematuremedia=no
progressinband=no
useragent=voip.ms
promiscredir=no
dtmfmode = rfc2833
videosupport=yes
maxcallbitrate=384
callevents=yes
alwaysauthreject=yes
rtptimeout=60
rtpholdtimeout=300
allowsubscribe=yes
subscribecontext=subscribe
notifyringing=yes
notifyhold=yes
callcounter = yes
t38pt_udptl = yes,fec,maxdatagram=400
faxdetect=yes
directmedia=no
sdpsession=A2Billing
sdpowner=a2billing
;externaddr=IPserviodor
;localnet=192.168.1.0/255.255.255.0
[3000]
type=friend
secret=a2b854
host=dynamic
nat=yes
context=phones
disallow=all
allow=alaw
allow=ulaw
qualify=yes
[2500]
type=friend
secret=xxxxxx
host=dynamic
nat=yes
context=phones
disallow=all
allow=alaw
allow=ulaw
qualify=yes
Any idea?
related question since you mentioned you are using grub. I'm using x86-64 grub and linode always boots me into grubdom and I have to manually issue the configfile command to get it to boot. any clues how to get it to boot from the linode console without me having to issue a lish terminal to manually run the configfile command?