Koozali.org: home of the SME Server
Obsolete Releases => SME VoIP (Asterisk, SAIL etc) => Topic started by: fpausp on May 28, 2010, 08:41:44 PM
-
Dear Sailteam,
I have a few questions about the installation and update.
1) I like to know how i should install sail (what version) and of course asterisk with all dependencies on a fresh installed sme 7.5 (without contribs installed) system ?
and
2) How should I update my sme 7.4 system with sail-2.3.2-12 and a tdm400p. Should I upgrade sail to the maybe 2.5.x version ? How can i update the asterisk, dahdi ... stuff ?
Best
fpausp
-
I'm running SAIL 2.4.1-23 and Asterisk 1.4.25.1 and everything appears to be working fine after upgrading to 7.5
Granted I'm not running a Digium card atm, due to having Virtualised the system, but thats another story altogether......
Only the next few days will tell, if it works out OK, I'll rollout the update to our clients.
-
1. Test with sme 7.5 (fresh installation) in a vm (vmware)
I just made two little scripts, maybe someone can verify it:
#!/bin/bash
# Sail-Install Script Part 1 - 29.05.2010
/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
expand-template /etc/yum.conf
signal-event post-upgrade; signal-event reboot
exit 0
#!/bin/bash
# Sail-Install Script Part 2 - 29.05.2010
yum -y install libpri asterisk14 asterisk-addons14 dahdi-linux dahdi-tools dahdi-linux-kmdl-`uname -r` --enablerepo=atrpms
wget http://sarkpbx.com/sail/sail-2.4.1/perl-File-ReadBackwards-1.04-1.2.el4.rf.noarch.rpm
yum -y install perl-File-ReadBackwards-1.04-1.2.el4.rf.noarch.rpm --enablerepo=base
wget http://sarkpbx.com/sail/sail-2.5.1/sail-2.5.1-7.noarch.rpm
yum -y install sail-2.5.1-7.noarch.rpm --enablerepo=base
signal-event console-save
signal-event post-upgrade; signal-event reboot
exit 0
-
2. Test update from 7.4 to 7.5, I reinstalled asterisk, dahdi ... and sail-2.5.1-7.
I have now problems to bring the tdm400p to work:
Loading DAHDI hardware modules:
wctdm: [ OK ]
An incomming call looks like this:
fpausp*CLI>
-- Starting simple switch on 'DAHDI/4-1'
-- Executing [s@mainmenu:1] GotoIf("DAHDI/4-1", "1?DAHDI4-1|1") in new stack
-- Goto (mainmenu,DAHDI4-1,1)
-- Executing [DAHDI4-1@mainmenu:1] AGI("DAHDI/4-1", "selintra|Inbound|DAHDI4-1|DAHDI4-1") in new stack
-- Launched AGI Script /usr/share/asterisk/agi-bin/selintra
-- AGI Script Executing Application: (Set) Options: (CDR(userfield)=DAHDI4-1)
[May 30 12:38:53] WARNING[7446]: chan_dahdi.c:1776 dahdi_enable_ec: Unable to enable echo cancellation on channel 4 (No such device)
[May 30 12:38:53] ERROR[7446]: utils.c:968 ast_carefulwrite: write() returned error: Broken pipe
-- AGI Script selintra completed, returning 0
-- Sent into invalid extension 'DAHDI4-1' in context 'extensions' on DAHDI/4-1
-- Executing [i@extensions:1] PlayTones("DAHDI/4-1", "congestion") in new stack
-- Executing [i@extensions:2] Hangup("DAHDI/4-1", "") in new stack
== Spawn extension (extensions, i, 2) exited non-zero on 'DAHDI/4-1'
-- Executing [h@extensions:1] Hangup("DAHDI/4-1", "") in new stack
== Spawn extension (extensions, h, 1) exited non-zero on 'DAHDI/4-1'
-- Hungup 'DAHDI/4-1'
-
OK - lets see...
[May 30 12:38:53] ERROR[7446]: utils.c:968 ast_carefulwrite: write() returned error: Broken pipe
-- AGI Script selintra completed, returning 0
...means that Asterisk can't find the SAIL agi. This is because you can't run sail-2.5 on Asterisk less than 1.4.29. This is due to some big changes which Digium made to the Asterisk directory structure. Either back off sail to 2.4.x or upgrade Asterisk to 1.4.29 or 1.4.30. Either will fix your issue.
Which release should I install?
http://sarkpbx.com/twiki/bin/view/Main/DocReleaseStatus
-
Hi,
I did a reinstall of asterisk, dahdi ... Asterisk 1.4.31 is currently running. The incomoming calls are working now, the only one I miss at the moment is the moh. Is it working with sail-2.5.1-7 ?
-
It works but there is an error in the rpm setup.
go to
headers->musiconhold.conf
change
directory=>/var/lib/asterisk/moh
to
directory=>/usr/share/asterisk/moh
Restart asterisk (not really necessary but it doesn't hurt)
Kind Regards
S
-
fixed in source in 2.5.1-10
Kind Regards
s