Gabriel,You can't really set a call limit if you perform the redirects statelessly. Basically the server wouldn't know the call count per server if you did that.
What I see most people do here is to add some sort of header like X-Original-IP with the original IP of the request. Then on the destination server(s), use that header if it is present. Of course, you should really remove any existing X-Original-IP headers before adding one to keep users from spoofing. -Brett On Wed, Aug 12, 2009 at 2:52 PM, Gabriel Georgescu <[email protected]>wrote: > Hi List, > > Can anybody give me an ideea? I try to implement a load balancing > scenario or call distribution to a farm of independent voip servers, > but the original caller IP has to be preserved. Because these servers > have their own billing based on original caller IP. > I understand that it might be possible to do this by answering to the > initial request with a 'redirect' message specifying eafch time the > new server IP. > Is this working, or is this the best way to do it? > Also I want to be able to probe if the independent servers are alive > and set a maximum calls redirected/minute limit for each server. > Can all this be done with opensips? > > Thanks in advance, > Gabriel > > > _______________________________________________ > Users mailing list > [email protected] > http://lists.opensips.org/cgi-bin/mailman/listinfo/users >
_______________________________________________ Users mailing list [email protected] http://lists.opensips.org/cgi-bin/mailman/listinfo/users
