<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="gmail_quote"><div dir="ltr" class="gmail_attr">volga629 via Users <<a href="mailto:users@lists.opensips.org">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 .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 type="cite">
      
      
      
      <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"><span><u></u> <u></u></span></p>
        <div style="border:none;border-top:solid #b5c4df 1.0pt;padding:3.0pt 0cm 0cm 0cm">
          <p class="MsoNormal"><b><span style="font-size:12.0pt;color:black">De : </span></b><span style="font-size:12.0pt;color:black">volga629
              <a href="mailto:volga629@networklab.ca" target="_blank" rel="noreferrer"><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" target="_blank" rel="noreferrer"><alain.bieuzent@free.fr></a>,
              OpenSIPS users mailling list
              <a href="mailto:users@lists.opensips.org" target="_blank" rel="noreferrer"><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;box-sizing:border-box;border-radius:3px;font-variant-ligatures:normal;font-variant-caps:normal;text-align:start;text-decoration-style:initial;text-decoration-color:initial;overflow:auto;word-spacing:0px"><code><span style="font-size:9.0pt;font-family:Consolas;color:#24292e;border:none windowtext 1.0pt;padding:0cm">Hello Alain,<u></u><u></u></span></code></pre>
        <pre style="background:#f6f8fa"><code><span style="font-size:9.0pt;font-family:Consolas;color:#24292e;border:none windowtext 1.0pt;padding:0cm"><u></u> <u></u></span></code></pre>
        <pre style="background:#f6f8fa"><code><span style="font-size:9.0pt;font-family:Consolas;color:#24292e;border:none windowtext 1.0pt;padding:0cm">port-min = 5000<u></u><u></u></span></code></pre>
        <pre style="background:#f6f8fa"><code><span style="font-size:9.0pt;font-family:Consolas;color:#24292e;border:none windowtext 1.0pt;padding:0cm">port-max = 50000<u></u><u></u></span></code></pre>
        <pre style="background:#f6f8fa"><code><span style="font-size:9.0pt;font-family:Consolas;color:#24292e;border:none windowtext 1.0pt;padding:0cm">delete-delay = 5<u></u><u></u></span></code></pre>
        <pre style="background:#f6f8fa"><code><span style="font-size:9.0pt;font-family:Consolas;color:#24292e;border:none windowtext 1.0pt;padding:0cm">timeout = 10<u></u><u></u></span></code></pre>
        <pre style="background:#f6f8fa"><code><span style="font-size:9.0pt;font-family:Consolas;color:#24292e;border:none windowtext 1.0pt;padding:0cm">silent-timeout = 900</span></code><span style="font-size:9.0pt;font-family:Consolas;color:#24292e"><u></u><u></u></span></pre>
        <pre style="background:#f6f8fa"><span style="font-size:9.0pt;font-family:Consolas;color:#24292e"><u></u> <u></u></span></pre>
        <pre style="background:#f6f8fa"><span style="font-size:9.0pt;font-family:Consolas;color:#24292e"><u></u> <u></u></span></pre>
        <pre style="background:#f6f8fa"><span style="font-size:9.0pt;font-family:Consolas;color:#24292e">onreply_route[handle_media_reply] {<u></u><u></u></span></pre>
        <pre style="background:#f6f8fa"><span style="font-size:9.0pt;font-family:Consolas;color:#24292e">        xlog("incoming reply\n");<u></u><u></u></span></pre>
        <pre style="background:#f6f8fa"><span style="font-size:9.0pt;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:9.0pt;font-family:Consolas;color:#24292e">                if(has_body("application/sdp")) {<u></u><u></u></span></pre>
        <pre style="background:#f6f8fa"><span style="font-size:9.0pt;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:9.0pt;font-family:Consolas;color:#24292e">                }<u></u><u></u></span></pre>
        <pre style="background:#f6f8fa"><span style="font-size:9.0pt;font-family:Consolas;color:#24292e">        }<u></u><u></u></span></pre>
        <pre style="background:#f6f8fa"><span style="font-size:9.0pt;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:9.0pt;font-family:Consolas;color:#24292e">}<u></u><u></u></span></pre>
        <pre style="background:#f6f8fa"><span style="font-size:9.0pt;font-family:Consolas;color:#24292e"><u></u> <u></u></span></pre>
        <pre style="background:#f6f8fa"><span style="font-size:9.0pt;font-family:Consolas;color:#24292e">failure_route[media_delete_route] {<u></u><u></u></span></pre>
        <pre style="background:#f6f8fa"><span style="font-size:9.0pt;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:9.0pt;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:9.0pt;font-family:Consolas;color:#24292e">                rtpengine_delete();<u></u><u></u></span></pre>
        <pre style="background:#f6f8fa"><span style="font-size:9.0pt;font-family:Consolas;color:#24292e">        }<u></u><u></u></span></pre>
        <pre style="background:#f6f8fa"><span style="font-size:9.0pt;font-family:Consolas;color:#24292e">}<u></u><u></u></span></pre>
        <pre style="background:#f6f8fa"><span style="font-size:9.0pt;font-family:Consolas;color:#24292e"><u></u> <u></u></span></pre>
        <pre style="background:#f6f8fa"><span style="font-size:9.0pt;font-family:Consolas;color:#24292e">but rtpengine produce error <u></u><u></u></span></pre>
        <pre style="background:#f6f8fa"><span style="font-size:9.0pt;font-family:Consolas;color:#24292e"><u></u> <u></u></span></pre>
        <pre style="background:#f6f8fa"><span style="font-size:9.0pt;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:9.0pt;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:9.0pt;font-family:Consolas;color:#24292e"><u></u> <u></u></span></pre>
        <pre style="background:#f6f8fa"><span style="font-size:9.0pt;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:5.0pt;margin-bottom:5.0pt">
          <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"><span> </span><u></u><u></u></p>
          <p class="MsoNormal"><span> </span><u></u><u></u></p>
          <p class="MsoNormal"><span> </span><u></u><u></u></p>
          <div style="border:none;border-top:solid #b5c4df 1.0pt;padding:3.0pt 0cm 0cm 0cm">
            <p class="MsoNormal"><b><span style="font-size:12.0pt;color:black">De : </span></b><span style="font-size:12.0pt;color:black">Users <a href="mailto:users-bounces@lists.opensips.org" target="_blank" rel="noreferrer"><users-bounces@lists.opensips.org></a>
                au nom de volga629 via Users <a href="mailto:users@lists.opensips.org" target="_blank" rel="noreferrer"><users@lists.opensips.org></a><br>
                <b>Répondre à : </b>volga629 <a href="mailto:volga629@networklab.ca" target="_blank" rel="noreferrer"><volga629@networklab.ca></a>,
                OpenSIPS users mailling list <a href="mailto:users@lists.opensips.org" target="_blank" rel="noreferrer"><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" target="_blank" rel="noreferrer"><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" target="_blank" rel="noreferrer">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" target="_blank" rel="noreferrer">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" target="_blank" rel="noreferrer">https://github.com/sipwise/rtpengine/issues/946</a></span><u></u><u></u></p>
          <p> <u></u><u></u></p>
          <p style="margin-bottom:12.0pt"><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" target="_blank" rel="noreferrer">Users@lists.opensips.org</a> <a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank" rel="noreferrer">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" target="_blank" rel="noreferrer">Users@lists.opensips.org</a><br>
<a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" rel="noreferrer noreferrer" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
</blockquote></div>