webrtc2sip 安装(2016-03-16 11:16:03)

安装Doubanggo环境

 参考

Compiling and Installing WebRTC2SIP

Starting WebRTC2SIP as a service without screen or console

CentOS下编译webrtc2sip实战 - 常想一二 - ITeye博客

一般安装没有问题。

需要注意的几点问题:

1.获取代码的问题

但是由于墙的问题,访问googlecode.com不能SVN代码,只能git代码。(这个地方最抓狂)

获取Doubango代码 

git clone git://github.com/DoubangoTelecom/doubango doubango

获取webrtc2sip代码 

git clone git://github.com/DoubangoTelecom/webrtc2sip webrtc2sip

2.安装libsrtp的问题

在安装libsrtp的时候需要

git checkout v1.5.2

否则安装的是libsrtp2,而不是libsrtp,导致Doubango编译失败。

3.编译doubango的时候出现错误

tinyDAV/src/tdav_session_video.c 没有找到INT_MAX的定义。

可能有的库没有链接进来,找不到宏定义的原因,直接修改源代码

在/doubango/tinyDAV/include/tinydav/video/tdav_session_video.h 文件中增加头limits.h文件。

 ...

#ifndef TINYDAV_SESSION_VIDEO_H
#define TINYDAV_SESSION_VIDEO_H

#include

#include "tinydav_config.h"
#include "tinydav/tdav_session_av.h"
#include "tsk_timer.h"

...

 编译通过。

4. 编译Doubango配置项

 因为只关心语音部分,就没有链接任何视频库;

因为编译的是g729b,所以连接g729b

./autogen.sh

./configure --with-ssl --with-srtp --with-speexdsp

./configure --with-ssl --with-srtp --with-speexdsp --with-g729b

原始全配置命令

./configure --with-ssl --with-srtp --with-vpx --with-yuv --with-amr --with-speex --with-speexdsp --with-gsm --with-ilbc --with-g729 --with-ffmpeg 

./make

./make install

 4.openssl可以使用yum安装的开发库即可,不需要下载代码来编译

 此问题可能会引起运行webrtc2sip失败,报连接libssl.so失败,可能是应为64位或32位系统的原因(此处没有深入研究,只是卸载了编译的库,安装了系统自带库就可以了)。

yum install openssl-devel

5. sipml5的下载

GitHub - sipml5/sipml5: TESTING - replicated hourly from Google Code SVN using sync2git

git clone git://github.com/sipml5/sipml5 sipml5

5.需要yum的库

  1. $ sudo yum install \  
  2.   nginx \  
  3.   make \  
  4.   libogg-devel \  
  5.   libsqlite-devel \  
  6.   libxml2-devel \  
  7.   libjpeg-devel \  
  8.   openssl-devel \  
  9.   ncurses-devel \  
  10.   libuuid-devel \  
  11.   libtool \  
  12.   autoconf \  
  13.   subversion \  
  14.   git \  
  15.   cvs \  
  16.   wget \  
  17.   gcc \  
  18.   gcc-c++ \  
  19.   pkgconfig \  
  20.   nasm \  
  21.   patch \  
  22.   screen 
分享:
  • 6
    点赞
  • 9
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

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

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值