<div dir="ltr"><div>Good day Rick,</div><div>you are right, RTPproxy does not start after a reboot of a machine, because there is essentially no entity responsible for that (to start RTPproxy).</div><div>As I have already mentioned, you need to configure systemd (if that is a supervisor on your Debian system, which should actually be).</div><div><br></div><div>Please read two following sections of the user manual:<br></div><div>- getting started with RTPproxy - <a href="https://www.rtpproxy.org/doc/master/user_manual.html#idm221">https://www.rtpproxy.org/doc/master/user_manual.html#idm221</a></div><div>- configuration of systemd service for RTPproxy - <a href="https://www.rtpproxy.org/doc/master/user_manual.html#idm650">https://www.rtpproxy.org/doc/master/user_manual.html#idm650</a></div><div><br></div><div>After you are done with steps mentioned in those sections, your RTPproxy will start independently after the following reboot.</div><div><br></div><div>What relates to listening sockets please read the mentioned chapters to find an answer.</div><div>Just a brief overview of the most commonly used options:</div><div>"-L" - sets the maximum number of open file descriptors
per process</div><div>"-l" - binding a socket to a particular IP interface of the machine. You can essentially set just "0.0.0.0" if you desire to listen to all available IP interfaces</div><div>"-m" - the lowest port to be used for RTP/RTCP sessions allocation</div><div>"-M" - an opposite to the above</div><div>"-d" - debug level (which will be used to log events to either syslog or a separate log file, if you choose so)</div><div>"-p" - a link to the PID file, which will be created as soon as binary starts its work</div><div>"-u" - user and group to be used for handling the process(es)</div><div>"-n" - specifies permitted notification
socket, this socket must be created
by another application, preferably before starting
rtpproxy itself</div><div>(for e.g. OpenSIPS crates a timeout socket by usage of this modparam: <a href="https://opensips.org/html/docs/modules/3.1.x/rtpproxy.html#param_rtpp_notify_socket">https://opensips.org/html/docs/modules/3.1.x/rtpproxy.html#param_rtpp_notify_socket</a>)</div><div><br></div><div>Other than that, please read the user manual to find a ready template for running with the systemd supervisor.<br></div><div><br></div><div>I hope this answers your questions.<br></div><div><br></div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Feb 12, 2021 at 12:40 PM Rick McGill - ₪ <<a href="mailto:rick@netrovoip.com">rick@netrovoip.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div style="overflow-wrap: break-word;" lang="EN-US"><div class="gmail-m_-7362899931682556024WordSection1"><p class="MsoNormal">Dear Donat,<u></u><u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">I REALLY REALLY appreciate your comments and help!! It got the ball rolling for me. <br>I was stuck a bit because I’m so unfamiliar with OpenSIPs and RTPproxy and the info out there is sparce or a little openended. Not sure what to focus on or ignore.<u></u><u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">I finally got it working!<u></u><u></u></p><p class="MsoNormal">Only a little bit left I need to do so that it all works automatically when I reboot. Right now after a reboot it does not listen still on port 12221<u></u><u></u></p><p class="MsoNormal">For now I just did the startup command via the command line to see if it would work.<u></u><u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">root@sip:/usr/src/rtpproxy# rtpproxy -l 10.1.1.57 -s udp:localhost:12221 -F<u></u><u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">I probably need to add the Public IP and 127.0.0.1 or localhost also for -l command line option.<u></u><u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">root@sip:/usr/src/rtpproxy# rtpproxy -V<u></u><u></u></p><p class="MsoNormal">2.2.alpha.3a82dd9d<u></u><u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">Feb 12 17:22:27 sip /usr/sbin/opensips[16714]: INFO:rtpproxy:rtpp_test: rtp proxy <udp:localhost:12221> found, support for it enabled <u></u><u></u></p><p class="MsoNormal">Feb 12 17:22:27 sip /usr/sbin/opensips[16715]: INFO:rtpproxy:rtpp_test: rtp proxy <udp:localhost:12221> found, support for it enabled <u></u><u></u></p><p class="MsoNormal">Feb 12 17:22:27 sip /usr/sbin/opensips[16720]: INFO:rtpproxy:rtpp_test: rtp proxy <udp:localhost:12221> found, support for it enabled <u></u><u></u></p><p class="MsoNormal">Feb 12 17:22:27 sip /usr/sbin/opensips[16718]: INFO:rtpproxy:rtpp_test: rtp proxy <udp:localhost:12221> found, support for it enabled <u></u><u></u></p><p class="MsoNormal">Feb 12 17:22:27 sip /usr/sbin/opensips[16719]: INFO:rtpproxy:rtpp_test: rtp proxy <udp:localhost:12221> found, support for it enabled <u></u><u></u></p><p class="MsoNormal">Feb 12 17:22:27 sip /usr/sbin/opensips[16721]: INFO:rtpproxy:rtpp_test: rtp proxy <udp:localhost:12221> found, support for it enabled <u></u><u></u></p><p class="MsoNormal">Feb 12 17:22:27 sip /usr/sbin/opensips[16722]: INFO:rtpproxy:rtpp_test: rtp proxy <udp:localhost:12221> found, support for it enabled <u></u><u></u></p><p class="MsoNormal">Feb 12 17:22:27 sip /usr/sbin/opensips[16724]: INFO:rtpproxy:rtpp_test: rtp proxy <udp:localhost:12221> found, support for it enabled <u></u><u></u></p><p class="MsoNormal">Feb 12 17:22:27 sip /usr/sbin/opensips[16723]: INFO:rtpproxy:rtpp_test: rtp proxy <udp:localhost:12221> found, support for it enabled <u></u><u></u></p><p class="MsoNormal">Feb 12 17:22:27 sip /usr/sbin/opensips[16726]: INFO:rtpproxy:rtpp_test: rtp proxy <udp:localhost:12221> found, support for it enabled <u></u><u></u></p><p class="MsoNormal">Feb 12 17:22:27 sip /usr/sbin/opensips[16725]: INFO:rtpproxy:rtpp_test: rtp proxy <udp:localhost:12221> found, support for it enabled <u></u><u></u></p><p class="MsoNormal">Feb 12 17:22:27 sip /usr/sbin/opensips[16728]: INFO:rtpproxy:rtpp_test: rtp proxy <udp:localhost:12221> found, support for it enabled <u></u><u></u></p><p class="MsoNormal">Feb 12 17:22:27 sip systemd[1]: Started OpenSIPS is a very fast and flexible SIP (RFC3261) server. <u></u><u></u></p><p class="MsoNormal">Feb 12 17:22:27 sip /usr/sbin/opensips[16730]: INFO:rtpproxy:rtpp_test: rtp proxy <udp:localhost:12221> found, support for it enabled <u></u><u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal"><span style="font-family:"Arial",sans-serif;color:rgb(118,113,113)"><u></u> <u></u></span></p><p class="MsoNormal"><span style="font-family:"Arial",sans-serif;color:rgb(118,113,113)">------------------------------------------------------------------------------------------------------------------------<u></u><u></u></span></p><p class="MsoNormal"><span style="font-family:"Arial",sans-serif;color:rgb(118,113,113)">Rick McGill – CEO<u></u><u></u></span></p><p class="MsoNormal"><span style="font-family:"Arial",sans-serif;color:rgb(118,113,113)">Rick@NetroVOIP.com | Rick@NetropolitanWorks.com <u></u><u></u></span></p><p class="MsoNormal"><span style="font-family:"Arial",sans-serif;color:rgb(118,113,113)">Thailand: +66-2105-4262 x1001 | USA: +1-737-237-2030 | Mobile: +66-85557-3000<u></u><u></u></span></p><p class="MsoNormal"><span style="font-family:"Arial",sans-serif;color:rgb(118,113,113)">Support:: +66-97047-2000 | SKYPE & LINE ID: NetroVOIP | Support@NetroVOIP.com<u></u><u></u></span></p><p class="MsoNormal"><span dir="RTL"></span><span dir="RTL"></span><span dir="RTL" style="font-size:14pt;font-family:"Arial",sans-serif;color:rgb(118,113,113)" lang="HE"><span dir="RTL"></span><span dir="RTL"></span> ₪ </span><span style="font-family:"Arial",sans-serif;color:rgb(118,113,113)"><a href="http://www.NetroVOIP.com" target="_blank">www.NetroVOIP.com</a> Telecommunications / Video Consulting & Solutions Provider<u></u><u></u></span></p><p class="MsoNormal"><span style="font-family:"Arial",sans-serif;color:rgb(118,113,113)">-------------------------------------------------------------------------------------------------------------------------- </span><span style="font-size:8pt;font-family:"Arial",sans-serif"><u></u><u></u></span></p><p class="MsoNormal"><u></u> <u></u></p><div style="border-color:rgb(225,225,225) currentcolor currentcolor;border-style:solid none none;border-width:1pt medium medium;padding:3pt 0in 0in"><p class="MsoNormal"><b>From:</b> Donat Zenichev <<a href="mailto:donat.zenichev@gmail.com" target="_blank">donat.zenichev@gmail.com</a>> <br><b>Sent:</b> Friday, February 12, 2021 3:22 PM<br><b>To:</b> Rick McGill - <span dir="RTL"></span><span dir="RTL"></span><span dir="RTL" lang="HE"><span dir="RTL"></span><span dir="RTL"></span>₪</span><span dir="LTR"></span><span dir="LTR"></span><span dir="LTR"></span><span dir="LTR"></span> <<a href="mailto:rick@netrovoip.com" target="_blank">rick@netrovoip.com</a>><br><b>Cc:</b> OpenSIPS users mailling list <<a href="mailto:users@lists.opensips.org" target="_blank">users@lists.opensips.org</a>><br><b>Subject:</b> Re: [OpenSIPS-Users] OpenSIPs 3.1 New install ERROR in Logs rtpproxy<u></u><u></u></p></div><p class="MsoNormal"><u></u> <u></u></p><div><div><p class="MsoNormal">Good day Rick,<u></u><u></u></p></div><div><p class="MsoNormal">sure I'm always glad to help.<u></u><u></u></p></div><div><p class="MsoNormal"><u></u> <u></u></p></div><div><p class="MsoNormal">OpenSIPS is first of all a SIP proxy.<u></u><u></u></p></div><div><p class="MsoNormal">That's why you get OpenSIPS binary, accompanying shared libraries (.so libraries) and configuration files for it (opensips script, it's C-like).<u></u><u></u></p></div><div><p class="MsoNormal">And as another side of OpenSIPS, which is perfect and powerful, you can always add needed modules to it for any desires you have, e.g.:<u></u><u></u></p></div><div><p class="MsoNormal">media proxying (RTPproxy in your case), B2B logic, fraud detection/protection, load-balancing etc. etc. (this list is dramatically huge).<u></u><u></u></p></div><div><p class="MsoNormal"><u></u> <u></u></p></div><div><p class="MsoNormal">Here you can find a list of useful guidelines provided by OpenSIPS dev team:<u></u><u></u></p></div><div><p class="MsoNormal"><a href="https://www.opensips.org/Documentation/Manual-3-1" target="_blank">https://www.opensips.org/Documentation/Manual-3-1</a><u></u><u></u></p></div><div><p class="MsoNormal"><u></u> <u></u></p></div><div><p class="MsoNormal">If you wonder how to start with RTPproxy, I would advise to compile 2.0 firstly.<u></u><u></u></p></div><div><p class="MsoNormal">It's here: <a href="https://github.com/sippy/rtpproxy/tree/rtpp_2_0" target="_blank">https://github.com/sippy/rtpproxy/tree/rtpp_2_0</a><u></u><u></u></p></div><div><p class="MsoNormal">Looking in the experience back, this version showed itself as the best one.<u></u><u></u></p></div><div><p class="MsoNormal">Still, I want to underline that I might be mistaken about what relates to the most stable version, as things could have changed during the course of time.<u></u><u></u></p></div><div><p class="MsoNormal"><u></u> <u></u></p></div><div><p class="MsoNormal">As a guideline to RTPproxy, please try to look into that: <a href="https://www.rtpproxy.org/doc/master/user_manual.html" target="_blank">https://www.rtpproxy.org/doc/master/user_manual.html</a><u></u><u></u></p></div><div><p class="MsoNormal"><u></u> <u></u></p></div><div><p class="MsoNormal">Then depending on which supervisor you use (if you have debian 10.7, that should be systemd),<br>you can form a configuration file for RTPproxy service and you can pick out which parameters to hand to the rtpproxy binary at the start time.<u></u><u></u></p></div><div><p class="MsoNormal">Options and syntax of their usage can be obtained at the user manual I mentioned above.<u></u><u></u></p></div><div><p class="MsoNormal"><u></u> <u></u></p></div><div><p class="MsoNormal">Best regards.<u></u><u></u></p></div><div><p class="MsoNormal"><u></u> <u></u></p></div><div><p class="MsoNormal"><u></u> <u></u></p></div><div><p class="MsoNormal"><u></u> <u></u></p></div></div><p class="MsoNormal"><u></u> <u></u></p><div><div><p class="MsoNormal">On Fri, Feb 12, 2021 at 9:22 AM Rick McGill - <span dir="RTL"></span><span dir="RTL"></span><span dir="RTL" lang="HE"><span dir="RTL"></span><span dir="RTL"></span>₪</span><span dir="LTR"></span><span dir="LTR"></span><span dir="LTR"></span><span dir="LTR"></span> <<a href="mailto:rick@netrovoip.com" target="_blank">rick@netrovoip.com</a>> wrote:<u></u><u></u></p></div><blockquote style="border-color:currentcolor currentcolor currentcolor rgb(204,204,204);border-style:none none none solid;border-width:medium medium medium 1pt;padding:0in 0in 0in 6pt;margin-left:4.8pt;margin-right:0in"><p class="MsoNormal" style="margin-bottom:12pt">Dear Donat,<br><br>No I did not install or compile RTPproxy yet.<br>I'm very new to OpenSIPs but have knowledge in other areas of Telco.<br><br>I'm using the OpenSIPS quick start guides. Surprised that RTPproxy is not even mentioned in them considering the need for it to get OpenSIPs to work.<br><br>Anyway thanks for your reply. Just your questions got me pointed in the right direction.<br><br><br>------------------------------------------------------------------------------------------------------------------------<br>Rick McGill – CEO<br><a href="mailto:Rick@NetroVOIP.com" target="_blank">Rick@NetroVOIP.com</a> | <a href="mailto:Rick@NetropolitanWorks.com" target="_blank">Rick@NetropolitanWorks.com</a> <br>Thailand: +66-2105-4262 x1001 | USA: +1-737-237-2030 | Mobile: +66-85557-3000<br>Support:: +66-97047-2000 | SKYPE & LINE ID: NetroVOIP | <a href="mailto:Support@NetroVOIP.com" target="_blank">Support@NetroVOIP.com</a><br> <span dir="RTL"></span><span dir="RTL"></span><span dir="RTL" lang="HE"><span dir="RTL"></span><span dir="RTL"></span>₪</span><span dir="LTR"></span><span dir="LTR"></span><span dir="LTR"></span><span dir="LTR"></span> <a href="http://www.NetroVOIP.com" target="_blank">www.NetroVOIP.com</a> Telecommunications / Video Consulting & Solutions Provider<br>-------------------------------------------------------------------------------------------------------------------------- <br><br>From: Donat Zenichev <<a href="mailto:donat.zenichev@gmail.com" target="_blank">donat.zenichev@gmail.com</a>> <br>Sent: Thursday, February 11, 2021 2:37 PM<br>To: OpenSIPS users mailling list <<a href="mailto:users@lists.opensips.org" target="_blank">users@lists.opensips.org</a>><br>Subject: Re: [OpenSIPS-Users] OpenSIPs 3.1 New install ERROR in Logs rtpproxy<br><br>Good day Rick.<br><br>It looks like your OpenSIPS instance is complaining due to the absence of RTPproxy daemon.<br>Or at least a socket, which OpenSIPS tries to use, is not reachable for some reason (udp:localhost:12221).<br><br>Have you compiled the RTPproxy already?<br>And also could you share your configuration of rtpproxy.so ?<br><br>Best regards<br><br>On Thu, Feb 11, 2021 at 9:28 AM Rick McGill - <span dir="RTL"></span><span dir="RTL"></span><span dir="RTL" lang="HE"><span dir="RTL"></span><span dir="RTL"></span>₪</span><span dir="LTR"></span><span dir="LTR"></span><span dir="LTR"></span><span dir="LTR"></span> <mailto:<a href="mailto:rick@netrovoip.com" target="_blank">rick@netrovoip.com</a>> wrote:<br>Dear OpenSIPs Community,<br><br>I have a fresh install of OpenSIPs 3.1 on Debian 10.7<br>I have done the basic install but it is yet to be configured with any<br>gateways and only has a few test users setup on it.<br>I'm new to OpenSIPs.<br><br>The ERROR issue I'm seeing in the log files seems related to rtpproxy.<br>I’m not familiar yet with OpenSIPs so if someone could at least point in the<br>right direction to start to solve this error it might save me a lot of time<br>Googling.<br><br>-----------------------------<br>Feb 11 13:32:03 sip /usr/sbin/opensips[1704]: WARNING:rtpproxy:rtpp_test:<br>support for RTP proxy <udp:localhost:12221> has been disabled temporarily<br>Feb 11 13:32:03 sip /usr/sbin/opensips[1703]:<br>ERROR:rtpproxy:send_rtpp_command: can't send (#2 iovec buffers) command to a<br>RTP proxy (111:Connection refused)<br>Feb 11 13:32:03 sip /usr/sbin/opensips[1703]:<br>ERROR:rtpproxy:send_rtpp_command: proxy <udp:localhost:12221> does not<br>respond, disable it<br>Feb 11 13:32:03 sip /usr/sbin/opensips[1703]: WARNING:rtpproxy:rtpp_test:<br>can't get version of the RTP proxy<br>-----------------------------<br><br><br>----------------------------------------------------------------------------<br>--------------------------------------------<br>Rick McGill – CEO<br>mailto:<a href="mailto:Rick@NetroVOIP.com" target="_blank">Rick@NetroVOIP.com</a> | mailto:<a href="mailto:Rick@NetropolitanWorks.com" target="_blank">Rick@NetropolitanWorks.com</a> <br>Thailand: +66-2105-4262 x1001 | USA: +1-737-237-2030 | Mobile:<br>+66-85557-3000<br>Support:: +66-97047-2000 | SKYPE & LINE ID: NetroVOIP |<br>mailto:<a href="mailto:Support@NetroVOIP.com" target="_blank">Support@NetroVOIP.com</a> <br> <span dir="RTL"></span><span dir="RTL"></span><span dir="RTL" lang="HE"><span dir="RTL"></span><span dir="RTL"></span>₪</span><span dir="LTR"></span><span dir="LTR"></span><span dir="LTR"></span><span dir="LTR"></span> <a href="http://www.NetroVOIP.com" target="_blank">http://www.NetroVOIP.com</a> Telecommunications / Video Consulting & Solutions<br>Provider<br>----------------------------------------------------------------------------<br>---------------------------------------------- <br><br><br><br><br>_______________________________________________<br>Users mailing list<br>mailto:<a href="mailto:Users@lists.opensips.org" target="_blank">Users@lists.opensips.org</a><br><a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br><br><br>-- <br><br>Best regards,<br>Donat Zenichev<u></u><u></u></p></blockquote></div><p class="MsoNormal"><br clear="all"><br>-- <u></u><u></u></p><div><div><div><div><div><div><div><p class="MsoNormal"><u></u> <u></u></p></div><div><div><p class="MsoNormal"><span style="color:rgb(11,83,148);background:white none repeat scroll 0% 0%">Best regards,</span><u></u><u></u></p></div><div><p class="MsoNormal" style="margin-bottom:12pt"><span style="color:rgb(11,83,148);background:white none repeat scroll 0% 0%">Donat Zenichev</span><u></u><u></u></p></div></div></div></div></div></div></div></div></div></div></blockquote></div><br clear="all"><br>-- <br><div dir="ltr" class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div dir="ltr"><br></div><div dir="ltr"><div dir="ltr"><font style="background-color:rgb(255,255,255)" color="#0b5394">Best regards,<br></font></div><div dir="ltr"><font style="background-color:rgb(255,255,255)" color="#0b5394">Donat Zenichev<br><br></font></div></div></div></div></div></div></div></div>