mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-07-04 19:31:56 +00:00
Updated mod_opal to latest stable OPAL version.
Enhancements to trace logging, include threads and context ID. Changed default opal_conf.xml to allow more than just G.711 uLaw and not to clutter log file with debug logs. Added to opal_conf.xml item for "disable-transcoding". Updated build/buildopal.sh to use correct ./configure items for PTLib, allow for something other than standard install directory for PTLib/OPAL and be able to easily bind to a specific release of PTLib/OPAL.
This commit is contained in:
+55
-14
@@ -1,20 +1,61 @@
|
||||
#!/bin/sh
|
||||
|
||||
if [ -z "$1" ]; then
|
||||
INSTALLDIR=/usr/local
|
||||
else
|
||||
INSTALLDIR="$1"
|
||||
fi
|
||||
|
||||
if [ -z `which svn` ]; then
|
||||
echo "Need SVN installed!"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
uname -a | grep -qi bsd && MAKE=gmake || MAKE=make
|
||||
|
||||
#Locate our script, then go up one directory to be in FreeSWITCH root
|
||||
cd `dirname $0`
|
||||
cd ..
|
||||
FS_DIR=`pwd`
|
||||
|
||||
cd /root
|
||||
svn co https://opalvoip.svn.sourceforge.net/svnroot/opalvoip/ptlib/trunk ptlib
|
||||
cd ptlib
|
||||
./configure --prefix=/usr
|
||||
${MAKE}
|
||||
${MAKE} install
|
||||
export PKG_CONFIG_PATH=$INSTALLDIR/lib/pkgconfig
|
||||
|
||||
cd ..
|
||||
svn co https://opalvoip.svn.sourceforge.net/svnroot/opalvoip/opal/branches/v3_6 opal
|
||||
cd opal
|
||||
export PKG_CONFIG_PATH=/usr/lib/pkgconfig
|
||||
./configure --prefix=/usr
|
||||
|
||||
# Version and patch for PTLib and OPAL. These are almost always in lock
|
||||
# step so shoud be the same unless you really know ehat you are doing!
|
||||
# The PATCH should be set to a specific"snapshot release" when things
|
||||
# are nice and stable.
|
||||
|
||||
VERSION=10
|
||||
#PATCH=6
|
||||
|
||||
if [ -z "$PATCH" ]; then
|
||||
PTLIB_VERSION=branches/v2_$VERSION
|
||||
OPAL_VERSION=branches/v3_$VERSION
|
||||
else
|
||||
PTLIB_VERSION=tags/v2_${VERSION}_$PATCH
|
||||
OPAL_VERSION=tags/v3_${VERSION}_$PATCH
|
||||
fi
|
||||
|
||||
|
||||
cd $FS_DIR/libs
|
||||
svn co https://opalvoip.svn.sourceforge.net/svnroot/opalvoip/ptlib/$PTLIB_VERSION ptlib
|
||||
cd $FS_DIR/libs/ptlib
|
||||
# LDAP disabled due to conflict wit libs in spidermonkey
|
||||
./configure --disable-plugins --disable-openldap --prefix=$INSTALLDIR
|
||||
${MAKE}
|
||||
${MAKE} install
|
||||
cd ${FS_DIR}
|
||||
${MAKE} mod_opal-install
|
||||
sudo ${MAKE} install
|
||||
|
||||
cd $FS_DIR/libs
|
||||
svn co https://opalvoip.svn.sourceforge.net/svnroot/opalvoip/opal/$OPAL_VERSION opal
|
||||
cd $FS_DIR/libs/opal
|
||||
./configure --disable-plugins --prefix=$INSTALLDIR
|
||||
$MAKE
|
||||
sudo $MAKE install
|
||||
|
||||
echo "======================================"
|
||||
echo "PTLib/OPAL build and install completed"
|
||||
echo "======================================"
|
||||
|
||||
cd $FS_DIR
|
||||
$MAKE mod_opal-install
|
||||
|
||||
Reference in New Issue
Block a user