SME 8.0 + Asterisk 1.8 + SAIL 3.1.1-22

From sailpbx
Jump to: navigation, search

This is an Unofficial SAIL Install / Update method and is supported only by PlaNetTel / GNUAcademy only when time permits. Apmutha 15:56, 10 February 2013 (UTC)

Download ISO

The combined SME 8 / Asterisk 1.8.7.0-2 / SAIL 3.1.1-22 ISO is available as of 2013-02-06 for download at:

http://sailpbx.com/iso/SME8FA18V311-22.iso

This ISO has not had it's CentOS / SME updates done uptodate, but rather matched to the kernel version their kmod-dahdi and dahdi-linux drivers were compiled with.

Install from ISO

  • Install normally as outlined in the Wiki.
  • A normal whitebox generic i386 (32 bit) install is envisaged in this article.
  • Login to https://<HOST>/server-manager as admin with the password set during install and enable Remote Access / Secure Shell with restrictions as appropriate to enable the use of an SFTP client like FileZilla and SSH client like PuTTY (Windows) or Terminal (Linux).
  • The display prompt will show the contents of /etc/issue:
AsteriskNOW 2.0.0

The IP address of your AsteriskNOW system is XXX.XXX.XXX.XXX

<HOST> login: _

Future versions of SAIL v3.1.1 should be changed to indicate SAIL instead of AsteriskNOW in the message above.

The installed Linux version will show something like:

# uname -a
Linux <HOST> 2.6.18-308.13.1.el5 #1 SMP Tue Aug 21 17:10:06 EDT 2012 i686 i686 i386 GNU/Linux

Asterisk Version will show:

# asterisk -v
Asterisk 1.8.7.0, Copyright (C) 1999 - 2011 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.
=========================================================================
Asterisk already running on /var/run/asterisk/asterisk.ctl.  Use 'asterisk -r' to connect.

DAHDI Versions will show matching kernel version rpms installed - kmod-dahdi*, and dahdi*

# rpm -qa | grep asterisk
asterisk-sounds-core-en-alaw-1.4.21-1_centos5
asterisknow-version-2.0.0-4_centos5
asterisk18-addons-core-1.8.7.0-2_centos5
asterisk18-addons-mysql-1.8.7.0-2_centos5
asterisk18-dahdi-1.8.7.0-2_centos5
asterisk-sounds-moh-opsound-alaw-0.0-4_centos5
asterisk18-core-1.8.7.0-2_centos5
asterisk18-voicemail-1.8.7.0-2_centos5
asterisk18-doc-1.8.7.0-2_centos5
asterisk18-configs-1.8.7.0-2_centos5
asterisk18-1.8.7.0-2_centos5

# rpm -qa | grep dahdi
dahdi-firmware-tc400m-MR6.12-1_centos5
kmod-dahdi-linux-fwload-vpmadt032-2.6.1-1_centos5.2.6.18_308.13.1.el5
asterisk18-dahdi-1.8.7.0-2_centos5
dahdi-firmware-te820-1.76-1_centos5
dahdi-firmware-oct6114-128-1.05.01-1_centos5
dahdi-firmware-hx8-2.06-1_centos5
dahdi-tools-2.4.1-68.el5
kmod-dahdi-linux-2.6.1-1_centos5.2.6.18_308.13.1.el5
dahdi-firmware-2.0.4-1_centos5
dahdi-firmware-oct6114-256-1.05.01-1_centos5
dahdi-firmware-vpmoct032-1.12.0-1_centos5
dahdi-firmware-oct6114-064-1.05.01-1_centos5
dahdi-linux-2.6.1-1_centos5

# rpm -qa | grep sail
sail-3.1.1-22
smesailenvast18-1.0.0-1
smesailenv-1.0.0-30

Update SME

yum update

As on 2013-02-10, the 149 package update downloads of 222 MB will include a new kernel:

kernel-2.6.18-348.1.1.el5.i686.rpm

This will break the asterisk and dahdi installs. The latest Asterisk 1.8 and Digium 1.8 repos have matched packages for the latest Asterisk v1.8 and digium but the kmod-dahdi drivers are lagging at kernel version centos5.2.6.18_308.24.1.el5. Since the release of centOS v5.9, the centOS v5.8 repo is no longer symlinked to CentOS5 folder but CentOS 5.8 updates repo contains the kernel and is installed with:

# yum -y install kernel-2.6.18-308.24.1.el5
wget http://isoredirect.centos.org/centos/5.8/updates/i386/RPMS/kernel-2.6.18-308.24.1.el5.i686.rpm
rpm -ivh kernel-2.6.18-308.24.1.el5.i686.rpm

