Hello,

On 16.03.20 12:49, Sergey Safarov wrote:
Hi Daniel
For my needs i installed rtpengine also.
To be sure rtpengine in kernel forwarding mode I configured

systemd unit file

[root@ip-44-230-120-21 ~]# cat /etc/systemd/system/rtpengine.service
[Unit]
Description=NGCP RtpEngine - RTP Media Proxy
Wants=network-online.target
After=network-online.target

[Service]
Type=simple
ExecStart=/usr/sbin/rtpengine -f
ExecStartPost=/sbin/iptables -I INPUT -p udp -j RTPENGINE --id 0
ExecStartPost=/sbin/ip6tables -I INPUT -p udp -j RTPENGINE --id 0
ExecStopPost=-/sbin/iptables -D INPUT -p udp -j RTPENGINE --id 0
ExecStopPost=-/sbin/ip6tables -D INPUT -p udp -j RTPENGINE --id 0
Restart=on-failure

[Install]
WantedBy=multi-user.target


And inside /etc/rtpengine/rtpengine.conf I defined "no-fallback = true"

With "no-fallback = true" rtpengine wont start if kernel module not available.

This is just to be sure it starts only with kernel module and in-kernel forwarding mode, right? So you do not want at all userspace forwarding, better fail than being less performant.

Cheers,
Daniel



Sergey

On Tue, Jan 21, 2020 at 12:28 PM Daniel-Constantin Mierla <miconda@gmail.com> wrote:

On 17.01.20 15:50, Richard Fuchs wrote:
> On 17/01/2020 09.01, Daniel-Constantin Mierla wrote:
>> Hello,
>>
>> do people here have (implemented) special ways to properly start
>> rtpengine with kernel forwarding after system reboot?
> On our own systems, we have xt_RTPENGINE loaded through
> modules-load.d, and the iptables rule added through
> iptables-persistent. But obviously this is not a generic solution as
> there are dependencies.
>> Not strictly related, but if someone is aware or had some experiences
>> with,  I am curious if "echo 'del 0' > /proc/rtpengine/control" is
>> really needed because on a system where I forgot to have it in the
>> scripts (well, was commented), I haven't noticed any issues after
>> rtpengine restarts.
>
> This is not actually required any more. The daemon itself handles this
> on startup now.
Thanks for clarifying its status!

Cheers, Daniel

--
Daniel-Constantin Mierla -- www.asipto.com
www.twitter.com/miconda -- www.linkedin.com/in/miconda
Kamailio Advanced Training - March 9-11, 2020, Berlin - www.asipto.com
Kamailio World Conference - April 27-29, 2020, in Berlin -- www.kamailioworld.com


_______________________________________________
Kamailio (SER) - Users Mailing List
sr-users@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
-- 
Daniel-Constantin Mierla -- www.asipto.com
www.twitter.com/miconda -- www.linkedin.com/in/miconda