[OpenSIPS-Users] Redirect to independent servers

Brett Nemeroff brett at nemeroff.com
Wed Aug 12 23:58:29 CEST 2009


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
<gabrielgeo99 at gmail.com>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
> Users at lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.opensips.org/pipermail/users/attachments/20090812/a48d111e/attachment.htm 


More information about the Users mailing list