centos7编译rtpengine

install RTPEngine on Centos 7

yum install iptables-devel kernel-devel kernel-headers xmlrpc-c-devel
yum install “kernel-devel-uname-r == $(uname -r)” 这一步骤可以不执行,不用他的内核透传,因为这样的话centos版本太多,不利于普遍部署
yum install glib glib-devel gcc zlib zlib-devel openssl openssl-devel pcre pcre-devel libcurl libcurl-devel xmlrpc-c xmlrpc-c-devel
yum install libevent-devel glib2-devel json-glib-devel gperf libpcap-devel git hiredis hiredis-devel redis perl-IPC-Cmd
MariaDB ver 10+
yum install MariaDB-devel MariaDB-client MariaDB-shared
yum install mysql-devel
Spandsp
yum install spandsp-devel spandsp
epel
yum install epel-release
ffmpeg
rpm --import http://li.nux.ro/download/nux/RPM-GPG-KEY-nux.ro
rpm -Uvh http://li.nux.ro/download/nux/dextop/el7/x86_64/nux-dextop-release-0-1.el7.nux.noarch.rpm
check for Nux desktop repo by yum repolist
yum -y install ffmpeg ffmpeg-devel
Get The Latest Release Of RTPEngine Source From RTPEngine’s GitHub Repository:
cd /usr/local/src
git clone https://github.com/sipwise/rtpengine.git
Compile and install the daemon
cd /usr/local/src/rtpengine/daemon/
make
cp rtpengine /usr/sbin/rtpengine
Compile and install iptables extension
cd /usr/local/src/rtpengine/iptables-extension
make all
cp libxt_RTPENGINE.so /usr/lib64/xtables/.
Compile and install the kernel module xt_RTPENGINE
cd /usr/local/src/rtpengine/kernel-module
make
determine kernel release
uname -a
Linux kcgs2-ce1.cpe.syntec.co.uk 3.10.0-957.5.1.el7.x86_64 #1 SMP Fri Feb 1 14:54:57 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux
cp xt_RTPENGINE.ko /lib/modules/3.10.0-957.5.1.el7.x86_64/extra/xt_RTPENGINE.ko
depmod -a
load module at boot time
vi /etc/modules-load.d/rtpengine.conf (add the following lines)

load xt_RTPENGINE module 同上 选做

xt_RTPENGINE
load the module and check
modprobe xt_RTPENGINE
lsmod | grep xt_RTPENGINE
check files
ls -l /proc/rtpengine/control
ls -l /proc/rtpengine/list
add forwarding table with an ID=$TableID. $TableID is a number between 0-63
echo ‘add 0’ > /proc/rtpengine/control
Adding iptables rules to forward the incoming packets to xt_RTPENGINE module
iptables -I INPUT -p udp -j RTPENGINE --id $TableID
ip6tables -I INPUT -p udp -j RTPENGINE --id $TableID

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值