Asterisk 1.8 installation on Centos 6.2

I'm trying to install Asterisk 1.8 server on Centos 6.2 Linode server,

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

What instruction is it trying to execute? Anything else interesting in the gdb?

Are you compiling this on the Linode in question, or using binaries from elsewhere?

Sounds like this bug:

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.

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.

I use asterisk on a Linode 1024 in London. I find the sound quality a bit spotty due to minor intermittent packet delays.

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.

After wasting alot of time and money, even switching to another VPS because of this problem,

I'm happy to say I'm back, solutions is so simple:

disable BUILD_NATIVE on the menuconfig

I installed Asterisk 1.8 on linode with pv-grub-x86_32 I do not get any errors when installing, but extensions do not register. What can be wrong? On the sip phone I get the error registration timeout.

[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?

thank you! Finally got my 1.8 installation working.

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?

Reply

Please enter an answer
Tips:

You can mention users to notify them: @username

You can use Markdown to format your question. For more examples see the Markdown Cheatsheet.

> I’m a blockquote.

I’m a blockquote.

[I'm a link] (https://www.google.com)

I'm a link

**I am bold** I am bold

*I am italicized* I am italicized

Community Code of Conduct