Koozali.org: home of the SME Server

sme 7.5 and sail ?

Offline fpausp

  • *
  • 728
  • +0/-0
sme 7.5 and sail ?
« 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
« Last Edit: May 28, 2010, 08:46:24 PM by fpausp »
Viribus unitis

Offline gippsweb

  • *****
  • 232
  • +0/-0
    • Wots I.T.?
Re: sme 7.5 and sail ?
« Reply #1 on: May 29, 2010, 07:55:33 AM »
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.

Offline fpausp

  • *
  • 728
  • +0/-0
Re: sme 7.5 and sail ?
« Reply #2 on: May 29, 2010, 08:22:58 PM »
1. Test with sme 7.5 (fresh installation) in a vm (vmware)

I just made two little scripts, maybe someone can verify it:


Code: [Select]
#!/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


Code: [Select]
#!/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
« Last Edit: May 29, 2010, 08:25:23 PM by fpausp »
Viribus unitis

Offline fpausp

  • *
  • 728
  • +0/-0
Re: sme 7.5 and sail ?
« Reply #3 on: May 30, 2010, 12:45:17 PM »
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:

Code: [Select]

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'

Viribus unitis

Offline SARK devs

  • *****
  • 2,806
  • +1/-0
    • http://sarkpbx.com
Re: sme 7.5 and sail ?
« Reply #4 on: May 31, 2010, 07:39:26 PM »
OK - lets see...

Code: [Select]
[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.

Quote
Which release should I install?

http://sarkpbx.com/twiki/bin/view/Main/DocReleaseStatus



Offline fpausp

  • *
  • 728
  • +0/-0
Re: sme 7.5 and sail ?
« Reply #5 on: June 01, 2010, 10:20:16 AM »
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 ?
Viribus unitis

Offline SARK devs

  • *****
  • 2,806
  • +1/-0
    • http://sarkpbx.com
Re: sme 7.5 and sail ?
« Reply #6 on: June 01, 2010, 04:49:39 PM »
It works but there is an error in the rpm setup.

go to

headers->musiconhold.conf

change 

Code: [Select]
directory=>/var/lib/asterisk/moh
to

Code: [Select]
directory=>/usr/share/asterisk/moh
Restart asterisk (not really necessary but it doesn't hurt)

Kind Regards

S

Offline SARK devs

  • *****
  • 2,806
  • +1/-0
    • http://sarkpbx.com
Re: sme 7.5 and sail ?
« Reply #7 on: June 01, 2010, 10:24:24 PM »
fixed in source in 2.5.1-10

Kind Regards

s