<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
font-size:11.0pt;
font-family:"Calibri",sans-serif;}
h2
{mso-style-priority:9;
mso-style-link:"Überschrift 2 Zchn";
mso-margin-top-alt:auto;
margin-right:0cm;
mso-margin-bottom-alt:auto;
margin-left:0cm;
font-size:18.0pt;
font-family:"Calibri",sans-serif;
font-weight:bold;}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:blue;
text-decoration:underline;}
span.berschrift2Zchn
{mso-style-name:"Überschrift 2 Zchn";
mso-style-priority:9;
mso-style-link:"Überschrift 2";
font-family:"Calibri Light",sans-serif;
color:#2F5496;
mso-fareast-language:DE;}
span.gmail-apple-tab-span
{mso-style-name:gmail-apple-tab-span;}
span.E-MailFormatvorlage21
{mso-style-type:personal-reply;
font-family:"Calibri",sans-serif;
color:windowtext;}
.MsoChpDefault
{mso-style-type:export-only;
font-family:"Calibri",sans-serif;
mso-fareast-language:EN-US;}
@page WordSection1
{size:612.0pt 792.0pt;
margin:70.85pt 70.85pt 2.0cm 70.85pt;}
div.WordSection1
{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="DE" link="blue" vlink="purple" style="word-wrap:break-word">
<div class="WordSection1">
<p class="MsoNormal"><span lang="EN-GB" style="mso-fareast-language:EN-US">(changing list to sr-users)<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB" style="mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB" style="mso-fareast-language:EN-US">Hello,<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB" style="mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB" style="mso-fareast-language:EN-US">Do you see an iptables rule belonging to the rtpengine module? If you do a test call, are the packet counters increased on this iptables rule?<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB" style="mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB" style="mso-fareast-language:EN-US">In the log message I see another error related to SRTP, not anything related to the kernel forwarding mode.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB" style="mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB" style="mso-fareast-language:EN-US">Cheers,<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB" style="mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB" style="mso-fareast-language:EN-US">Henning<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB" style="mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB" style="mso-fareast-language:EN-US">-- <o:p>
</o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB" style="mso-fareast-language:EN-US">Henning Westerholt –
</span><span style="mso-fareast-language:EN-US"><a href="https://skalatan.de/blog/"><span lang="EN-GB" style="color:#0563C1">https://skalatan.de/blog/</span></a></span><span lang="EN-GB" style="mso-fareast-language:EN-US"><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB" style="mso-fareast-language:EN-US">Kamailio services –
</span><span style="mso-fareast-language:EN-US"><a href="https://gilawa.com/"><span lang="EN-GB" style="color:#0563C1">https://gilawa.com</span></a></span><span style="mso-fareast-language:EN-US">
<span lang="EN-GB"><o:p></o:p></span></span></p>
<p class="MsoNormal"><span lang="EN-GB" style="mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<div style="border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0cm 0cm 0cm">
<p class="MsoNormal" style="margin-left:35.4pt"><b>From:</b> sr-dev <sr-dev-bounces@lists.kamailio.org>
<b>On Behalf Of </b>Suresh Talasaniya<br>
<b>Sent:</b> Monday, March 1, 2021 11:03 AM<br>
<b>To:</b> sr-dev@lists.kamailio.org<br>
<b>Subject:</b> [sr-dev] RTPEngine - No support for kernel packet forwarding available<o:p></o:p></p>
</div>
<p class="MsoNormal" style="margin-left:35.4pt"><o:p> </o:p></p>
<div>
<p class="MsoNormal" style="margin-left:35.4pt">Hello folks,<o:p></o:p></p>
<div>
<p class="MsoNormal" style="margin-left:35.4pt"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:35.4pt">RTPEngine - No support for kernel packet forwarding available, please find the below information/logs. <o:p></o:p></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:35.4pt"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:35.4pt">Mar 1 01:46:45 sp201 rtpengine[14973]: INFO: [9ca2e714-95d0-9662-82e9-e89659024d66]: [control] Received command 'offer' from
<a href="http://127.0.0.1:52657">127.0.0.1:52657</a><br>
Mar 1 01:46:45 sp201 rtpengine[14973]: NOTICE: [9ca2e714-95d0-9662-82e9-e89659024d66]: [core] Creating new call<br>
Mar 1 01:46:45 sp201 rtpengine[14973]: <b><i>ERR: [9ca2e714-95d0-9662-82e9-e89659024d66]: [crypto] Failed to init DTLS connection: srtp unknown protection profile</i></b><br>
Mar 1 01:46:45 sp201 rtpengine[14973]: ERR: [9ca2e714-95d0-9662-82e9-e89659024d66]: [crypto] Failed to init DTLS connection: srtp unknown protection profile<br>
Mar 1 01:46:45 sp201 rtpengine[14973]: ERR: [9ca2e714-95d0-9662-82e9-e89659024d66]: [crypto] Failed to init DTLS connection: srtp unknown protection profile<br>
Mar 1 01:46:45 sp201 rtpengine[14973]: ERR: [9ca2e714-95d0-9662-82e9-e89659024d66]: [crypto] Failed to init DTLS connection: srtp unknown protection profile<br>
Mar 1 01:46:45 sp201 rtpengine[14973]: INFO: [9ca2e714-95d0-9662-82e9-e89659024d66]: [control] Replying to 'offer' from
<a href="http://127.0.0.1:52657">127.0.0.1:52657</a> (elapsed time 0.001429 sec)<br>
Mar 1 01:48:47 sp201 rtpengine[14973]: INFO: [9ca2e714-95d0-9662-82e9-e89659024d66]: [control] Received command 'delete' from
<a href="http://127.0.0.1:52865">127.0.0.1:52865</a><br>
Mar 1 01:48:47 sp201 rtpengine[14973]: INFO: [9ca2e714-95d0-9662-82e9-e89659024d66]: [core] Scheduling deletion of call branch 'tW4HuJe5Hmnkd9RLpKSG' (via-branch 'z9hG4bKgRZGOZSlWGzaiX8oM6vpqSqzpiG6Tqvf0') in 30 seconds<br>
Mar 1 01:48:47 sp201 rtpengine[14973]: INFO: [9ca2e714-95d0-9662-82e9-e89659024d66]: [control] Replying to 'delete' from
<a href="http://127.0.0.1:52865">127.0.0.1:52865</a> (elapsed time 0.000124 sec)<br>
Mar 1 01:48:47 sp201 rtpengine[14973]: INFO: [9ca2e714-95d0-9662-82e9-e89659024d66]: [control] Received command 'delete' from
<a href="http://127.0.0.1:52865">127.0.0.1:52865</a><br>
Mar 1 01:48:47 sp201 rtpengine[14973]: INFO: [9ca2e714-95d0-9662-82e9-e89659024d66]: [core] Scheduling deletion of call branch 'tW4HuJe5Hmnkd9RLpKSG' (via-branch '') in 30 seconds<o:p></o:p></p>
<div>
<p class="MsoNormal" style="margin-left:35.4pt"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:35.4pt">[root@sp201 src]# lsmod | grep xt_RTPENGINE<br>
xt_RTPENGINE 45829 5<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:35.4pt"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:35.4pt"><b>[root@sp201 src]# lsmod</b><br>
Module Size Used by<br>
iptable_nat 12875 0<br>
nf_nat_ipv4 14115 1 iptable_nat<br>
nf_nat 26583 1 nf_nat_ipv4<br>
iptable_mangle 12695 0<br>
camellia_aesni_avx_x86_64 27590 0<br>
camellia_x86_64 52986 1 camellia_aesni_avx_x86_64<br>
xts 12914 1 camellia_x86_64<br>
nfnetlink_queue 18197 0<br>
nfnetlink_log 17892 0<br>
nfnetlink 14519 2 nfnetlink_log,nfnetlink_queue<br>
bluetooth 548730 0<br>
rfkill 22391 1 bluetooth<br>
ipt_REJECT 12541 2<br>
nf_reject_ipv4 13373 1 ipt_REJECT<br>
nf_conntrack_ipv4 15053 6<br>
nf_defrag_ipv4 12729 1 nf_conntrack_ipv4<br>
xt_RTPENGINE 45829 5<br>
netconsole 14587 0<br>
xt_conntrack 12760 5<br>
nf_conntrack 139264 4 nf_nat,nf_nat_ipv4,xt_conntrack,nf_conntrack_ipv4<br>
iptable_filter 12810 1<br>
edac_mce_amd 31603 0<br>
crc32_pclmul 13133 0<br>
ghash_clmulni_intel 13273 0<br>
aesni_intel 189456 0<br>
lrw 13286 3 camellia_x86_64,aesni_intel,camellia_aesni_avx_x86_64<br>
gf128mul 15139 2 lrw,xts<br>
glue_helper 13990 3 camellia_x86_64,aesni_intel,camellia_aesni_avx_x86_64<br>
ppdev 17671 0<br>
ablk_helper 13597 2 aesni_intel,camellia_aesni_avx_x86_64<br>
cryptd 21190 3 ghash_clmulni_intel,aesni_intel,ablk_helper<br>
parport_pc 28205 0<br>
virtio_rng 13029 0<br>
joydev 17389 0<br>
virtio_balloon 18015 0<br>
parport 46395 2 ppdev,parport_pc<br>
i2c_piix4 22401 0<br>
pcspkr 12718 0<br>
ip_tables 27126 3 iptable_filter,iptable_mangle,iptable_nat<br>
xfs 997727 2<br>
libcrc32c 12644 3 xfs,nf_nat,nf_conntrack<br>
ata_generic 12923 0<br>
pata_acpi 13053 0<br>
virtio_net 28085 0<br>
virtio_blk 18472 4<br>
virtio_console 28076 0<br>
net_failover 18147 1 virtio_net<br>
failover 13374 1 net_failover<br>
ata_piix 35052 0<br>
libata 243094 3 pata_acpi,ata_generic,ata_piix<br>
crct10dif_pclmul 14307 0<br>
crct10dif_common 12595 1 crct10dif_pclmul<br>
crc32c_intel 22094 1<br>
virtio_pci 22985 0<br>
floppy 69432 0<br>
virtio_ring 22991 6 virtio_blk,virtio_net,virtio_pci,virtio_rng,virtio_balloon,virtio_console<br>
serio_raw 13434 0<br>
virtio 14959 6 virtio_blk,virtio_net,virtio_pci,virtio_rng,virtio_balloon,virtio_console<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:35.4pt"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:35.4pt"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:35.4pt"><b>[root@sp201 src]# kamailio -V<br>
</b>version: kamailio 5.5.0-dev4 (x86_64/linux) fd8d0f<br>
flags: USE_TCP, USE_TLS, USE_SCTP, TLS_HOOKS, USE_RAW_SOCKS, DISABLE_NAGLE, USE_MCAST, DNS_IP_HACK, SHM_MMAP, PKG_MALLOC, Q_MALLOC, F_MALLOC, TLSF_MALLOC, DBG_SR_MEMORY, USE_FUTEX, FAST_LOCK-ADAPTIVE_WAIT, USE_DNS_CACHE, USE_DNS_FAILOVER, USE_NAPTR, USE_DST_BLOCKLIST,
HAVE_RESOLV_RES<br>
ADAPTIVE_WAIT_LOOPS 1024, MAX_RECV_BUFFER_SIZE 262144, MAX_URI_SIZE 1024, BUF_SIZE 65535, DEFAULT PKG_SIZE 8MB<br>
poll method support: poll, epoll_lt, epoll_et, sigio_rt, select.<br>
id: fd8d0f<br>
compiled on 03:59:17 Feb 16 2021 with gcc 4.8.5<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:35.4pt"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:35.4pt"><o:p> </o:p></p>
<h2 style="mso-margin-top-alt:0cm;margin-right:0cm;margin-bottom:0cm;margin-left:35.4pt">
<span style="font-size:11.0pt;font-family:"Arial",sans-serif;color:black">Install the packages required to compile RTPEngine</span><o:p></o:p></h2>
<p style="mso-margin-top-alt:0cm;margin-right:0cm;margin-bottom:0cm;margin-left:35.4pt">
<span style="font-family:"Arial",sans-serif;color:black">yum -y install epel-release</span><o:p></o:p></p>
<p style="mso-margin-top-alt:0cm;margin-right:0cm;margin-bottom:0cm;margin-left:35.4pt">
<span style="font-family:"Arial",sans-serif;color:black">yum -y install glib glib-devel gcc zlib zlib-devel openssl openssl-devel pcre pcre-devel libcurl libcurl-devel xmlrpc-c xmlrpc-c-devel</span><o:p></o:p></p>
<p style="mso-margin-top-alt:0cm;margin-right:0cm;margin-bottom:0cm;margin-left:35.4pt">
<span style="font-family:"Arial",sans-serif;color:black">yum -y install libevent-devel glib2-devel json-c-devel json-glib json-glib-devel gperf libpcap-devel git perl-IPC-Cmd libiptcdata-devel libiptcdata-devel hiredis hiredis-devel redis iptables-devel libwebsockets-devel</span><o:p></o:p></p>
<p style="mso-margin-top-alt:0cm;margin-right:0cm;margin-bottom:0cm;margin-left:35.4pt">
<span style="font-family:"Arial",sans-serif;color:black">yum -y install spandsp spandsp-devel<br>
rpm --import </span><a href="http://li.nux.ro/download/nux/RPM-GPG-KEY-nux.ro"><span style="font-family:"Arial",sans-serif;color:black">http://li.nux.ro/download/nux/RPM-GPG-KEY-nux.ro<br>
<br>
</span></a><o:p></o:p></p>
<p style="mso-margin-top-alt:0cm;margin-right:0cm;margin-bottom:0cm;margin-left:35.4pt">
<span style="font-family:"Arial",sans-serif;color:black">yum -y install </span><a href="http://li.nux.ro/download/nux/dextop/el7/x86_64/nux-dextop-release-0-5.el7.nux.noarch.rpm"><span style="font-family:"Arial",sans-serif;color:black">http://li.nux.ro/download/nux/dextop/el7/x86_64/nux-dextop-release-0-5.el7.nux.noarch.rpm</span></a><o:p></o:p></p>
<p style="mso-margin-top-alt:0cm;margin-right:0cm;margin-bottom:0cm;margin-left:35.4pt">
<span style="font-family:"Arial",sans-serif;color:black"><br>
yum repolist</span><o:p></o:p></p>
<p style="mso-margin-top-alt:0cm;margin-right:0cm;margin-bottom:0cm;margin-left:35.4pt">
<span style="font-family:"Arial",sans-serif;color:black">yum -y install ffmpeg ffmpeg-devel</span><o:p></o:p></p>
<p style="mso-margin-top-alt:0cm;margin-right:0cm;margin-bottom:0cm;margin-left:35.4pt">
<span style="font-family:"Arial",sans-serif;color:black">yum -y install bcg729 bcg729-devel</span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:0cm;margin-right:0cm;margin-bottom:12.0pt;margin-left:35.4pt">
<o:p> </o:p></p>
<p style="mso-margin-top-alt:0cm;margin-right:0cm;margin-bottom:0cm;margin-left:35.4pt">
<span style="font-family:"Arial",sans-serif;color:black">wget </span><a href="https://download1.rpmfusion.org/free/el/rpmfusion-free-release-7.noarch.rpm"><span style="font-family:"Arial",sans-serif;color:black">https://download1.rpmfusion.org/free/el/rpmfusion-free-release-7.noarch.rpm</span></a><o:p></o:p></p>
<p class="MsoNormal" style="margin-left:35.4pt"><o:p> </o:p></p>
<p style="mso-margin-top-alt:0cm;margin-right:0cm;margin-bottom:12.0pt;margin-left:35.4pt">
<span style="font-family:"Arial",sans-serif;color:black">rpm -i rpmfusion-free-release-7.noarch.rpm</span><o:p></o:p></p>
<p class="MsoNormal" style="margin-left:35.4pt"><o:p> </o:p></p>
<h2 style="mso-margin-top-alt:0cm;margin-right:0cm;margin-bottom:0cm;margin-left:35.4pt">
<span style="font-size:11.0pt;font-family:"Arial",sans-serif;color:black">Get RTPEngine source from GitHub repository:</span><o:p></o:p></h2>
<p style="mso-margin-top-alt:0cm;margin-right:0cm;margin-bottom:0cm;margin-left:35.4pt">
<span style="font-family:"Arial",sans-serif;color:black"><br>
cd /usr/src</span><o:p></o:p></p>
<p style="mso-margin-top-alt:0cm;margin-right:0cm;margin-bottom:0cm;margin-left:35.4pt">
<span style="font-family:"Arial",sans-serif;color:black">git clone </span><a href="https://github.com/sipwise/rtpengine.git"><span style="font-family:"Arial",sans-serif;color:black">https://github.com/sipwise/rtpengine.git</span></a><span style="font-family:"Arial",sans-serif;color:black">
rtpengine</span><o:p></o:p></p>
<p style="mso-margin-top-alt:0cm;margin-right:0cm;margin-bottom:0cm;margin-left:35.4pt">
<span style="font-family:"Arial",sans-serif;color:black">cd rtpengine</span><o:p></o:p></p>
<h2 style="mso-margin-top-alt:0cm;margin-right:0cm;margin-bottom:0cm;margin-left:35.4pt">
<o:p></o:p></h2>
<p class="MsoNormal" style="margin-left:35.4pt"><o:p> </o:p></p>
<h2 style="mso-margin-top-alt:0cm;margin-right:0cm;margin-bottom:0cm;margin-left:35.4pt">
<span style="font-size:11.0pt;font-family:"Arial",sans-serif;color:black">Compile and install the daemon</span><o:p></o:p></h2>
<p style="mso-margin-top-alt:0cm;margin-right:0cm;margin-bottom:0cm;margin-left:35.4pt">
<span style="font-family:"Arial",sans-serif;color:black"><br>
cd /usr/src/rtpengine/daemon/</span><o:p></o:p></p>
<p style="mso-margin-top-alt:0cm;margin-right:0cm;margin-bottom:0cm;margin-left:35.4pt">
<span style="font-family:"Arial",sans-serif;color:black">make</span><o:p></o:p></p>
<p style="mso-margin-top-alt:0cm;margin-right:0cm;margin-bottom:0cm;margin-left:35.4pt">
<span style="font-family:"Arial",sans-serif;color:black">cp -fr rtpengine /usr/sbin/rtpengine</span><o:p></o:p></p>
<p style="mso-margin-top-alt:0cm;margin-right:0cm;margin-bottom:0cm;margin-left:35.4pt">
<span style="font-family:"Arial",sans-serif;color:black">cp -fr rtpengine /usr/local/bin/rtpengine</span><o:p></o:p></p>
<h2 style="mso-margin-top-alt:0cm;margin-right:0cm;margin-bottom:0cm;margin-left:35.4pt">
<o:p></o:p></h2>
<h2 style="mso-margin-top-alt:0cm;margin-right:0cm;margin-bottom:0cm;margin-left:35.4pt">
<span style="font-size:11.0pt;font-family:"Arial",sans-serif;color:black">Compile and install iptables extension</span><o:p></o:p></h2>
<p class="MsoNormal" style="margin-left:35.4pt"><o:p> </o:p></p>
<p style="mso-margin-top-alt:0cm;margin-right:0cm;margin-bottom:0cm;margin-left:35.4pt">
<span style="font-family:"Arial",sans-serif;color:black">cd /usr/src/rtpengine/iptables-extension</span><o:p></o:p></p>
<p style="mso-margin-top-alt:0cm;margin-right:0cm;margin-bottom:0cm;margin-left:35.4pt">
<span style="font-family:"Arial",sans-serif;color:black">make all</span><o:p></o:p></p>
<p style="mso-margin-top-alt:0cm;margin-right:0cm;margin-bottom:0cm;margin-left:35.4pt">
<span style="font-family:"Arial",sans-serif;color:black">cp -fr libxt_RTPENGINE.so /usr/lib64/xtables/.</span><o:p></o:p></p>
<h2 style="mso-margin-top-alt:0cm;margin-right:0cm;margin-bottom:18.0pt;margin-left:35.4pt">
<span style="font-size:11.0pt;font-family:"Arial",sans-serif;color:black">Compile and install the kernel module xt_RTPENGINE</span><o:p></o:p></h2>
<p style="mso-margin-top-alt:0cm;margin-right:0cm;margin-bottom:0cm;margin-left:35.4pt">
<span style="font-family:"Arial",sans-serif;color:black">cd /usr/src/rtpengine/kernel-module<br>
make<br>
<br>
cp -fr xt_RTPENGINE.ko /lib/modules/`uname -r`/extra/xt_RTPENGINE.ko<br>
<br>
depmod -a<br>
modprobe -v xt_RTPENGINE</span><o:p></o:p></p>
<p style="mso-margin-top-alt:0cm;margin-right:0cm;margin-bottom:12.0pt;margin-left:35.4pt">
<b><span style="font-family:"Arial",sans-serif;color:black">Check if the kernel module loaded properly:</span></b><o:p></o:p></p>
<p style="mso-margin-top-alt:0cm;margin-right:0cm;margin-bottom:0cm;margin-left:35.4pt">
<span style="font-family:"Arial",sans-serif;color:black">lsmod | grep xt_RTPENGINE</span><o:p></o:p></p>
<p style="mso-margin-top-alt:0cm;margin-right:0cm;margin-bottom:12.0pt;margin-left:35.4pt">
<b><span style="font-family:"Arial",sans-serif;color:black">Make to load the module at the boot time:</span></b><o:p></o:p></p>
<p style="mso-margin-top-alt:0cm;margin-right:0cm;margin-bottom:0cm;margin-left:35.4pt">
<span style="font-family:"Arial",sans-serif;color:black">echo "# load xt_RTPENGINE module" >> /etc/modules-load.d/rtpengine.conf</span><o:p></o:p></p>
<p style="mso-margin-top-alt:0cm;margin-right:0cm;margin-bottom:0cm;margin-left:35.4pt">
<span style="font-family:"Arial",sans-serif;color:black">echo "xt_RTPENGINE" >> /etc/modules-load.d/rtpengine.conf</span><o:p></o:p></p>
<p style="mso-margin-top-alt:0cm;margin-right:0cm;margin-bottom:0cm;margin-left:35.4pt">
<o:p></o:p></p>
<p style="mso-margin-top-alt:0cm;margin-right:0cm;margin-bottom:12.0pt;margin-left:35.4pt">
<b><span style="font-family:"Arial",sans-serif;color:black">Check if RTPEngine is accessible:</span></b><o:p></o:p></p>
<p style="mso-margin-top-alt:0cm;margin-right:0cm;margin-bottom:0cm;margin-left:35.4pt">
<span style="font-family:"Arial",sans-serif;color:black">ls -l /proc/rtpengine/control | grep root</span><o:p></o:p></p>
<p style="mso-margin-top-alt:0cm;margin-right:0cm;margin-bottom:0cm;margin-left:35.4pt">
<o:p></o:p></p>
<p style="mso-margin-top-alt:0cm;margin-right:0cm;margin-bottom:0cm;margin-left:35.4pt">
<b><span style="font-family:"Arial",sans-serif;color:black">Should see:</span></b><o:p></o:p></p>
<p style="mso-margin-top-alt:0cm;margin-right:0cm;margin-bottom:0cm;margin-left:35.4pt">
<span style="font-family:"Arial",sans-serif;color:black">–w–w—-. 1 root root 0 Oct 16 10:32 /proc/rtpengine/control</span><o:p></o:p></p>
<p style="mso-margin-top-alt:0cm;margin-right:0cm;margin-bottom:0cm;margin-left:35.4pt">
<span style="font-family:"Arial",sans-serif;color:black">ls -l /proc/rtpengine/list</span><o:p></o:p></p>
<p style="mso-margin-top-alt:0cm;margin-right:0cm;margin-bottom:0cm;margin-left:35.4pt">
<span style="font-family:"Arial",sans-serif;color:black">-r–r–r–. 1 root root 0 Oct 16 10:32 /proc/rtpengine/list</span><o:p></o:p></p>
<h2 style="mso-margin-top-alt:0cm;margin-right:0cm;margin-bottom:0cm;margin-left:35.4pt">
<span style="font-size:11.0pt;font-family:"Arial",sans-serif;color:black;font-weight:normal">Install configuration file</span><o:p></o:p></h2>
<p style="mso-margin-top-alt:0cm;margin-right:0cm;margin-bottom:12.0pt;margin-left:35.4pt">
<o:p> </o:p></p>
<p style="mso-margin-top-alt:0cm;margin-right:0cm;margin-bottom:0cm;margin-left:35.4pt">
<o:p></o:p></p>
<p style="mso-margin-top-alt:0cm;margin-right:0cm;margin-bottom:0cm;margin-left:35.4pt">
<o:p></o:p></p>
<p style="mso-margin-top-alt:0cm;margin-right:0cm;margin-bottom:12.0pt;margin-left:35.4pt">
<b><span style="font-family:"Arial",sans-serif;color:black">Get your external IP (with ‘ip addr’ for example)</span></b><o:p></o:p></p>
<p style="mso-margin-top-alt:0cm;margin-right:0cm;margin-bottom:0cm;margin-left:35.4pt">
<span style="font-family:"Arial",sans-serif;color:black">In the following command change
<b>111.111.111.111</b> to your external IP</span><o:p></o:p></p>
<p style="mso-margin-top-alt:0cm;margin-right:0cm;margin-bottom:0cm;margin-left:35.4pt">
<span style="font-family:"Arial",sans-serif;color:black">echo "OPTIONS=\"-i 111.111.111.111 -n
<a href="http://127.0.0.1:2223">127.0.0.1:2223</a> -m 10000 -M 60000 -L 4 --log-facility=local1 --table=8 --delete-delay=0 --timeout=60 --silent-timeout=600 --final-timeout=7200 –offer-timeout=60 --num-threads=12 --tos=184 –no-fallback\"" > /etc/sysconfig/rtpengine</span><o:p></o:p></p>
<h2 style="mso-margin-top-alt:0cm;margin-right:0cm;margin-bottom:0cm;margin-left:35.4pt">
<span style="font-size:11.0pt;font-family:"Arial",sans-serif;color:black">Configure RTPEngine log</span><o:p></o:p></h2>
<p class="MsoNormal" style="margin-left:35.4pt"><o:p> </o:p></p>
<p style="mso-margin-top-alt:0cm;margin-right:0cm;margin-bottom:0cm;margin-left:35.4pt">
<span style="font-family:"Arial",sans-serif;color:black">echo "local1.* <span class="gmail-apple-tab-span">
</span>-/var/log/rtpengine/rtpengine.log;clean_template" >> /etc/rsyslog.conf</span><o:p></o:p></p>
<p style="mso-margin-top-alt:0cm;margin-right:0cm;margin-bottom:0cm;margin-left:35.4pt">
<span style="font-family:"Arial",sans-serif;color:black">mkdir -p /var/log/rtpengine</span><o:p></o:p></p>
<p style="mso-margin-top-alt:0cm;margin-right:0cm;margin-bottom:12.0pt;margin-left:35.4pt">
<span style="font-family:"Arial",sans-serif;color:black">touch /var/log/rtpengine/rtpengine.log</span><o:p></o:p></p>
<h2 style="mso-margin-top-alt:0cm;margin-right:0cm;margin-bottom:0cm;margin-left:35.4pt">
<span style="font-size:11.0pt;font-family:"Arial",sans-serif;color:black">Configure logrotate</span><o:p></o:p></h2>
<p style="mso-margin-top-alt:0cm;margin-right:0cm;margin-bottom:0cm;margin-left:35.4pt">
<span style="font-family:"Arial",sans-serif;color:black"><br>
echo "/var/log/rtpengine/rtpengine.log {</span><o:p></o:p></p>
<p style="mso-margin-top-alt:0cm;margin-right:0cm;margin-bottom:0cm;margin-left:35.4pt">
<span style="font-family:"Arial",sans-serif;color:black">daily</span><o:p></o:p></p>
<p style="mso-margin-top-alt:0cm;margin-right:0cm;margin-bottom:0cm;margin-left:35.4pt">
<span style="font-family:"Arial",sans-serif;color:black">rotate 4</span><o:p></o:p></p>
<p style="mso-margin-top-alt:0cm;margin-right:0cm;margin-bottom:0cm;margin-left:35.4pt">
<span style="font-family:"Arial",sans-serif;color:black">missingok</span><o:p></o:p></p>
<p style="mso-margin-top-alt:0cm;margin-right:0cm;margin-bottom:0cm;margin-left:35.4pt">
<span style="font-family:"Arial",sans-serif;color:black">dateext</span><o:p></o:p></p>
<p style="mso-margin-top-alt:0cm;margin-right:0cm;margin-bottom:0cm;margin-left:35.4pt">
<span style="font-family:"Arial",sans-serif;color:black">copytruncate</span><o:p></o:p></p>
<p style="mso-margin-top-alt:0cm;margin-right:0cm;margin-bottom:0cm;margin-left:35.4pt">
<span style="font-family:"Arial",sans-serif;color:black">compress</span><o:p></o:p></p>
<p style="mso-margin-top-alt:0cm;margin-right:0cm;margin-bottom:0cm;margin-left:35.4pt">
<span style="font-family:"Arial",sans-serif;color:black">}" > /etc/logrotate.d/rtpengine</span><o:p></o:p></p>
<h2 style="mso-margin-top-alt:0cm;margin-right:0cm;margin-bottom:0cm;margin-left:35.4pt">
<span style="font-size:11.0pt;font-family:"Arial",sans-serif;color:black;font-weight:normal">Disable logging to /var/log/messages</span><o:p></o:p></h2>
<p style="mso-margin-top-alt:0cm;margin-right:0cm;margin-bottom:0cm;margin-left:35.4pt">
<span style="font-family:"Arial",sans-serif;color:black">perl -pi.bak -e 's#(\s+)\/var\/log\/messages#;local1.none$1/var/log/messages#' /etc/rsyslog.conf</span><o:p></o:p></p>
<p style="mso-margin-top-alt:0cm;margin-right:0cm;margin-bottom:0cm;margin-left:35.4pt">
<span style="font-family:"Arial",sans-serif;color:black">systemctl restart rsyslog<br>
<br>
<b>Configure RTPEngine service</b></span><o:p></o:p></p>
<p style="mso-margin-top-alt:0cm;margin-right:0cm;margin-bottom:0cm;margin-left:35.4pt">
<o:p></o:p></p>
<p style="mso-margin-top-alt:0cm;margin-right:0cm;margin-bottom:0cm;margin-left:35.4pt">
<span style="font-family:"Arial",sans-serif;color:black">echo "[Unit]</span><o:p></o:p></p>
<p style="mso-margin-top-alt:0cm;margin-right:0cm;margin-bottom:0cm;margin-left:35.4pt">
<span style="font-family:"Arial",sans-serif;color:black">Description=Kernel based rtp proxy</span><o:p></o:p></p>
<p style="mso-margin-top-alt:0cm;margin-right:0cm;margin-bottom:0cm;margin-left:35.4pt">
<span style="font-family:"Arial",sans-serif;color:black">After=syslog.target</span><o:p></o:p></p>
<p style="mso-margin-top-alt:0cm;margin-right:0cm;margin-bottom:0cm;margin-left:35.4pt">
<span style="font-family:"Arial",sans-serif;color:black">After=network-online.target</span><o:p></o:p></p>
<p style="mso-margin-top-alt:0cm;margin-right:0cm;margin-bottom:0cm;margin-left:35.4pt">
<span style="font-family:"Arial",sans-serif;color:black">After=iptables.service</span><o:p></o:p></p>
<p style="mso-margin-top-alt:0cm;margin-right:0cm;margin-bottom:0cm;margin-left:35.4pt">
<span style="font-family:"Arial",sans-serif;color:black">Requires=network-online.target</span><o:p></o:p></p>
<p style="mso-margin-top-alt:0cm;margin-right:0cm;margin-bottom:0cm;margin-left:35.4pt">
<span style="font-family:"Arial",sans-serif;color:black">[Service]</span><o:p></o:p></p>
<p style="mso-margin-top-alt:0cm;margin-right:0cm;margin-bottom:0cm;margin-left:35.4pt">
<span style="font-family:"Arial",sans-serif;color:black">Type=forking</span><o:p></o:p></p>
<p style="mso-margin-top-alt:0cm;margin-right:0cm;margin-bottom:0cm;margin-left:35.4pt">
<span style="font-family:"Arial",sans-serif;color:black">PIDFile=/var/run/rtpengine.pid</span><o:p></o:p></p>
<p style="mso-margin-top-alt:0cm;margin-right:0cm;margin-bottom:0cm;margin-left:35.4pt">
<span style="font-family:"Arial",sans-serif;color:black">EnvironmentFile=-/etc/sysconfig/rtpengine</span><o:p></o:p></p>
<p style="mso-margin-top-alt:0cm;margin-right:0cm;margin-bottom:0cm;margin-left:35.4pt">
<span style="font-family:"Arial",sans-serif;color:black">ExecStart=/usr/local/bin/rtpengine -p /var/run/rtpengine.pid \$OPTIONS</span><o:p></o:p></p>
<p style="mso-margin-top-alt:0cm;margin-right:0cm;margin-bottom:0cm;margin-left:35.4pt">
<span style="font-family:"Arial",sans-serif;color:black">Restart=on-abort</span><o:p></o:p></p>
<p style="mso-margin-top-alt:0cm;margin-right:0cm;margin-bottom:0cm;margin-left:35.4pt">
<span style="font-family:"Arial",sans-serif;color:black">[Install]</span><o:p></o:p></p>
<p style="mso-margin-top-alt:0cm;margin-right:0cm;margin-bottom:0cm;margin-left:35.4pt">
<span style="font-family:"Arial",sans-serif;color:black">WantedBy=multi-user.target" > /etc/systemd/system/rtpengine.service</span><o:p></o:p></p>
<h2 style="mso-margin-top-alt:0cm;margin-right:0cm;margin-bottom:0cm;margin-left:35.4pt">
<span style="font-size:11.0pt;font-family:"Arial",sans-serif;color:black;font-weight:normal">Enable and start RTPEengine</span><o:p></o:p></h2>
<p style="mso-margin-top-alt:0cm;margin-right:0cm;margin-bottom:0cm;margin-left:35.4pt">
<span style="font-family:"Arial",sans-serif;color:black"><br>
systemctl enable rtpengine.service</span><o:p></o:p></p>
<p style="mso-margin-top-alt:0cm;margin-right:0cm;margin-bottom:0cm;margin-left:35.4pt">
<span style="font-family:"Arial",sans-serif;color:black">mkdir -p /var/spool/rtpengine</span><o:p></o:p></p>
<p style="mso-margin-top-alt:0cm;margin-right:0cm;margin-bottom:0cm;margin-left:35.4pt">
<span style="font-family:"Arial",sans-serif;color:black">systemctl start rtpengine</span><o:p></o:p></p>
<h2 style="mso-margin-top-alt:0cm;margin-right:0cm;margin-bottom:0cm;margin-left:35.4pt">
<o:p></o:p></h2>
<h2 style="mso-margin-top-alt:0cm;margin-right:0cm;margin-bottom:0cm;margin-left:35.4pt">
<span style="font-size:11.0pt;font-family:"Arial",sans-serif;color:black">Check status</span><o:p></o:p></h2>
<p style="mso-margin-top-alt:0cm;margin-right:0cm;margin-bottom:0cm;margin-left:35.4pt">
<span style="font-family:"Arial",sans-serif;color:black">systemctl status rtpengine.service</span><o:p></o:p></p>
<h2 style="mso-margin-top-alt:0cm;margin-right:0cm;margin-bottom:0cm;margin-left:35.4pt">
<span style="font-size:11.0pt;font-family:"Arial",sans-serif;color:black;font-weight:normal">Check if g729 installed properly</span><o:p></o:p></h2>
<p style="mso-margin-top-alt:0cm;margin-right:0cm;margin-bottom:0cm;margin-left:35.4pt">
<span style="font-family:"Arial",sans-serif;color:black">rtpengine --codecs | grep "G729"</span><o:p></o:p></p>
<p class="MsoNormal" style="margin-left:35.4pt"><o:p> </o:p></p>
<p style="mso-margin-top-alt:0cm;margin-right:0cm;margin-bottom:0cm;margin-left:35.4pt">
<b><span style="font-family:"Arial",sans-serif;color:black">vim /etc/sysconfig/rtpengine</span></b><o:p></o:p></p>
<p style="mso-margin-top-alt:0cm;margin-right:0cm;margin-bottom:0cm;margin-left:35.4pt">
<span style="font-family:"Arial",sans-serif;color:black">OPTIONS="-i <b>publicIP</b> -n
<a href="http://127.0.0.1:2223">127.0.0.1:2223</a> -m 10000 -M 20000 -L 4 --log-facility=local0 --table=8 --delete-delay=0 --timeout=60 --silent-timeout=600 --final-timeout=7200 –offer-timeout=60 --num-threads=12 --tos=184 –no-fallback –log-level=7 --recording-dir=/var/spool/rtpengine/
"</span><o:p></o:p></p>
<p class="MsoNormal" style="margin-left:35.4pt"><o:p> </o:p></p>
<p style="mso-margin-top-alt:0cm;margin-right:0cm;margin-bottom:0cm;margin-left:35.4pt">
<span style="font-family:"Arial",sans-serif;color:black">sudo systemctl restart rtpengine</span><o:p></o:p></p>
<p class="MsoNormal" style="margin-left:35.4pt"><br>
no output from below command:<br>
<b>[root@sp201 iptables-extension]# tail -f /proc/rtpengine/0/list<br>
</b><br>
Can someone guide me where I am doing wrong? <o:p></o:p></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:35.4pt"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:35.4pt">Thank you in advance.<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal" style="mso-margin-top-alt:0cm;margin-right:0cm;margin-bottom:12.0pt;margin-left:35.4pt">
<br>
<br>
<o:p></o:p></p>
</div>
<p class="MsoNormal" style="margin-left:35.4pt">-- <o:p></o:p></p>
<div>
<div>
<div>
<div>
<div>
<div>
<div>
<div>
<div>
<div>
<div>
<div>
<div>
<div>
<div>
<div>
<div>
<p class="MsoNormal" style="margin-left:35.4pt"><span style="color:#8E7CC3">Regards,</span><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:35.4pt"><span style="color:#8E7CC3">Suresh Talasaniya. </span><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:35.4pt"><span style="font-size:9.5pt;color:#8E7CC3">Contact : +91-9724264776<br>
</span><span style="color:#8E7CC3">Skype : suresh.talsaniya</span><o:p></o:p></p>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</body>
</html>