Re: [Asterisk-Users] Xorcom Rapid 0.9.0

2004-12-10 Thread Tzafrir Cohen
Hi

On Thu, Dec 09, 2004 at 02:12:13PM +0200, Tzafrir Cohen wrote:
> Hi
> 
> Version 0.9.0 of Xorcom Rapid Debian/GNU/Linux/Asterisk has just been
> released.
> 
> Main changes:
> 

[snip]

> * Automatic detection of the most common Zaptel cards

[snip]

Astrisk will simply abort with an incorrect Zaptel channel
configuration, as opposed to other channels that are optional. This
makes automatic detection of Zaptel cards even more important.

We wrote some detection scripts that do a great job of auto-detecting
the hardware we currently have. They are part of our modified Zaptel
package and we hope to push those changes to Debain and/or Asterisk. 

I'd like to give more details about the scripts. I would appreciate any
feedback from others here.

The basic script is /usr/sbin/genzaptelconf . It attempts to generate a
working /etc/zaptel.conf or /etc/asterisk/zapata.conf according to what
it sees on /proc/zaptel .

Originally it was just a glorified awk script without much logic inside.
However from the data in /proc/zaptel we have no way to tell if a
channel is available or not. The card we tested it with was a TDM400P
with just one FXS module.

Our simple test to tell if the channel is a working module or not was to
try to open it and read one byte from it (head -c1 http://xorcom.com/   |vim is a mutt's best friend|
mailto:[EMAIL PROTECTED]  +---+
___
Asterisk-Users mailing list
[EMAIL PROTECTED]
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


[Asterisk-Users] Xorcom Rapid 0.9.0

2004-12-09 Thread Tzafrir Cohen
Hi

Version 0.9.0 of Xorcom Rapid Debian/GNU/Linux/Asterisk has just been
released.

Main changes:

* A decent version of Asterisk/Zaptel (1.0.2) is provided
* Includes a better default configuration
* Automatic detection of the most common Zaptel cards
* Contains more optional software (apache, MySQL, Webmin and others) - 
  available via menu

You can get it from: 

http://updates.xorcom.com/iso/
http://updates.xorcom.com/iso/rapid.iso
http://updates.xorcom.com/iso/RAPID.txt


We seek input in a number of areas. Specifically, our genzaptelconf and
zaptel-detect scripts for generating zaptel.conf and zapata.conf
automatically could use feedback.



Updating from previous version:
Due to some initial packaging issues the upgrade from version 0.5.2 is
much more complicated than 'apt-get dist-upgrade' . 

The following procedure should be able to upgrade Xorcom Rapid 0.5.2 to
the current version. However it was only tested on a clean install.


# disable the original source (this adds a '#' before the apt source of
# the local CD. This is only required because of the versions of the 
# zaptel packages.
sed -i -e 's|^deb.*/var/cache/rapid.*|# &|' /etc/apt/sources.list
apt-get update
apt-get remove zaptel zaptel-modules-2.6.7-1-386 zaptel-modules-2.4.27-1-386
# press Enter for "yes"
apt-get dist-upgrade
# press Enter for "yes"
# here may come some configuration questions from some scripts
apt-get remove perl-modules xfree86-common ipchains rapid-tasks
echo base_exten=400 >/etc/default/zaptel.conf
apt-get install zaptel zaptel-modules-2.4.27-1-386
/usr/share/rapid-scripts/zaptel-detect-wrapper

# nice, but you can live without: replace login on consoles 5, 6 with
# rapid-menu-s currently in the modified /usr/lib/base-config/apt-setup
sed -i -e \
  's|^\([56]\):.*$|\1:2345:respawn:/usr/bin/rapid-menu  \&/dev/tty\1|' \
 /etc/inittab.real
telinit -q
chvt 1
# return to console 1. also cress ctrl-c or "restart" to restart
# the menu.
# you will still need to login and logout once on consoles 5 and 6 to
# get the menus there


We hope that we have now set the files and versioned packages better,
so next time the upgrade would be simpler.



-- 
Tzafrir Cohen   +---+
http://xorcom.com/  |vim is a mutt's best friend|
mailto:[EMAIL PROTECTED] +---+
___
Asterisk-Users mailing list
[EMAIL PROTECTED]
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users