Asterisk install

From sailpbx
Jump to: navigation, search

Installing Asterisk using Digium supplied RPMS

To install the Digium rpms you must first define the Digium repos to SME Server. At the linux command prompt type the following (it's probably best to cut and paste the two multi-line commands):-

/sbin/e-smith/db yum_repositories set asterisk-current repository \
Name 'CentOS-$releasever - Asterisk - Current' \<br/>
BaseURL 'http://packages.asterisk.org/centos/$releasever/current/$basearch/' \
EnableGroups no \
GPGCheck no \
GPGKey http://packages.asterisk.org/keys/175E41DF.pub \
Visible no \
Exclude freetype,htop,iptraf,rsync,syslinux \
status disabled

/sbin/e-smith/db yum_repositories set digium-current repository \
Name 'CentOS-$releasever - Digium - Current' \
BaseURL 'http://packages.digium.com/centos/$releasever/current/$basearch/' \
EnableGroups no \
GPGCheck no \
Visible no \
Exclude freetype,htop,iptraf,rsync,syslinux \
status disabled

signal-event yum-modify


This should generate the necessary repos in /etc/yum.smerepos.d/sme-base.repo
You can now go ahead and install asterisk with the following command...

yum install asterisk14 asterisk14-configs asterisk14-voicemail dahdi-linux dahdi-tools asterisk-sounds-extra-en-ulaw \
asterisk-sounds-moh-opsound-ulaw --enablerepo=asterisk-current --enablerepo=digium-current

This command will queue some 20 or so rpms for installation. It may also include a new kernel if your kernel is older than the one that Asterisk wants. If a new kernel is installed then you will need to reboot your system to pick it up. If you intend to install SARK 3.2 or higher then you should install Asterisk 1.8 (just substitute "18" wherever the example uses "14")

This install sequence is also covered in the Digium install guide (the Digium guide installs Asterisk16, but everything else is much the same). You can find the guide at http://www.asterisk.org/downloads/yum

If you wish to run mysql CDR records you may also wish to install the asterisk addons package...

yum install asterisk14-addons-mysql --enablerepo=asterisk-current