<div dir="ltr"><div><div>Hi Naseer,<br></div> It is simple, you just need to insert different group-ids in load_balancer table and do the same at selection time.<br><br>e.g<br>if (!load_balance("30","calls","0")) { #LB failed -service full}<br>
<br></div>Here 30 is the group id based on which you can select different media servers.<br><br>Also to check the source IP you can use condition or tweak script as per requirement.<br></div><div class="gmail_extra"><br><br>
<div class="gmail_quote">On Thu, May 29, 2014 at 12:27 PM, Muhammad Naseer Bhatti <span dir="ltr"><<a href="mailto:nbhatti@gmail.com" target="_blank">nbhatti@gmail.com</a>></span> wrote:<br><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’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>
<span class="HOEnZb"><font color="#888888"><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">
-- <br>Muhammad Naseer Bhatti<br>Sent with Airmail</div></div></font></span></div><br>_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a><br>
<a 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><br clear="all"><br>-- <br><div dir="ltr"><font face="'times new roman', serif">Regards</font><div><font face="'times new roman', serif"><br></font><div><pre cols="72"><font face="'times new roman', serif">M. Salman Zafar<br>
VoIP Professional<br></font><br></pre></div></div></div>
</div>