<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body>
    <font face="Helvetica, Arial, sans-serif">Hey Sasmita,<br>
      <br>
      The rtpengine module only tries additional nodes within the
      specified set when a node is unresponsive (controlled via
      rtpengine_tout[1] and rtpengine_retr[2] params) .  If a reply is
      received, even if it's an error, then the rtpengine_xxx functions
      return an error code and SDP is left unaltered [3].<br>
      <br>
      My take on a couple possible causes of your "Ran out of ports"
      issue:<br>
      - Make sure that you properly disengage rtpengine on call
      termination/failures, and are not just relying on RTP timeouts
      from rtpengine.<br>
      - If your rtpengine servers are dis-proportionally resourced (ie
      server1 has 2X ports than server2), then you could try weighting
      your node set.<br>
      - You are simply maxing out your rtpengine servers :)<br>
      <br>
      [1] <a class="moz-txt-link-freetext" href="https://opensips.org/html/docs/modules/3.1.x/rtpengine#param_">https://opensips.org/html/docs/modules/3.1.x/rtpengine#param_</a></font><font
      face="Helvetica, Arial, sans-serif"><font face="Helvetica, Arial,
        sans-serif">rtpengine_tout</font><br>
      [2]
<a class="moz-txt-link-freetext" href="https://opensips.org/html/docs/modules/3.1.x/rtpengine#param_rtpengine_retr">https://opensips.org/html/docs/modules/3.1.x/rtpengine#param_rtpengine_retr</a><br>
      [3]
<a class="moz-txt-link-freetext" href="https://github.com/OpenSIPS/opensips/blob/cc20f738b83f5a9c7f24630309ddb5bab889bf56/modules/rtpengine/rtpengine.c#L2133-L2150">https://github.com/OpenSIPS/opensips/blob/cc20f738b83f5a9c7f24630309ddb5bab889bf56/modules/rtpengine/rtpengine.c#L2133-L2150</a><br>
      <br>
      John Burke<br>
    </font>
    <div class="moz-signature"><br>
    </div>
    <div class="moz-cite-prefix">On 10/21/21 1:45 AM, Sasmita Panda
      wrote:<br>
    </div>
    <blockquote type="cite"
cite="mid:CALf-Q46GDSAe6-E8wHAymFkXBCWDvhhFv6mynfJCHx-RCCqV2A@mail.gmail.com">
      <meta http-equiv="content-type" content="text/html; charset=UTF-8">
      <div dir="ltr">Hi , 
        <div><br>
        </div>
        <div>I have configured 2 rtpengine in opensips-2.2 as beow . </div>
        <div><br>
        </div>
        <div>modparam("rtpengine", "rtpengine_sock", "udp:<a
            href="http://192.168.131.123:22000" moz-do-not-send="true">192.168.131.123:22000</a>
          udp:<a href="http://192.168.128.199:22000"
            moz-do-not-send="true">192.168.128.199:22000</a>")</div>
        <div><br>
        </div>
        <div>My question is , If 1 rtpengine has port outage and give
          the error as below </div>
        <div><b>" ERROR:rtpengine:rtpe_function_call: proxy replied with
            error: Ran out of ports"</b></div>
        <div>in tat case will opensips try the same call to connect with
          other Rtpengine ? </div>
        <div><br>
        </div>
        <div>How to overcome this condition ?</div>
        <div><b><br clear="all">
          </b>
          <div>
            <div dir="ltr" class="gmail_signature"
              data-smartmail="gmail_signature">
              <div dir="ltr">
                <div>
                  <div dir="ltr"><b><i>Thanks & Regards</i></b>
                    <div><i>Sasmita Panda</i></div>
                    <div><i>Senior Network Testing and Software Engineer</i></div>
                    <div><i>3CLogic , ph:07827611765</i></div>
                  </div>
                </div>
              </div>
            </div>
          </div>
        </div>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <pre class="moz-quote-pre" wrap="">_______________________________________________
Users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a>
<a class="moz-txt-link-freetext" href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a>
</pre>
    </blockquote>
    <br>
  </body>
</html>