<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <div class="moz-cite-prefix"><tt>You can make this more efficient by
        using the permission module with the "address" table - put your
        ips in there, put the LN group as context for the IP - and you
        can use the check_source_address() -&gt; this will return the
        context too.<br>
        <br>
        The advantage is that the address table in cached in memory, so
        you do not have any runtime db query.<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>
      On 29.05.2014 11:30, Schneur Rosenberg wrote:<br>
    </div>
    <blockquote
cite="mid:CANvjR0UKyK=-=_+8PcU3k8wG9kGgOsfW0X2RdXSocKDE63oU8g@mail.gmail.com"
      type="cite">
      <p dir="ltr">The way I did it, was to create a table of the ip's
        and which group it should use, every call does a db query, it
        may put a strain on the db if there is lots of calls, let me
        know if you have a better solution</p>
      <div class="gmail_quote">On May 29, 2014 10:28 AM, "Muhammad
        Naseer Bhatti" &lt;<a moz-do-not-send="true"
          href="mailto:nbhatti@gmail.com">nbhatti@gmail.com</a>&gt;
        wrote:<br type="attribution">
        <blockquote class="gmail_quote" style="margin:0 0 0
          .8ex;border-left:1px #ccc solid;padding-left:1ex">
          <div style="word-wrap:break-word">
            <div
style="font-family:Helvetica,Arial;font-size:13px;color:rgba(0,0,0,1.0);margin:0px;line-height:auto"><br>
            </div>
            <div
style="font-family:Helvetica,Arial;font-size:13px;color:rgba(0,0,0,1.0);margin:0px;line-height:auto">Hi,
              I am using load balancer module to load balance traffic to
              a group of media servers. Can I perform my load balancing
              based on source IP address without using the dispatcher
              module? It&#8217;s like if the request comes from a certain IP
              address, I want it to be routed to a different group of
              media servers?</div>
            <div
style="font-family:Helvetica,Arial;font-size:13px;color:rgba(0,0,0,1.0);margin:0px;line-height:auto"><br>
            </div>
            <br>
            <div>
              <div style="font-family:helvetica,arial;font-size:13px">--&nbsp;<br>
                Muhammad Naseer Bhatti<br>
                Sent with Airmail</div>
            </div>
          </div>
          <br>
          _______________________________________________<br>
          Users mailing list<br>
          <a moz-do-not-send="true"
            href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a><br>
          <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><br>
          <br>
        </blockquote>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <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>