<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
  </head>
  <body bgcolor="#ffffff" text="#000000">
    <tt>Hi Nick,<br>
      <br>
      Do not use weights 0, but something not zero, as this will affect
      the weight sum (when doing the selection).<br>
      <br>
      Try replacing the weights with 10, let's say.<br>
      <br>
      Regards,<br>
    </tt>
    <pre class="moz-signature" cols="72">Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
<a class="moz-txt-link-freetext" href="http://www.opensips-solutions.com">http://www.opensips-solutions.com</a></pre>
    <br>
    On 12/05/2012 10:10 AM, Nick Altmann wrote:
    <blockquote
cite="mid:CAJOe1ENcmXB-we7FNuqRBmTPBVd64H5uF6GK6QF-EoT5Uh0wXw@mail.gmail.com"
      type="cite">My configuration:
      <div>
        <div>modparam("rtpproxy", "rtpproxy_sock", "1 ==
          udp:1.1.1.1:22222=0 udp:2.2.2.2:22222=0 udp:3.3.3.3:22222=0
          udp:4.4.4.4:22222=0")</div>
        <div><br>
        </div>
        <div>Why used only first rtpproxy from set?</div>
        <div><br>
        </div>
        <div>My configs generated from m4 and may be minimum like this:</div>
        <div>
          <div>modparam("rtpproxy", "rtpproxy_sock", "1 ==
            udp:1.1.1.1:22222=0 udp:2.2.2.2:22222=0 udp:3.3.3.3:22222=0
            udp:4.4.4.4:22222=0")</div>
        </div>
        <div><br>
        </div>
        <div>and maximum like this:</div>
        <div>
          <div>modparam("rtpproxy", "rtpproxy_sock", "1 ==
            udp:1.1.1.1:22222=0 udp:2.2.2.2:22222=0 udp:3.3.3.3:22222=0
            udp:4.4.4.4:22222=0")</div>
        </div>
        <div>
          <div>modparam("rtpproxy", "rtpproxy_sock", "2
            == udp:a.a.a.a:22222=1 udp:b.b.b.b:22222=1 udp:1.1.1.1:22222=0
            udp:2.2.2.2:22222=0 udp:3.3.3.3:22222=0
            udp:4.4.4.4:22222=0")</div>
        </div>
        <div>
          <div>modparam("rtpproxy", "rtpproxy_sock", "3
            == udp:c.c.c.c:22222=1 udp:d.d.d.d:22222=1 udp:1.1.1.1:22222=0
            udp:2.2.2.2:22222=0 udp:3.3.3.3:22222=0
            udp:4.4.4.4:22222=0")</div>
        </div>
        <div>
          <br>
        </div>
        <div><br>
        </div>
        <div>Expected behavior:</div>
        <div>When set for set number 3 (for example):</div>
        <div>Balance between c.c.c.c and d.d.d.d, if they are not
          available, balance between 1.1.1.1, 2.2.2.2, 3.3.3.3, 4.4.4.4.</div>
        <div>For set number 1 - only balance between 1.1.1.1, 2.2.2.2,
          3.3.3.3, 4.4.4.4.</div>
        <div><br>
        </div>
        <div>How can I configure it to work as expected?</div>
        <div><br>
        </div>
        --<br>
        Nick</div>
      <pre wrap="">
<fieldset class="mimeAttachmentHeader"></fieldset>
_______________________________________________
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>
  </body>
</html>