Here is a procedure for the installation of Sail 2.5 and Asterisk 1.4.31 from rpms on SME 7.5. No warranty, but it works for me. This, by the way, is not my work. I have used some of the posts in this forum fort guidance to which has been added generous assistance from Jeff at Sark. There still is one step to finalise, that is to apply rules at the firewall and only allow traffic from known IP address (the sip provider or providers) on port 5060. Any help with this would be very appreciated, I am about to take a few days off and time is beating me...
# Update to 7.5 with yum
You should have the 2.6.9-89.0.25 kernel as of 17 June 2010.
#Set atrpms repo:
/sbin/e-smith/db yum_repositories set atrpms repository \
Name 'atrpms - EL4' \
BaseURL 'http://dl.atrpms.net/el4-$basearch/atrpms/stable' \
EnableGroups no \
GPGCheck yes \
GPGKey http://ATrpms.net/RPM-GPG-KEY.atrpms \
Visible no \
Exclude clamav,spamassassin,libselinux,perl-HTML-Parser,lm_sensors,\
perl-IO-stringy,perl-XML-Parser,razor-agents,libgcrypt,rpm-python,\
libxml2,zlib,gnupg,libxml2-python,yum,module-init-tools,rpm,gettext,\
librpm4,glib2,perl-libwww-perl,perl-Convert-ASN1,beecrypt,fetchmail,\
libacl,libtool-ltdl,popt,libgpg-error,freetype,perl-MIME-tools,mutt,\
gd,perl-TimeDate,librpm4.4 \
status disabled
Followed by:
expand-template /etc/yum.conf
signal-event post-upgrade; signal-event reboot
#Install Asterisk:
yum -y install libpri asterisk14 asterisk-addons14 dahdi-linux dahdi-tools dahdi-linux-kmdl-`uname -r` --enablerepo=atrpms
Installed: asterisk-addons14.i386 1:1.4.11-26.el4 asterisk14.i386 1:1.4.31-91.el4 dahdi-linux.i386 0:2.3.0-68.el4 dahdi-linux-kmdl-2.6.9-89.0.25.EL.i686 0:2.3.0-68.el4 dahdi-tools.i386 1:2.3.0-66.el4 libpri.i386 1:1.4.10.2-25.el4 Dependency Installed: alsa-lib.i386 0:1.0.6-5.RHEL4 asterisk-core-sounds-en-gsm.noarch 0:1.4.19-61 asterisk-moh-opsound-wav.noarch 0:2.03-56 libgcrypt.i386 0:1.2.0-3 libgpg-error.i386 0:1.0-1 libgsm1.i386 0:1.0.13-2.el4 libiksemel3.i386 0:1.4-2_2.el4 libogg.i386 2:1.1.2-1 libpri1.i386 1:1.4.10.2-25.el4 libradiusclient-ng2.i386 0:0.5.6-0.el4 libtonezone2.i386 1:2.3.0-66.el4 libvorbis.i386 1:1.1.0-3.el4_8.3 speex.i386 0:1.2-0.11.rc1.el4 unixODBC.i386 0:2.2.11-1.RHEL4.1
#check version:
asterisk -rvvv
=Asterisk 1.4.31, Copyright (C) 1999 - 2010 Digium, Inc. and others.
#Create a directory and download Sark rpms (I have used UK sounds since in Australia):
wget http://sarkpbx.com/sail/sail-2.4.1/perl-File-ReadBackwards-1.04-1.2.el4.rf.noarch.rpm
wget http://sarkpbx.com/sail/sail-2.5.1/sail-2.5.1-10.noarch.rpm
wget http://sarkpbx.com/sail/languagepack/Asterisk-1.4.28+/sme-ast-en-uk-gpl-sounds-1.2.0-4.noarch.rpm
# Install Sail 2.5
yum -y install perl-File-ReadBackwards-1.04-1.2.el4.rf.noarch.rpm --enablerepo=base
yum -y install sail-2.5.1-10.noarch.rpm --enablerepo=base
Installed: sail.noarch 0:2.5.1-10 Dependency Installed: nmap.i386 2:3.70-1 perl-Bit-Vector.i386 0:6.3-3 perl-Date-Calc.i386 0:5.3-9 sox.i386 0:12.17.5-3 tftp-server.i386 0:0.39-3.el4 xinetd.i386 2:2.3.13-4.5.el4
# Finalise installation:
signal-event console-save
followed by:
signal-event post-upgrade; signal-event reboot
# Special one-off routine: do a full Initialise (& click trash) / Regen / Commit / Stop [in PCI Cards]
And Reboot.
# Set Global settings (basic)
- Country identifier
- THRUPUT
- Log CDR to Mysql = yes
- Voicemail instruction = yes
- Emergency (xxx)
- VOIP settings - limit outbound calls as applicable
# Create a trunk
# Set a generic route (OK for Australia)
_8XXX. _9XXX. _0XXX. _13XX
# Create an extension
# Initialize CDR (do not forget this...)
Stop and start SAIL in PCI cards panel
#Set language for UK sounds (all sounds files are in: /usr/share/asterisk/sounds/)
yum localinstall sme-ast-en-uk-gpl-sounds-1.2.0-4.noarch.rpm
Followed by:
signal-event post-upgrade; signal-event reboot
you must set the language files in the .conf files you wish to use them for. The UK English directory is called en-gb.
So, to make asterisk use it, add the following line in the sip.conf header (in Headers); -
language=en-gb
[general]
context=mainmenu
maxexpirey=180
defaultexpirey=160
limitonpeers=yes
notifybusy=yes
notifyringing=yes
notifyhold=yes
allowguest=no
alwaysauthreject=yes
language=en-gb <-------Here!
Note: You should also do this in the iax.conf header and dahdi headers if you have regular phone lines attached
#Restart asterisk [do asterisk -rvvv then type "restart now" at the CLI - ignore " "]