|
Callweaver and Sangoma installation |
|
|
|
|
Written by Krzysztof Konopka
|
|
Tuesday, 14 October 2008 11:32 |
Callweaver and Sangoma installation Sponsored by:  Required Level: novice, accomplished, adept, master Article is a set of instruction to make Callweaver PBX with any Sangoma PCI card up and running. - Fresh installation of CenOS 5.2
- Access to root account
Software to be installed:
- Zaptel 1.4.12.1
- SpanDSP 0.0.4
- Vale 0.0.2
- Wanpipe 3.3.14
- Callweaver 1.2.0.1
First we need to install dependencies (additional packeges). To do this run following command with root privilige:
- yum install gcc bison libtiff-devel flex readline-devel libtermcap-devel gcc-c++ ncurses-devel kernel-devel subversion libcap-devel openssl-devel speex speex-devel sqlite-devel
create directory where all the listed software will be downloaded:
- mkdir /usr/src/callweaver_stuff
- cd /usr/src/callweaver_stuff
Now follow the 9 easy steps to make your PBX installed and running STEP 1 - Zaptel installation:
- wget http://downloads.digium.com/pub/zaptel/zaptel-1.4.12.1.tar.gz
- tar zxf zaptel-1.4.12.1.tar.gz
- cd zaptel-.1.4.12.1/
- ./configure
- make
- make install
- make config
- cd ..
STEP 2 - SpanDSP installation:
- wget http://www.soft-switch.org/downloads/spandsp/spandsp-0.0.4pre18.tgz
- tar xzf spandsp-0.0.4pre18.tgz
- cd spandsp-0.0.4/
- ./configure
- make
- make install
- cd ..
STEP 3 - VALE installation:
- wget http://www.soft-switch.org/downloads/vale/vale-0.0.2.tgz
- tar xzf vale-0.0.2.tgz
- cd vale-0.0.1/
- ./configure
- make
- make install
- cd ..
STEP 4 -Wanpipe installation:
- mkdir /etc/asterisk/
- wget ftp://ftp.sangoma.com/linux/current_wanpipe/wanpipe-3.3.14.tgz
- tar zxf wanpipe-3.3.14.tgz
- cd wanpipe-3.3.14
- ./Setup install
- Would you like to install WANPIPE now? [y] (y/n) y
- Please select (1,2,3,4,5,6,7,8 or 9) [Default: 1] 2
- Please select working zaptel directory [1-2] [m]: [ENTER]
- Visually confirm that driver compilation was successfull (y/n) y
- Press 4x {ENTER] default installation patches
- Would you like to install WANPIPE start-up scripts? (y/n) y
- Would you like to auto-execute ztcfg after wanrouter start? (y/n) y
- Woud you like to configure wanpipe devices for ZAPTEL? (y/n) y
- Woud you like to generate /etc/asterisk/zapata.cony YES
- <Configure card - visit wiki.sangoma.com if you need additional information>
- cp /etc/asterisk/zapata.conf /etc/callweaver/
STEP 5 - Callweaver installation:
- wget http://devs.callweaver.org/release/callweaver-1.2.0.1.tgz
- tar xzf callweaver-1.2.0.1.tgz
- cd callweaver-1.2.0.1
- ./configure --prefix=/ --with-res_config_mysql --with-app_sql_mysql --with-cdr_mysql --enable-mysql
- make
- make install
STEP 6 - Modify, copy, and activate init.d script for automatic callweaver start-up upon system reboot:
- sed -e '/if.*SAFE_CALLWEAVER.*then/, +2d' -e '/# Start daemons/a\\tchmod 777 /dev/zap/*' -e '/export LD_ASSUME_KERNEL=2.4.1/c\#export LD_ASSUME_KERNEL=2.4.1' -e '/#AST_USER="callweaver"/c\AST_USER="callweaver"' -e '/#AST_GROUP="callweaver"/c\AST_GROUP="callweaver"' -e '/DAEMON=\/usr\/sbin\/callweaver/c\DAEMON=\/sbin\/callweaver' -e '/\/usr\/sbin\/callweaver.*exit 0/c\[ -x /sbin/callweaver ] || exit 0' /usr/src/callweaver_stuff/callweaver-1.2.0.1/contrib/init.d/rc.redhat.callweaver > /etc/init.d/callweaver ; chmod a+x /etc/init.d/callweaver ; chkconfig --add callweaver
STEP 7 - Copy library for chan_zap:
- cp /usr/src/callweaver_stuff/callweaver-1.2.0.1/channels/.libs/chan_zap.so /var/lib/callweaver/
- cp /usr/src/callweaver_stuff/spandsp-0.0.4/src/.libs/libspandsp.so.0 /lib/callweaver/
- service callweaver start
|
|
Last Updated ( Friday, 14 November 2008 11:41 )
|