<!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>Not really. the weights are used only for selection (from the
      entire set!) - if you want to achieve something similar, use
      weight 0 for the rtpp which are only for "backup".<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 02:16 PM, Nick Altmann wrote:
    <blockquote
cite="mid:CAJOe1EO87X_v2t6ta5ivLLiyrTw79GPciexU9JxMRLQaxfBOJg@mail.gmail.com"
      type="cite">
      <div><span style="font-family: arial,sans-serif; font-size: 13px;">Will
          this:</span></div>
      <span style="font-family: arial,sans-serif; font-size: 13px;">modparam("rtpproxy",
        "rtpproxy_sock", "3 == udp:c.c.c.c:22222=10 udp:d.</span><span
        style="font-family: arial,sans-serif; font-size: 13px;">d.d.d:22222=10
        udp:<a moz-do-not-send="true" href="http://1.1.1.1">1.1.1.1</a>:</span><span
        style="font-family: arial,sans-serif; font-size: 13px;">22222=20
        udp:2.2.2.2:22222=20 udp:3.3.3.3:22222=20 udp:4.4.4.4:22222=20")</span><br>
      <div class="gmail_extra"><br>
      </div>
      <div class="gmail_extra">works as I expected?</div>
      <div class="gmail_extra"><br>
      </div>
      <div class="gmail_extra">I expect it to use c.c.c.c, d.d.d.d. If
        c.c.c.c and d.d.d.d are offline, then use 1.1.1.1, 2.2.2.2,
        3.3.3.3, 4.4.4.4.</div>
      <div class="gmail_extra"><br clear="all">
        --<br>
        Nick<br>
        <br>
        <br>
        <div class="gmail_quote">2012/12/5 Bogdan-Andrei Iancu <span
            dir="ltr">&lt;<a moz-do-not-send="true"
              href="mailto:bogdan@opensips.org" target="_blank">bogdan@opensips.org</a>&gt;</span><br>
          <blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt
            0.8ex; border-left: 1px solid rgb(204, 204, 204);
            padding-left: 1ex;">
            <div 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 cols="72">Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
<a moz-do-not-send="true" href="http://www.opensips-solutions.com" target="_blank">http://www.opensips-solutions.com</a></pre>
              <div>
                <div class="h5"> <br>
                  On 12/05/2012 10:10 AM, Nick Altmann wrote: </div>
              </div>
              <blockquote type="cite">
                <div>
                  <div class="h5">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>
                  </div>
                </div>
                <pre><fieldset></fieldset>
_______________________________________________
Users mailing list
<a moz-do-not-send="true" href="mailto:Users@lists.opensips.org" target="_blank">Users@lists.opensips.org</a>
<a moz-do-not-send="true" href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a>
</pre>
              </blockquote>
            </div>
          </blockquote>
        </div>
        <br>
      </div>
    </blockquote>
  </body>
</html>