<div dir="ltr">Hi. <div>So thats what I've done already before posting this question; even if I've to do loadbalancing I can use the "fetch_registered_contacts" function, loop over the online gateways on that 1 RURI and "append_branches()" with sorted "q" values... </div><div><br></div><div>That all depends on the accurate measurement of the number of active calls, since requirement is to perform load-balancing based on call loads. Simple load-balancing can be achieved already by manipulating "q" values....again too complicated to work accurately 100% of the time. </div><div><br></div><div>I'm trying to figure out way to totally avoid this use-case at all.</div><div><br></div><div>Regards,</div><div>Sammy</div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Nov 23, 2017 at 11:36 AM, Daniel Tryba <span dir="ltr"><<a href="mailto:d.tryba@pocos.nl" target="_blank">d.tryba@pocos.nl</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">On Thu, Nov 23, 2017 at 12:14:36AM -0500, SamyGo wrote:<br>
> I've a scenario where multiple mediaservers will be registered to Kamailio<br>
> and for any incoming call from Upstream provider I've to perform<br>
> load-balancing to the actively registered media-servers.<br>
><br>
> dispatcher module does load-balancing for IP endpoints, is there any other<br>
> module where I can perform load-balancing on registered<br>
> clients(media-servers)?<br>
<br>
</span>If you have those mediaserver register with the same username you could<br>
simply use lookup and  serial forking to loadbalance. No idea how to<br>
randomize the results from lookup though.<br>
<br>
<br>
______________________________<wbr>_________________<br>
Kamailio (SER) - Users Mailing List<br>
<a href="mailto:sr-users@lists.kamailio.org">sr-users@lists.kamailio.org</a><br>
<a href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users" rel="noreferrer" target="_blank">https://lists.kamailio.org/<wbr>cgi-bin/mailman/listinfo/sr-<wbr>users</a><br>
</blockquote></div><br></div>