第一章 webrtc2sip项目环境说明
1. 操作系统:CentOS6.x 64位版本
2. FreeSwitch版本号:1.2.x(注意:FreeSwitch最新版本有媒体协商错误问题)
3. FFmepg版本号:1.2.x(注意:FFmepg最新版本函数名及参数有修改,会造成编译错误)
4. 其他软件版本号:最新
5. 浏览器:Chrome, Android 平台Chrome Beta
6. 测试电话:Yealink VP2009,Linphone for Android(含H264版本)
7. 编译,安装,执行软件都需要root权限
第二章 webrtc2sip项目编译安装
2.1 编译安装
注意:此过程需要root权限
参考资料:https://code.google.com/p/webrtc2sip/wiki/Building_Source_v2_0
Building_Source_v2_0
Building Source v2.0
Featured, Phase-Support, Phase-Deploy Updated Jul 5, 2013 by boss...@yahoo.fr
This section explains how to build the project using CentOS 64 but could be easily adapted for any Linux, Windows or OS X.
webrtc2sip gateway depends on Doubango IMS Framework v2.0.
We highly recommend reading the Technical guide.
Preparing the system
Building Doubango IMS Framework and 3rd-party libraries
Building libsrtp
Building OpenSSL
Building libspeex and libspeexdsp
Building YASM
Building libvpx
Building libyuv
Building libopus
Building opencore-amr
Building libgsm
Building g729
Building iLBC
Building x264
Building FFmpeg
Building Doubango
Building webrtc2sip and 3rd-party libraries
Installing libxml2
Building webrtc2sip
Preparing the system
sudo yum update
sudo yum install make libtool autoconf subversion git cvs wget libogg-devel gcc gcc-c++
Building Doubango IMS Framework and 3rd-party libraries
Doubango is an IMS framework and contains all signaling protocols (SIP, SDP, WebSocket…) and media engine (RTP stack, audio/video codecs…) required by webrtc2sip gateway.
The first step is to checkout Doubango 2.0 source code:
svn checkout http://doubango.googlecode.com/svn/branches/2.0/doubango doubango
Building libsrtp
libsrtp is required.
git clone https://github.com/cisco/libsrtp/
cd libsrtp
CFLAGS="-fPIC" ./configure --enable-pic && make && make install
Building OpenSSL
OpenSSL is required if you want to use the RTCWeb Breaker module or Secure WebSocket transport (WSS). OpenSSL version 1.0.1 is required if you want support for DTLS-SRTP.
This section is only required if you don’t have OpenSSL installed on your system or using version prior to 1.0.1 and want to enable DTLS-SRTP.
A quick way to have OpenSSL may be installing openssl-devel package but this version will most likely be outdated (prior to 1.0.1). Anyway, you can check the version like this:
openssl version
To build OpenSSL:
wget http://www.openssl.org/source/openssl-1.0.1c.tar.gz
tar -xvzf openssl-1.0.1c.tar.gz
cd openssl-1.0.1c
./config shared --prefix=/usr/local --openssldir=/usr/local/openssl && make && make install
Building libspeex and libspeexdsp
libspeex (audio codec) an libspeexdsp (audio processing and jitter buffer) are optional. It’s highly recommended to enable libspeexdsp.
You can install the devel packages:
sudo yum install speex-devel
Or build the source by yourself:
wget http://downloads.xiph.org/releases/speex/speex-1.2beta3.tar.gz
tar -xvzf speex-1.2beta3.tar.gz
cd speex-1.2beta3
./configure --disable-oggtest --without-libogg && make && make install
Building YASM
YASM is only required if you want to enable VPX (VP8 video codec) or x264 (H.264 codec).
wget http://www.tortall.net/projects/yasm/releases/yasm-1.2.0.tar.gz
tar -xvzf yasm-1.2.0.tar.gz
cd yasm-1.2.0
./configure && make && make install
Building libvpx
Date: December 1, 2012
libvpx adds support for VP8 and is optional but highly recommended if you want support for video
1. 操作系统:CentOS6.x 64位版本
2. FreeSwitch版本号:1.2.x(注意:FreeSwitch最新版本有媒体协商错误问题)
3. FFmepg版本号:1.2.x(注意:FFmepg最新版本函数名及参数有修改,会造成编译错误)
4. 其他软件版本号:最新
5. 浏览器:Chrome, Android 平台Chrome Beta
6. 测试电话:Yealink VP2009,Linphone for Android(含H264版本)
7. 编译,安装,执行软件都需要root权限
第二章 webrtc2sip项目编译安装
2.1 编译安装
注意:此过程需要root权限
参考资料:https://code.google.com/p/webrtc2sip/wiki/Building_Source_v2_0
Building_Source_v2_0
Building Source v2.0
Featured, Phase-Support, Phase-Deploy Updated Jul 5, 2013 by boss...@yahoo.fr
This section explains how to build the project using CentOS 64 but could be easily adapted for any Linux, Windows or OS X.
webrtc2sip gateway depends on Doubango IMS Framework v2.0.
We highly recommend reading the Technical guide.
Preparing the system
Building Doubango IMS Framework and 3rd-party libraries
Building libsrtp
Building OpenSSL
Building libspeex and libspeexdsp
Building YASM
Building libvpx
Building libyuv
Building libopus
Building opencore-amr
Building libgsm
Building g729
Building iLBC
Building x264
Building FFmpeg
Building Doubango
Building webrtc2sip and 3rd-party libraries
Installing libxml2
Building webrtc2sip
Preparing the system
sudo yum update
sudo yum install make libtool autoconf subversion git cvs wget libogg-devel gcc gcc-c++
Building Doubango IMS Framework and 3rd-party libraries
Doubango is an IMS framework and contains all signaling protocols (SIP, SDP, WebSocket…) and media engine (RTP stack, audio/video codecs…) required by webrtc2sip gateway.
The first step is to checkout Doubango 2.0 source code:
svn checkout http://doubango.googlecode.com/svn/branches/2.0/doubango doubango
Building libsrtp
libsrtp is required.
git clone https://github.com/cisco/libsrtp/
cd libsrtp
CFLAGS="-fPIC" ./configure --enable-pic && make && make install
Building OpenSSL
OpenSSL is required if you want to use the RTCWeb Breaker module or Secure WebSocket transport (WSS). OpenSSL version 1.0.1 is required if you want support for DTLS-SRTP.
This section is only required if you don’t have OpenSSL installed on your system or using version prior to 1.0.1 and want to enable DTLS-SRTP.
A quick way to have OpenSSL may be installing openssl-devel package but this version will most likely be outdated (prior to 1.0.1). Anyway, you can check the version like this:
openssl version
To build OpenSSL:
wget http://www.openssl.org/source/openssl-1.0.1c.tar.gz
tar -xvzf openssl-1.0.1c.tar.gz
cd openssl-1.0.1c
./config shared --prefix=/usr/local --openssldir=/usr/local/openssl && make && make install
Building libspeex and libspeexdsp
libspeex (audio codec) an libspeexdsp (audio processing and jitter buffer) are optional. It’s highly recommended to enable libspeexdsp.
You can install the devel packages:
sudo yum install speex-devel
Or build the source by yourself:
wget http://downloads.xiph.org/releases/speex/speex-1.2beta3.tar.gz
tar -xvzf speex-1.2beta3.tar.gz
cd speex-1.2beta3
./configure --disable-oggtest --without-libogg && make && make install
Building YASM
YASM is only required if you want to enable VPX (VP8 video codec) or x264 (H.264 codec).
wget http://www.tortall.net/projects/yasm/releases/yasm-1.2.0.tar.gz
tar -xvzf yasm-1.2.0.tar.gz
cd yasm-1.2.0
./configure && make && make install
Building libvpx
Date: December 1, 2012
libvpx adds support for VP8 and is optional but highly recommended if you want support for video