README

Welcome to the Celliax-Skypiax-Directoriax distribution.

More info, forums, etc: www.celliax.org

Following are notes on how to compile and install the various
components of the distribution.

Get the sources:
# svn checkout http://www.celliax.org:8081/svn/celliax/trunk celliax

Let's begin with how to install the complete distribution:

**************************************************************
*
* ASTERISK_12-CELLIAX-SKYPIAX_DIRECTORIAX complete installation
*
**************************************************************

==============================================================
1) To build celliax you need the last portaudio and speex libs
==============================================================

To build portaudio on Linux you need to install ALSA-dev libs
You can do it on Debian/Ubuntu with:
# apt-get install libasound2-dev
You can do it on Fedora/CentOS with:
# yum --nogpgcheck -y install alsa-lib-devel

Then:
# wget -c http://portaudio.com/archives/pa_snapshot.tar.gz
# tar xzf pa_snapshot.tar.gz
# cd portaudio/
# ./configure
# make && make install

# wget -c http://downloads.xiph.org/releases/speex/speex-1.2rc1.tar.gz
# tar xzf speex-1.2rc1.tar.gz
# cd speex-1.2rc1
# ./configure
# make && make install

==============================================================
2) To build skypiax on linux you need the libX11 dev
==============================================================
To build skypiax on Linux you need to install libX11-dev libs
You can do it on Debian/Ubuntu with:
# apt-get install libX11-dev
You can do it on Fedora/CentOS with:
# yum -y install libX11-devel

==============================================================
3) complete asterisk_12-celliax-skypiax-directoriax installation
==============================================================
All the files will be installed with /usr/local/asterisk as root directory
(eg: /usr/local/asterisk/etc/asterisk, /usr/local/asterisk/var/log/asterisk)

To obtain a working installation with asterisk-1.2,
works in linux and windows(cygwin):

# cd asterisk-1.2.revXX
# make clean
# make install
# make samples
# cd ../celliax_stuff/sh
# mkdir /usr/local/asterisk/usr/sbin
# cp * /usr/local/asterisk/usr/sbin/
# cd ..
# gcc -Wall portaudio_devlist.c -o portaudio_devlist -lportaudio
# cp portaudio_devlist /usr/local/asterisk/usr/sbin/

Only for Cygwin (you don't need this on Linux):
# cd dialog-1.0-20060221
# ./configure
# make
# cp dialog.exe /usr/local/asterisk/usr/sbin/

To execute (both Linux and Windows):

/usr/local/asterisk/usr/sbin/celliax

**************************************************************
* END of ASTERISK_12-CELLIAX-SKYPIAX complete installation
**************************************************************

**************************************************************
* CHAN_CELLIAX DRIVER FOR AN EXISTING ASTERISK INSTALLATION
* (works for Asterisk 1.2.xx 1.4.xx 1.6.0.xx series)
**************************************************************
==============================================================
1) To build celliax you need the last portaudio and speex libs
==============================================================

To build portaudio on Linux you need to install ALSA-dev libs
You can do it on Debian/Ubuntu with:
# apt-get install libasound2-dev
You can do it on Fedora/CentOS with:
# yum --nogpgcheck -y install alsa-lib-devel

Then:
# wget -c http://portaudio.com/archives/pa_snapshot.tar.gz
# tar xzf pa_snapshot.tar.gz
# cd portaudio/
# ./configure
# make && make install

# wget -c http://downloads.xiph.org/releases/speex/speex-1.2rc1.tar.gz
# tar xzf speex-1.2rc1.tar.gz
# cd speex-1.2rc1
# ./configure
# make && make install

==============================================================
2) build chan_celliax
==============================================================

go into the celliax_stuff/build directory
edit the Makefile
# make clean
# make

copy chan_celliax.so in the asterisk modules directory
copy celliax.conf in the asterisk configuration directory

edit modules.conf and put noload in front of *BOTH* chan_oss.so
AND chan_alsa.so

**************************************************************

* END CHAN_CELLIAX DRIVER FOR AN EXISTING ASTERISK INSTALLATION
**************************************************************

**************************************************************
* CHAN_SKYPIAX DRIVER FOR AN EXISTING ASTERISK INSTALLATION
* (works for Asterisk 1.2.xx 1.4.xx 1.6.0.xx series)
**************************************************************
==============================================================
1) To build skypiax on linux you need the libX11 dev
==============================================================
To build skypiax on Linux you need to install libX11-dev libs
You can do it on Debian/Ubuntu with:
# apt-get install libX11-dev
You can do it on Fedora/CentOS with:
# yum -y install libX11-devel
==============================================================
2) build chan_skypiax
==============================================================

go into the skypiax_stuff/build directory
edit the Makefile
# make clean
# make

copy chan_skypiax.so in the asterisk modules directory
copy skypiax.conf in the asterisk configuration directory

**************************************************************
* END CHAN_SKYPIAX DRIVER FOR AN EXISTING ASTERISK INSTALLATION
**************************************************************

**************************************************************
* APP_DIRECTORIAX FOR AN EXISTING ASTERISK INSTALLATION
* (works for Asterisk 1.2.xx 1.4.xx 1.6.0.xx series)
**************************************************************
==============================================================
1) build app_directoriax
==============================================================

go into the directoriax_stuff/build directory
edit the Makefile
# make clean
# make

copy app_directoriax.so in the asterisk modules directory
copy directoriax.conf and directoriax_parameters.conf in the asterisk configuration directory

**************************************************************
* END APP_DIRECTORIAX FOR AN EXISTING ASTERISK INSTALLATION
**************************************************************

Please report bugs at www.celliax.org/forum

Enjoy!