Successful CLI command line steps for Doubango - Webrtc2sip installation

690 views
Skip to first unread message

Chris Charles

unread,
Apr 30, 2014, 2:50:53 PM4/30/14
to discuss...@googlegroups.com
Just wanted to share this for others who are having issues installing and starting with Webrtc2sip / Doubango.

These steps are expanded from what is already posted on " http://webrtc2sip.org/technical-guide-1.0.pdf " , but with some extra steps in the correct order to help with a clean and error-free install.
The "Step" numbers below match the steps listed the linked PDF above.


Before Starting, these steps will only work with a current version of CentOS 6.5
(CentOS release 6.5 (Final))

If you are unsure of how current your OS is, I suggest you run these steps before starting the installation of Webrtc2sip / Doubango.

============================================================
PREREQUISITES:

Make sure you are using the most current repositories (repo) from CentOS.

Then (in CLI):

yum clean all
yum -y update
shutdown -r 0
cat /etc/redhat-release

============================================================



Step 1 

yum -y update 
yum -y install make libtool autoconf subversion git cvs wget libogg-devel gcc gcc-c++ pkgconfig 
yum -y install libsrtp.x86_64 
yum -y install libsrtp-devel.x86_64 

============================================================


Step 2

yum list '*openssl*'

(If you updated your CentOS properly, you should already have the latest OpenSSL installed with the fix for Heartbleed vulnerability)


============================================================


Step 3


yum list speex-devel 
yum -y install speex-devel.x86_64

============================================================


Step 4


yum list libvpx-devel 


(If you updated your CentOS properly, you should might already have a libvpx-devel package installed.  This package will not work, and you need to remove it and re-install a "fixed" version for CentOS 6.5 [libvpx version 1.3])



yum list '*yasm*' 

(If you updated your CentOS properly, you should might already have a yasm package installed.  This package will not work, and you need to remove it and re-install a newer version for libvpx version 1.3  [yasm version 1.2])

rpm -ivh yasm-1.2.0-1.el6.x86_64.rpm 
./configure --enable-shared --enable-pic && make && make install 



============================================================


Step 5



(You will need WHICH version 2.2 for libvpx version 1.3)


cd /tmp 
tar -xvzf /tmp/which-2.20.tar.gz 
cd /tmp/which-2.20 
./configure --prefix=/usr 
make && make install 



See notes here:  http://tukaani.org/xz/

(You will need XZ version 5.0.5 for libvpx version 1.3)


cd /tmp 
tar xvzf xz-5.0.5.tar.gz 
cd /tmp/xz-5.0.5/ 
./configure 
make 
make install 




cd /tmp 
xz -dvk libvpx-v1.3.0.tar.xz 
tar -xf libvpx-v1.3.0.tar 
cd /tmp/libvpx-v1.3.0/ 
sed -i 's/cp -p/cp/' build/make/Makefile 
chmod -v 644 vpx/*.h 
mkdir ../libvpx-build 
cd ../libvpx-build

(Run the next 3 lines as one command before returning to CLI prompt)

../libvpx-v1.3.0/configure --prefix=/usr \ 
--enable-shared \ 
--disable-static 

make 
make install 


============================================================


Step 6

(OMITTED -  not performed - codecs not needed in my case)

============================================================


Step 7

(OMITTED -  not performed - codecs not needed in my case)

============================================================


Step 8


tar -xvzf opus-1.0.2.tar.gz 
cd /tmp/opus-1.0.2 
./configure --with-pic --enable-float-approx && make && make install 



============================================================


Step 9


yum list gsm-devel 
yum -y install gsm-devel.x86_64 


============================================================

Step 9


yum list gsm-devel 
yum -y install gsm-devel.x86_64 


============================================================


Step 10


cd /tmp/g729b 
./autogen.sh && ./configure --enable-static --disable-shared 
make && make install 


============================================================


Step 11


cd /tmp/ilbc 
awk -f extract.awk rfc3951.txt 
./autogen.sh && ./configure 
make && make install 


============================================================


Step 12


cd /tmp 
tar -xvjf last_x264.tar.bz2 

(the output directory may be difference depending on the version and date)

cd x264-snapshot-20121201-2245 
./configure --enable-shared --enable-pic && make && make install 

============================================================


Step 13


git clone git://source.ffmpeg.org/ffmpeg.git /tmp/ffmpeg 
cd /tmp/ffmpeg 
# grap a release branch 
git checkout n1.2 
# configure source code 
./configure \ 
--extra-cflags="-fPIC" \ 
--extra-ldflags="-lpthread" \ 
--enable-pic --enable-memalign-hack --enable-pthreads \ 
--enable-shared --disable-static \ 
--disable-network --enable-pthreads \ 
--disable-ffmpeg --disable-ffplay --disable-ffserver --disable-ffprobe \ 
--enable-gpl \ 
--disable-debug 
make && make install 


============================================================


Step 14



(You will need create this file in the correct location, or else complie will fail:  touch /usr/include/vpx/vpx_config.h)

cd /tmp/doubango 
make clean 
./autogen.sh 
./configure --with-ssl --with-srtp --with-speexdsp 
make && make install 


============================================================


Step 15


cd /tmp 
yum list '*libxml2*' 

(there might already be a version of libxml already installed with your CentOS upgrade)

export PREFIX=/opt/webrtc2sip 
cd /tmp/webrtc2sip/ 
./autogen.sh 
./configure --prefix=$PREFIX 
make clean 
make 
make install 
cp -f ./config.xml $PREFIX/sbin/config.xml 
cd /opt/webrtc2sip/sbin 
./webrtc2sip --help 
./webrtc2sip --version 


============================================================








Reply all
Reply to author
Forward
0 new messages