CallWeaver on Centos5
Back in time (14 more)
here is script to compile current callweaver on CentOS 5.0
#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.4pre18.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
-#AST_USER="callweaver"
-#AST_GROUP="callweaver"
+AST_USER="callweaver"
+AST_GROUP="callweaver"
![Home wiki [home]](/images/logo.png?1180520111)
RSS Feeds