Hi. 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...
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.
I'm trying to figure out way to totally avoid this use-case at all.
Regards, Sammy
On Thu, Nov 23, 2017 at 11:36 AM, Daniel Tryba d.tryba@pocos.nl wrote:
On Thu, Nov 23, 2017 at 12:14:36AM -0500, SamyGo wrote:
I've a scenario where multiple mediaservers will be registered to
Kamailio
and for any incoming call from Upstream provider I've to perform load-balancing to the actively registered media-servers.
dispatcher module does load-balancing for IP endpoints, is there any
other
module where I can perform load-balancing on registered clients(media-servers)?
If you have those mediaserver register with the same username you could simply use lookup and serial forking to loadbalance. No idea how to randomize the results from lookup though.
Kamailio (SER) - Users Mailing List sr-users@lists.kamailio.org https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users