<html><body><div style="font-family: lucida console,sans-serif; font-size: 12pt; color: #000000"><div>Hello Karsten,</div><div>The solution was for high loads to call delete under relay in my case .</div><div>In 3.1 you need change $proto.</div><div><br data-mce-bogus="1"></div><div>route[RELAY] {</div><div> if(is_method("INVITE") && $proto=="wss") {</div><div> t_on_branch("manage_wss");</div><div> } else if(<span style="caret-color: #000000; color: #000000; font-family: 'lucida console', sans-serif; font-size: 16px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-tap-highlight-color: rgba(26, 26, 26, 0.3); -webkit-text-size-adjust: none; -webkit-text-stroke-width: 0px; background-color: #ffffff; text-decoration: none; display: inline !important; float: none;" data-mce-style="caret-color: #000000; color: #000000; font-family: 'lucida console', sans-serif; font-size: 16px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-tap-highlight-color: rgba(26, 26, 26, 0.3); -webkit-text-size-adjust: none; -webkit-text-stroke-width: 0px; background-color: #ffffff; text-decoration: none; display: inline !important; float: none;">is_method("INVITE") && $proto=="tcp|udp") {</span></div><div><span style="caret-color: #000000; color: #000000; font-family: 'lucida console', sans-serif; font-size: 16px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-tap-highlight-color: rgba(26, 26, 26, 0.3); -webkit-text-size-adjust: none; -webkit-text-stroke-width: 0px; background-color: #ffffff; text-decoration: none; display: inline !important; float: none;" data-mce-style="caret-color: #000000; color: #000000; font-family: 'lucida console', sans-serif; font-size: 16px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-tap-highlight-color: rgba(26, 26, 26, 0.3); -webkit-text-size-adjust: none; -webkit-text-stroke-width: 0px; background-color: #ffffff; text-decoration: none; display: inline !important; float: none;"> route(manage_rtp);</span></div><div><span style="caret-color: #000000; color: #000000; font-family: 'lucida console', sans-serif; font-size: 16px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-tap-highlight-color: rgba(26, 26, 26, 0.3); -webkit-text-size-adjust: none; -webkit-text-stroke-width: 0px; background-color: #ffffff; text-decoration: none; display: inline !important; float: none;" data-mce-style="caret-color: #000000; color: #000000; font-family: 'lucida console', sans-serif; font-size: 16px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-tap-highlight-color: rgba(26, 26, 26, 0.3); -webkit-text-size-adjust: none; -webkit-text-stroke-width: 0px; background-color: #ffffff; text-decoration: none; display: inline !important; float: none;"><span style="caret-color: #000000; color: #000000; font-family: 'lucida console', sans-serif; font-size: 16px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-tap-highlight-color: rgba(26, 26, 26, 0.3); -webkit-text-size-adjust: none; -webkit-text-stroke-width: 0px; background-color: #ffffff; text-decoration: none; display: inline !important; float: none;" data-mce-style="caret-color: #000000; color: #000000; font-family: 'lucida console', sans-serif; font-size: 16px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-tap-highlight-color: rgba(26, 26, 26, 0.3); -webkit-text-size-adjust: none; -webkit-text-stroke-width: 0px; background-color: #ffffff; text-decoration: none; display: inline !important; float: none;"> } else if(is_method("BYE|CANCEL")) {</span></span><div style="clear: both;" data-mce-style="clear: both;"> rtpengine_delete();</div><div style="clear: both;" data-mce-style="clear: both;"> }</div><div style="clear: both;" data-mce-style="clear: both;"><br data-mce-bogus="1"></div><div style="clear: both;" data-mce-style="clear: both;"> t_relay();</div><div style="clear: both;" data-mce-style="clear: both;"> exit;</div></div><div>}</div><div><br data-mce-bogus="1"></div><div><br data-mce-bogus="1"></div><div>volga629</div><div><br></div><hr id="zwchr" data-marker="__DIVIDER__"><div data-marker="__HEADERS__"><b>From: </b>"Karsten Horsmann" <khorsmann@gmail.com><br><b>To: </b>"volga629" <volga629@networklab.ca>, "OpenSIPS users mailling list" <users@lists.opensips.org><br><b>Cc: </b>"Alain Bieuzent" <alain.bieuzent@free.fr><br><b>Sent: </b>Sunday, August 2, 2020 3:35:47 AM<br><b>Subject: </b>Re: [OpenSIPS-Users] opensips + rtpengine<br></div><div><br></div><div data-marker="__QUOTED_TEXT__"><div dir="auto">Hi Volga,<div dir="auto"><br></div><div dir="auto">did you solve that issue? Would be nice to have an solution for that. </div><div dir="auto"><br></div><div dir="auto">Kind regards </div><div dir="auto">Karsten Horsmann </div></div><br><div class="elided-text"><div dir="ltr">volga629 via Users <<a href="mailto:users@lists.opensips.org" target="_blank" rel="nofollow noopener noreferrer">users@lists.opensips.org</a>> schrieb am Mi., 18. März 2020, 16:06:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 0.8ex;border-left:1px #ccc solid;padding-left:1ex">
<div>
<p><font face="Cantarell">I will do that test. </font><br>
</p>
<div>On 3/18/20 6:37 AM, Alain Bieuzent
wrote:<br>
</div>
<blockquote>
<div>
<p class="MsoNormal"><span lang="EN-US">Hi Volga,<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p>
<p class="MsoNormal"><span lang="EN-US">Your configuration look good,<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p>
<p class="MsoNormal"><span lang="EN-US">Have you check the number of port really use by
rtpengine when you ran out of ports ? (netstat -paun | grep
rtpengine | wc -l)<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p>
<p class="MsoNormal"><span lang="EN-US">Regards<u></u><u></u></span></p>
<p class="MsoNormal"><u></u> <u></u></p>
<div style="border:none;border-top:solid #b5c4df 1pt;padding:3pt 0cm 0cm 0cm">
<p class="MsoNormal"><b><span style="font-size:12pt;color:black">De : </span></b><span style="font-size:12pt;color:black">volga629
<a href="mailto:volga629@networklab.ca" rel="noreferrer nofollow noopener noreferrer" target="_blank"><volga629@networklab.ca></a><br>
<b>Date : </b>lundi 16 mars 2020 à 20:38<br>
<b>À : </b>Alain Bieuzent <a href="mailto:alain.bieuzent@free.fr" rel="noreferrer nofollow noopener noreferrer" target="_blank"><alain.bieuzent@free.fr></a>,
OpenSIPS users mailling list
<a href="mailto:users@lists.opensips.org" rel="noreferrer nofollow noopener noreferrer" target="_blank"><users@lists.opensips.org></a><br>
<b>Objet : </b>Re: [OpenSIPS-Users] opensips + rtpengine<u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<pre style="background:#f6f8fa;border-radius:3px;word-spacing:0px"><code><span style="font-size:9pt;font-family:'consolas';color:#24292e;border:none 1pt;padding:0cm">Hello Alain,<u></u><u></u></span></code></pre>
<pre style="background:#f6f8fa"><code><span style="font-size:9pt;font-family:'consolas';color:#24292e;border:none 1pt;padding:0cm"><u></u> <u></u></span></code></pre>
<pre style="background:#f6f8fa"><code><span style="font-size:9pt;font-family:'consolas';color:#24292e;border:none 1pt;padding:0cm">port-min = 5000<u></u><u></u></span></code></pre>
<pre style="background:#f6f8fa"><code><span style="font-size:9pt;font-family:'consolas';color:#24292e;border:none 1pt;padding:0cm">port-max = 50000<u></u><u></u></span></code></pre>
<pre style="background:#f6f8fa"><code><span style="font-size:9pt;font-family:'consolas';color:#24292e;border:none 1pt;padding:0cm">delete-delay = 5<u></u><u></u></span></code></pre>
<pre style="background:#f6f8fa"><code><span style="font-size:9pt;font-family:'consolas';color:#24292e;border:none 1pt;padding:0cm">timeout = 10<u></u><u></u></span></code></pre>
<pre style="background:#f6f8fa"><code><span style="font-size:9pt;font-family:'consolas';color:#24292e;border:none 1pt;padding:0cm">silent-timeout = 900</span></code><span style="font-size:9pt;font-family:'consolas';color:#24292e"><u></u><u></u></span></pre>
<pre style="background:#f6f8fa"><span style="font-size:9pt;font-family:'consolas';color:#24292e"><u></u> <u></u></span></pre>
<pre style="background:#f6f8fa"><span style="font-size:9pt;font-family:'consolas';color:#24292e"><u></u> <u></u></span></pre>
<pre style="background:#f6f8fa"><span style="font-size:9pt;font-family:'consolas';color:#24292e">onreply_route[handle_media_reply] {<!-- --><u></u><u></u></span></pre>
<pre style="background:#f6f8fa"><span style="font-size:9pt;font-family:'consolas';color:#24292e"> xlog("incoming reply\n");<u></u><u></u></span></pre>
<pre style="background:#f6f8fa"><span style="font-size:9pt;font-family:'consolas';color:#24292e"> if(is_method("INVITE|UPDATE") && t_check_status("200|183")) {<!-- --><u></u><u></u></span></pre>
<pre style="background:#f6f8fa"><span style="font-size:9pt;font-family:'consolas';color:#24292e"> if(has_body("application/sdp")) {<!-- --><u></u><u></u></span></pre>
<pre style="background:#f6f8fa"><span style="font-size:9pt;font-family:'consolas';color:#24292e"> rtpengine_answer("trust-address RTP/AVP replace-session-connection replace-origin ICE=remove");<u></u><u></u></span></pre>
<pre style="background:#f6f8fa"><span style="font-size:9pt;font-family:'consolas';color:#24292e"> }<u></u><u></u></span></pre>
<pre style="background:#f6f8fa"><span style="font-size:9pt;font-family:'consolas';color:#24292e"> }<u></u><u></u></span></pre>
<pre style="background:#f6f8fa"><span style="font-size:9pt;font-family:'consolas';color:#24292e"> t_on_failure("media_delete_route");<u></u><u></u></span></pre>
<pre style="background:#f6f8fa"><span style="font-size:9pt;font-family:'consolas';color:#24292e">}<u></u><u></u></span></pre>
<pre style="background:#f6f8fa"><span style="font-size:9pt;font-family:'consolas';color:#24292e"><u></u> <u></u></span></pre>
<pre style="background:#f6f8fa"><span style="font-size:9pt;font-family:'consolas';color:#24292e">failure_route[media_delete_route] {<!-- --><u></u><u></u></span></pre>
<pre style="background:#f6f8fa"><span style="font-size:9pt;font-family:'consolas';color:#24292e"> if(t_check_status("[56][0-9][0-9]|408|[60][0-9][0-9]")) {<!-- --><u></u><u></u></span></pre>
<pre style="background:#f6f8fa"><span style="font-size:9pt;font-family:'consolas';color:#24292e"> xlog("Call with Reply [$rs] make it close");<u></u><u></u></span></pre>
<pre style="background:#f6f8fa"><span style="font-size:9pt;font-family:'consolas';color:#24292e"> rtpengine_delete();<u></u><u></u></span></pre>
<pre style="background:#f6f8fa"><span style="font-size:9pt;font-family:'consolas';color:#24292e"> }<u></u><u></u></span></pre>
<pre style="background:#f6f8fa"><span style="font-size:9pt;font-family:'consolas';color:#24292e">}<u></u><u></u></span></pre>
<pre style="background:#f6f8fa"><span style="font-size:9pt;font-family:'consolas';color:#24292e"><u></u> <u></u></span></pre>
<pre style="background:#f6f8fa"><span style="font-size:9pt;font-family:'consolas';color:#24292e">but rtpengine produce error <u></u><u></u></span></pre>
<pre style="background:#f6f8fa"><span style="font-size:9pt;font-family:'consolas';color:#24292e"><u></u> <u></u></span></pre>
<pre style="background:#f6f8fa"><span style="font-size:9pt;font-family:'consolas';color:#24292e">Mar 16 17:46:40 Proxy /usr/sbin/opensips[11348]: ERROR:rtpengine:rtpe_function_call: proxy replied with error: Ran out of ports<u></u><u></u></span></pre>
<pre style="background:#f6f8fa"><span style="font-size:9pt;font-family:'consolas';color:#24292e">Mar 16 17:46:40 Proxy /usr/sbin/opensips[11365]: ERROR:rtpengine:rtpe_function_call: proxy replied with error: Unknown call-id<u></u><u></u></span></pre>
<pre style="background:#f6f8fa"><span style="font-size:9pt;font-family:'consolas';color:#24292e"><u></u> <u></u></span></pre>
<pre style="background:#f6f8fa"><span style="font-size:9pt;font-family:'consolas';color:#24292e">volga629<u></u><u></u></span></pre>
<div>
<p class="MsoNormal">On 3/15/20 9:04 AM, Alain Bieuzent wrote:<u></u><u></u></p>
</div>
<blockquote style="margin-top:5pt;margin-bottom:5pt">
<p class="MsoNormal"><span lang="EN-US">Hi,</span><u></u><u></u></p>
<p class="MsoNormal"><span lang="EN-US"> </span><u></u><u></u></p>
<p class="MsoNormal"><span lang="EN-US">Can you share value of delete-delay,
port-min and port-max of your rtpengine configuration.</span><u></u><u></u></p>
<p class="MsoNormal"><span lang="EN-US"> </span><u></u><u></u></p>
<p class="MsoNormal"><span lang="EN-US">Have you also check if you handle
rtpengine_delete on failed calls (in case sip cause code
4XX, 5XX and 6XX).</span><u></u><u></u></p>
<p class="MsoNormal"><span lang="EN-US"> </span><u></u><u></u></p>
<p class="MsoNormal"><span lang="EN-US">At @job, we handle max 6000 calls on a 6
cores servers without any issue.</span><u></u><u></u></p>
<p class="MsoNormal"><span lang="EN-US"> </span><u></u><u></u></p>
<p class="MsoNormal"><span lang="EN-US">Regards</span><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>
<div style="border:none;border-top:solid #b5c4df 1pt;padding:3pt 0cm 0cm 0cm">
<p class="MsoNormal"><b><span style="font-size:12pt;color:black">De : </span></b><span style="font-size:12pt;color:black">Users <a href="mailto:users-bounces@lists.opensips.org" rel="noreferrer nofollow noopener noreferrer" target="_blank"><users-bounces@lists.opensips.org></a>
au nom de volga629 via Users <a href="mailto:users@lists.opensips.org" rel="noreferrer nofollow noopener noreferrer" target="_blank"><users@lists.opensips.org></a><br>
<b>Répondre à : </b>volga629 <a href="mailto:volga629@networklab.ca" rel="noreferrer nofollow noopener noreferrer" target="_blank"><volga629@networklab.ca></a>,
OpenSIPS users mailling list <a href="mailto:users@lists.opensips.org" rel="noreferrer nofollow noopener noreferrer" target="_blank"><users@lists.opensips.org></a><br>
<b>Date : </b>vendredi 13 mars 2020 à 18:39<br>
<b>À : </b><a href="mailto:users@lists.opensips.org" rel="noreferrer nofollow noopener noreferrer" target="_blank"><users@lists.opensips.org></a><br>
<b>Objet : </b>[OpenSIPS-Users] opensips + rtpengine</span><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"> <u></u><u></u></p>
</div>
<p><span style="font-family:'cantarell'">Hello Everyone,</span><u></u><u></u></p>
<p><span style="font-family:'cantarell'">Might be somebody can
point me to right place.</span><u></u><u></u></p>
<p><span style="font-family:'cantarell'">Under load Rtpengine on
server with 12 core can't pass 400 channels/sessions.</span><u></u><u></u></p>
<p><span style="font-family:'cantarell'">Mar 13 18:14:53
CentOS-77-64-minimal rtpengine[14588]: WARNING:
[1b17077c-654e-11ea-bd31-87b1c8fc-849]: Protocol error in
packet from <a href="http://136.243.43.23:47763" rel="noreferrer nofollow noopener noreferrer" target="_blank">136.243.43.23:47763</a>: Ran out of ports
[d3:sdp289:</span><u></u><u></u></p>
<p><span style="font-family:'cantarell'">WARNING:
[1be05a46-654e-11ea-b136-573b6201-849]: Protocol error in
packet from <a href="http://136.243.43.23:55847" rel="noreferrer nofollow noopener noreferrer" target="_blank">136.243.43.23:55847</a>: Unknown call-id
[d3:sdp250:</span><u></u><u></u></p>
<p><span style="font-family:'cantarell'">It like it not closing
calls properly, but I am running rtpengine_delete() in
loose _route on BYE or CANCEL.</span><u></u><u></u></p>
<p> <u></u><u></u></p>
<p><span style="font-family:'cantarell'">Here are more details</span><u></u><u></u></p>
<p><br>
<span style="font-family:'cantarell'"><a href="https://github.com/sipwise/rtpengine/issues/946" rel="noreferrer nofollow noopener noreferrer" target="_blank">https://github.com/sipwise/rtpengine/issues/946</a></span><u></u><u></u></p>
<p> <u></u><u></u></p>
<p style="margin-bottom:12pt"><span style="font-family:'cantarell'"># Handle requests within SIP
dialogs<br>
route[handle_sequential] {<!-- --><br>
if (has_totag()) {<!-- --><br>
if (loose_route()) {<!-- --><br>
# BYE rtpengine_delete()<br>
if (is_method("BYE|CANCEL")) {<!-- --><br>
xlog("LOOSE_ROUTE:DBG: [$rm]
trying delete rtpengine\n");<br>
rtpengine_delete();<br>
xlog("Average MOS of the entire
call is $rtpstat(MOS-average)\r\n");<br>
xlog("Average MOS of caller is
$(rtpstat(MOS-average)[$ft])\r\n");<br>
xlog("Average MOS of callee is
$(rtpstat(MOS-average)[$tt])\r\n");<br>
xlog("Min MOS of caller is
$(rtpstat(MOS-min)[$ft]) reported at
$(rtpstat(MOS-min-at)[$ft])\r\n");<br>
}<br>
t_relay();<br>
exit;</span><u></u><u></u></p>
<p><span style="font-family:'cantarell'">volga629</span><u></u><u></u></p>
<p class="MsoNormal">_______________________________________________
Users mailing list <a href="mailto:Users@lists.opensips.org" rel="noreferrer nofollow noopener noreferrer" target="_blank">Users@lists.opensips.org</a> <a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" rel="noreferrer nofollow noopener noreferrer" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a>
<u></u><u></u></p>
</blockquote>
</div>
</blockquote>
</div>
_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.opensips.org" rel="noreferrer nofollow noopener noreferrer" target="_blank">Users@lists.opensips.org</a><br>
<a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" rel="noreferrer%20noreferrer nofollow noopener noreferrer" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
</blockquote></div><br></div></div></body></html>