webrtc2sip项目说明

第一章 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
  • 0
    点赞
  • 3
    收藏
    觉得还不错? 一键收藏
  • 3
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 3
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值