touch 10main_nokernel
echo exclude=kernel* > 10main_nokernel
mv 10main_nokernel /etc/e-smith/templates/etc/yum.conf/
expand-template /etc/yum.conf

yum -y update

# Only if it got installed
yum -y remove kernel-2.6.18-348.1.1.el5

yum clean all
signal-event post-upgrade; signal-event reboot

All yum downloads are cached at:

/var/cache/yum/*/packages/

For the more brash of you, check that the system booted off the new kernel and then remove the old kernel that came with the ISO install:

cat /boot/grub/grub.conf
uname -a
  Linux box002 2.6.18-308.24.1.el5 #1 SMP Tue Dec 4 17:42:30 EST 2012 i686 i686 i386 GNU/Linux
yum -y remove kernel-2.6.18-308.13.1.el5

If anything breaks like the sarkhpe AGI binary, then revert it back from the CentOD 5.8 repo and set the /boot/grub/grub.conf to reflect the default kernel as the later kernel-2.6.18-308.24.1.el5.

Update Asterisk and DAHDI

  • Edit /etc/yum.smerepos.d/sme-base.repo to include the asterisk-1.8 and digium-1.8 repos or just upload the file there. It will get reverted on next boot by default SME template extraction.
  • Remove certain existing addons, update asterisk, dahdi and install new addons with:
rpm -e asterisk18-addons-core asterisk18-addons-mysql

yum --enablerepo=asterisk-1.8 \
     --enablerepo=asterisk-current \
     --enablerepo=digium-1.8 \
     --enablerepo=digium-current \
 update asterisk* dahdi* kmod-dahdi*

yum --enablerepo=asterisk-1.8 \
     --enablerepo=asterisk-current \
 install asterisk-addons-core* asterisk-addons-mysql*

  • 7 new config files suffixed with rpmnew appear in the /etc/asterisk folder after the update of which selected content from 3 are used to update the existing entries. Upload the changed files to the said folder - mind the include needed for SAIL in their last line. The rpmnew file in the clamav folder can be ignored as it automatically updates each day.
# updatedb
# locate *.rpmnew

## Files that have no changes
/etc/asterisk/features.conf.rpmnew
/etc/asterisk/iax.conf.rpmnew
/etc/asterisk/queues.conf.rpmnew
/etc/asterisk/sip.conf.rpmnew

## Files that changed slightly
/etc/asterisk/chan_dahdi.conf.rpmnew
/etc/asterisk/manager.conf.rpmnew
/etc/asterisk/sip_notify.conf.rpmnew

## Ignore change
/var/clamav/daily.cvd.rpmnew

Now perform a rebood:

signal-event reboot

Final Versions

rpm -qa | grep asterisk

asterisknow-version-2.0.0-4_centos5
asterisk-dahdi-1.8.20.0-1_centos5
asterisk-sounds-moh-opsound-alaw-0.0-4_centos5
asterisk-sounds-core-en-gsm-1.4.21-1_centos5
asterisk-addons-core-1.8.20.0-1_centos5
asterisk-core-1.8.20.0-1_centos5
asterisk-configs-1.8.20.0-1_centos5
asterisk-addons-mysql-1.8.20.0-1_centos5
asterisk-voicemail-1.8.20.0-1_centos5
asterisk-sounds-core-en-alaw-1.4.21-1_centos5
asterisk-1.8.20.0-1_centos5
asterisk-doc-1.8.20.0-1_centos5

rpm -qa | grep dahdi

dahdi-firmware-tc400m-MR6.12-1_centos5
asterisk-dahdi-1.8.20.0-1_centos5
dahdi-firmware-te820-1.76-1_centos5
dahdi-tools-2.4.1-68.el5
dahdi-firmware-oct6114-256-1.05.01-1_centos5
dahdi-firmware-vpmoct032-1.12.0-1_centos5
dahdi-firmware-oct6114-064-1.05.01-1_centos5
dahdi-linux-2.6.1-1_centos5
dahdi-firmware-hx8-2.06-1_centos5
dahdi-firmware-2.0.4-1_centos5
kmod-dahdi-linux-fwload-vpmadt032-2.6.1-1_centos5.2.6.18_308.24.1.el5
kmod-dahdi-linux-2.6.1-1_centos5.2.6.18_308.24.1.el5
dahdi-firmware-oct6114-128-1.05.01-1_centos5

rpm -qa | grep sail

smesailenv-1.0.0-30
sail-3.1.1-22
smesailenvast18-1.0.0-1

rpm -qa | grep sox

sox-12.18.1-1.el5_5.1

Update SAIL 3.1.1 Build

cd /usr/src
wget http://sailpbx.com/sail/sail-3.1/sail-3.1.1-27.noarch.rpm
yum localinstall sail-3.1.1-27.noarch.rpm
signal-event reboot