opensips 安装 rtpproxy 教程

来源:互联网 发布:蜂窝移动数据设置 编辑:程序博客网 时间:2024/05/21 04:22

转载请注明来自:黄朝辉的博客

1.前言

版本信息:opensips-2.2.2

2.安装rtpproxy

git clone -b master https://github.com/sippy/rtpproxy.gitcd rtpproxygit -C rtpproxy submodule update --init --recursive./configuremake

可能会出现的问题

cc1: error: unrecognized command line option “-Werror=implicit-function-declaration”

解决办法:
修改/rtpproxy/src下的Makefile文件,去掉 “-Werror=implicit-function-declaration”所在的句子
make无问题后继续。

make install

即可完成安装。
启动:

rtpproxy -F -l 1xx.xx.xx.xx4 -s udp:1xx.xx.xx.xx4:12221 -d DBUG:LOG_LOCAL5

说明:
1. ip地址为本机的外网地址;
2. 选择一个未被占用的端口,这里选择12221端口。

3.将rtpproxy与opensips整合

1.修改/usr/local/etc/opensips/ 下的 opensips.cfg文件。
#### NAT modules"整块完成后增加如下内容

loadmodule "rtpproxy.so"modparam("rtpproxy", "rtpproxy_sock", "udp:1xx.xx.xx.xx4:12221") # CUSTOMIZE ME

2.重启opensips即可。

4.注意

  1. 需要先启动rtpproxy,再启动opensips
  2. 出现问题可查看日志文件:/var/log/messages

5.参考文献

  1. https://github.com/sippy/rtpproxy
  2. http://www.cnblogs.com/bjzhanghao/archive/2013/02/13/2910903.html
  3. https://github.com/Izib/opensips-mediaproxy/blob/master/Install/package/opensip_rtpproxy.rm
1 0
原创粉丝点击