Koozali.org: home of the SME Server
Obsolete Releases => SME VoIP (Asterisk, SAIL etc) => Topic started by: apmuthu on December 19, 2009, 04:17:46 PM
-
Looks like all the rpms are haywire for a fresh install.
What is the best way to install a fresh stable SARK_2.3.2-19 on a stable SME-7.4?
Did the following with reboots between each step:
Installed SME 7.4 on a new machine.
Included the ATrpms repo from the SME Wiki (http://wiki.contribs.org/ATrpms).
Hit the restorecon SME 7.4 Bug (http://bugs.contribs.org/show_bug.cgi?id=5432):
Updating : kudzu ##################### [120/379]
Updating : samba-common [121/379]
warning: /etc/samba/smb.conf created as /etc/samba/smb.conf.rpmnew
Updating : samba-common ##################### [121/379]
/var/tmp/rpm-tmp.52376: line 7: restorecon: command not found
error: %post(samba-common-3.0.33-0.18.el4_8.1.i386) scriptlet failed, exit status 127
Updating : qmail ##################### [122/379]
Addressed it by checking and installing:
yum install policycoreutils
# uname -r
2.6.9-89.0.16.EL
# rpm -qf /sbin/restorecon
policycoreutils-1.18.1-4.13
# rpm -q samba
samba-3.0.33-0.18.el4_8.1
Followed instructions at the SARK-SAIL Wiki (http://sarkpbx.com/twiki/bin/view/Main/DocChapter03c) choosing the ATrpms repo for the DAHDI rpms (as they were absent in the smecontribs) :
yum install dahdi-linux-kmdl-`uname -r` --enablerepo=atrpms
yum install dahdi-tools --enablerepo=atrpms
yum install asterisk --enablerepo=smecontribs
Hit a wall with the last yum command:
# yum install asterisk --enablerepo=smecontribs
.
.
.
Resolving Dependencies
--> Populating transaction set with selected packages. Please wait.
---> Package asterisk.i386 1:1.4.25.1-78.el4 set to be updated
--> Running transaction check
--> Processing Dependency: libasound.so.2 for package: asterisk
--> Processing Dependency: libasound.so.2(ALSA_0.9.0rc4) for package: asterisk
--> Processing Dependency: libvorbis.so.0 for package: asterisk
--> Processing Dependency: libtonezone.so.2.0 for package: asterisk
--> Processing Dependency: libogg.so.0 for package: asterisk
--> Processing Dependency: libasound.so.2(ALSA_0.9) for package: asterisk
--> Processing Dependency: libspeex.so.1 for package: asterisk
--> Processing Dependency: libvorbisenc.so.2 for package: asterisk
--> Processing Dependency: libpri.so.1.4 for package: asterisk
--> Processing Dependency: libodbc.so.1 for package: asterisk
--> Restarting Dependency Resolution with new changes.
--> Populating transaction set with selected packages. Please wait.
---> Package libvorbis.i386 1:1.1.0-3.el4_8.3 set to be updated
---> Package libpri1.i386 1:1.4.10-23.el4 set to be updated
---> Package libogg.i386 2:1.1.2-1 set to be updated
---> Package alsa-lib.i386 0:1.0.6-5.RHEL4 set to be updated
---> Package unixODBC.i386 0:2.2.11-1.RHEL4.1 set to be updated
---> Package speex.i386 0:1.2-0.11.rc1.el4 set to be updated
--> Running transaction check
--> Processing Dependency: libtonezone.so.2.0 for package: asterisk
--> Finished Dependency Resolution
Error: Missing Dependency: libtonezone.so.2.0 is needed by package asterisk
-
Looks like the SARK wiki at http://sarkpbx.com/twiki/bin/view/Main/DocChapter03c should be updated for the install instructions:
yum install policycoreutils
yum install mysql-devel
yum -y update
signal-event post-upgrade; signal-event reboot
yum install dahdi-linux-kmdl-`uname -r` --enablerepo=atrpms
yum install dahdi-tools --enablerepo=atrpms
# Installed Packages
# dahdi-linux.i386 2.2.0.2-65.el4
# dahdi-linux-kmdl-2.6.9-89.0.16.EL.i686 2.2.0.2-65.el4
# dahdi-tools.i386 1:2.2.0-63.el4
yum install libpri --enablerepo=atrpms
# Installed: libpri.i386 1:1.4.10.2-25.el4
yum install asterisk14 --enablerepo=atrpms
# Installed: asterisk14.i386 1:1.4.26.3-87.el4
yum install asterisk-addons14 --enablerepo=atrpms
# Installed: asterisk-addons14.i386 1:1.4.9-24.el4
The mysql-devel needs to be installed at the beginning as otherwise we will get the following errors in the asterisk/messages log:
ERROR[6472] res_config_mysql.c: MySQL RealTime: Failed to connect database server on (err 2002). Check debug for more info.
WARNING[6472] res_config_mysql.c: MySQL RealTime: Couldn't establish connection. Check debug.
NOTICE[6472] config.c: Registered Config Engine mysql
And this works so far....
-
The next steps for SAIL integration:
cd /usr/src
Download sox-12.17.7-3.i386.rpm from one of the links at
http://rpm.pbone.net/index.php3/stat/4/idpl/11416247/com/sox-12.17.7-3.i386.rpm.html
and upload to the /usr/src folder and execute:rpm -ivh sox-12.17.7-3.i386.rpm
Download sox-devel-12.17.7-3.i386.rpm from one of the links at
http://rpm.pbone.net/index.php3?stat=26&dist=44&size=172747&name=sox-devel-12.17.7-3.i386.rpm
and upload to the /usr/src folder and execute:rpm -ivh sox-devel-12.17.7-3.i386.rpm
Install SAIL dependancy (wiki (http://sarkpbx.com/twiki/bin/view/Main/DocChapter03c) states -Uvh to use same script for upgrades as well):
wget http://sarkpbx.com/sail/sail-2.3.2/perl-File-ReadBackwards-1.04-1.2.el4.rf.noarch.rpm
rpm -ivh perl-File-ReadBackwards-1.04-1.2.el4.rf.noarch.rpm
Now install SAIL (TFTP Sever gets installed with it):
wget http://sarkpbx.com/sail/sail-2.3.2/sail-2.3.2-19.noarch.rpm
yum localinstall -y --enablerepo=base sail-2.3.2-19.noarch.rpm
# Installed: sail.noarch 0:2.3.2-19
Final Step:
/sbin/e-smith/signal-event console-save
signal-event post-upgrade; signal-event reboot
-
Notes on the above install:
Generally we can find the CentOS Release version from
cat /etc/issue
In a OpenVZ KVM, /etc/issue is a 0 byte file and hence the command fails. We can use the following workaround:
rpm -qa | grep -i "centos-release"
This will currently show:warning: only V3 signatures can be verified, skipping V4 signature
centos-release-4-8
warning: only V3 signatures can be verified, skipping V4 signature
Earlier versions of SARK had many files and folders chown-ed by asterisk:asterisk - notably /etc/asterisk/*. In this version, in the initial install, the number of such entities has been limited to:
# find / -user asterisk
/var/log/asterisk
/var/log/asterisk/cdr-custom
/var/log/asterisk/cdr-csv
/var/spool/asterisk
/var/spool/asterisk/system
/var/spool/asterisk/dictate
/var/spool/asterisk/tmp
/var/spool/asterisk/meetme
/var/spool/asterisk/voicemail
/var/spool/asterisk/voicemail/default
/var/spool/asterisk/voicemail/default/1234
/var/spool/asterisk/voicemail/default/1234/INBOX
/var/spool/asterisk/sms
/var/spool/asterisk/sms/mtrx
/var/spool/asterisk/sms/motx
/var/spool/asterisk/monitor
/var/run/asterisk
find: /proc/6646/task/6646/fd/4: No such file or directory
find: /proc/6646/fd/4: No such file or directory
-
VoiceMail notes on above install:
There are 2 monitor folders:
- /home/selintra/var/spool/asterisk/monitor assigned to root user
- /var/spool/asterisk/monitor assigned to asterisk user
It is the latter that we need to assign in the
SME Manager -> Global Settings -> GENERAL SETTINGS -> Path to recording directory
The default LOGGING -> VLIB folders will be:
/var/log /var/lib/mysql /var/lib/dhcp /var/lock /var/qmail /var/spool /var/tmp /tmp /tftpboot
-
And the final SME Manager -> Global Settings page should look like:
(http://www.chrishonline.com/files/SARK_v2.3.2-19-global.png)
-
This is good work
We will update the Wiki. If you, or anyone else, wishes to help with docs then you can opbtain Wiki update privileges by sending an email to admin@aelintra.com
Kind Regards
S