CallWeaver on Centos5
Back in time (20 more)
here is script to compile current callweaver on CentOS 5.x / RHEL 5.x
----- CALLWEAVER RPMS INFO------
if you don`t want to compile it you can use fedora epel, it`s already have callweaver precompiled in repository and you will save some time.
su -c 'rpm -Uvh http://download.fedora.redhat.com/pub/epel/5/i386/epel-release-5-3.noarch.rpm'
su -c 'yum -y install callweaver --enablerepo=epel-testing'
-----END OF CALLWEAVER RPMS INFO------
if you want to use callweaver from sources continue here -->
#set to host cpu +1 - here is for dual-core
export make_cpu=3
#prerequest. remove mysql&perl if not needed.
yum install httpd perl gcc bison flex speex-devel \
lame libogg-devel libtiff-devel make autoconfig \
automake sqlite-devel readline-devel pkgconfig \
libtool ncurses-devel mysql-devel mysql-server \
libcap-devel
mkdir /usr/src/callweaver_stuff
cd /usr/src/callweaver_stuff
#spandsp
wget "http://www.soft-switch.org/downloads/spandsp/spandsp-0.0.6pre2.tgz"
tar -xzf spandsp-*.tgz
cd spandsp-*
./configure --prefix=/usr/
make -j $make_cpu
make install
cd ..
#libvale
wget "http://www.soft-switch.org/downloads/vale/vale-0.0.2.tgz"
tar -xzf vale-*.tgz
cd vale-0.0.?
./configure --prefix=/usr/
make -j $make_cpu
make install
echo "/usr/lib " >>/etc/ld.so.conf
ldconfig
#callweaver
cd ..
wget "http://devs.callweaver.org/trunk_snapshots/callweaver-latest.tar.gz"
#or http://devs.callweaver.org/1.2_snapshots/callweaver-RC-latest.tar.gz
#or
tar -xzf callweaver-*.tar.gz
cd callweaver-*
groupadd callweaver
useradd callweaver -g callweaver
#remove here mysql if not needed. do ./configure --help and add all u needed
./configure --prefix=/ --with-res_config_mysql --with-app_sql_mysql \
--with-cdr_mysql --enable-mysql
make -j $make_cpu
make install
to auto load on startup
cp ./contrib/init.d/rc.redhat.callweaver /etc/init.d/callweaver
chmod a+x /etc/init.d/callweaver
chkconfig --add callweaver
find and change in /etc/init.d/callweaver patch-liek syntax – find line with – and replace with +
-[ -x /usr/sbin/callweaver ] || exit 0
+[ -x /sbin/callweaver ] || exit 0
-export LD_ASSUME_KERNEL=2.4.1
+#export LD_ASSUME_KERNEL=2.4.1
-DAEMON=/usr/sbin/callweaver
+DAEMON=/sbin/callweaver
-SAFE_CALLWEAVER=/usr/sbin/safe_callweaver
+SAFE_CALLWEAVER=/sbin/safe_callweaver
-#AST_USER="callweaver"
-#AST_GROUP="callweaver"
+AST_USER="callweaver"
+AST_GROUP="callweaver"
![Home wiki [home]](../../images/logo__q__1180520111.png)

RSS Feeds