Home
Callweaver and Sangoma installation PDF Print E-mail
User Rating: / 2
PoorBest 
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.

  • Prerequirements:

  1. Fresh installation of CenOS 5.2
  2. Access to root account
  • Software to be installed:

  1. Zaptel 1.4.12.1
  2. SpanDSP 0.0.4
  3. Vale 0.0.2
  4. Wanpipe 3.3.14
  5. Callweaver 1.2.0.1
  • First we need to install dependencies (additional packeges). To do this run following command with root privilige:

  1. 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:

  1. mkdir /usr/src/callweaver_stuff
  2. cd /usr/src/callweaver_stuff

 

        Now follow the 9 easy steps to make your PBX installed and running

  • STEP 1 - Zaptel installation:

  1. wget http://downloads.digium.com/pub/zaptel/zaptel-1.4.12.1.tar.gz
  2. tar zxf zaptel-1.4.12.1.tar.gz
  3. cd zaptel-.1.4.12.1/
  4. ./configure
  5. make
  6. make install
  7. make config
  8. cd ..
  • STEP 2 - SpanDSP installation:

  1. wget http://www.soft-switch.org/downloads/spandsp/spandsp-0.0.4pre18.tgz
  2. tar xzf spandsp-0.0.4pre18.tgz
  3. cd spandsp-0.0.4/
  4.  ./configure
  5. make
  6. make install
  7. cd ..
  • STEP 3 - VALE installation:

  1. wget http://www.soft-switch.org/downloads/vale/vale-0.0.2.tgz
  2. tar xzf vale-0.0.2.tgz
  3. cd vale-0.0.1/
  4. ./configure
  5. make
  6. make install
  7. cd ..
  • STEP 4 -Wanpipe installation:

  1. mkdir /etc/asterisk/
  2. wget ftp://ftp.sangoma.com/linux/current_wanpipe/wanpipe-3.3.14.tgz
  3. tar zxf  wanpipe-3.3.14.tgz
  4. cd wanpipe-3.3.14
  5. ./Setup install
    1.  Would you like to install WANPIPE now? [y] (y/n) y
    2. Please select (1,2,3,4,5,6,7,8 or 9) [Default: 1] 2
    3. Please select working zaptel directory [1-2] [m]: [ENTER]
    4. Visually confirm that driver compilation was successfull (y/n) y
    5. Press 4x {ENTER]  default  installation patches
    6. Would you like to install WANPIPE start-up scripts? (y/n) y
    7. Would you like to auto-execute  ztcfg after wanrouter start? (y/n) y
    8. Woud you like to configure wanpipe devices for ZAPTEL? (y/n) y
    9. Woud you like to generate /etc/asterisk/zapata.cony YES
    10. <Configure card  - visit wiki.sangoma.com if you need additional information>
  6. cp /etc/asterisk/zapata.conf /etc/callweaver/
  • STEP 5 - Callweaver installation:

  1. wget http://devs.callweaver.org/release/callweaver-1.2.0.1.tgz
  2. tar xzf  callweaver-1.2.0.1.tgz
  3. cd callweaver-1.2.0.1
  4. ./configure --prefix=/ --with-res_config_mysql --with-app_sql_mysql --with-cdr_mysql --enable-mysql
  5. make
  6. make install
  • STEP 6 - Modify, copy, and activate init.d script for automatic callweaver start-up upon system reboot:

  1. 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:

  1. cp /usr/src/callweaver_stuff/callweaver-1.2.0.1/channels/.libs/chan_zap.so /var/lib/callweaver/
  2. cp /usr/src/callweaver_stuff/spandsp-0.0.4/src/.libs/libspandsp.so.0 /lib/callweaver/
  • STEP 8 - Run callweaver:

  1. service callweaver start
Powered By Joomla Tags

Last Updated ( Friday, 14 November 2008 11:41 )
 
 
English (Angielski)