<html>
<body>
Thank you for your detailed answer Brett!<br>
The problem with this additional X-Original-IP header is that it will not
be recognized by the software on the destination voip server. And I
cannot modify that software.<br><br>
<br>
At 12:58 AM 8/13/2009, Brett Nemeroff wrote:<br>
<blockquote type=cite class=cite cite="">Gabriel,<br>
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. <br><br>
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. <br><br>
Of course, you should really remove any existing X-Original-IP headers
before adding one to keep users from spoofing.<br><br>
-Brett<br><br>
On Wed, Aug 12, 2009 at 2:52 PM, Gabriel Georgescu
<<a href="mailto:gabrielgeo99@gmail.com">gabrielgeo99@gmail.com</a>
> wrote:<br>
<dl>
<dd>Hi List,<br><br>
<dd>Can anybody give me an ideea? I try to implement a load
balancing<br>
<dd>scenario or call distribution to a farm of independent voip
servers,<br>
<dd>but the original caller IP has to be preserved. Because these
servers<br>
<dd>have their own billing based on original caller IP.<br>
<dd>I understand that it might be possible to do this by answering to
the<br>
<dd>initial request with a 'redirect' message specifying eafch time
the<br>
<dd>new server IP.<br>
<dd>Is this working, or is this the best way to do it?<br>
<dd>Also I want to be able to probe if the independent servers are
alive<br>
<dd>and set a maximum calls redirected/minute limit for each server.<br>
<dd>Can all this be done with opensips?<br><br>
<dd>Thanks in advance,<br>
<dd>Gabriel<br><br>
<br>
<dd>_______________________________________________<br>
<dd>Users mailing list<br>
<dd><a href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a>
<br>
<dd>
<a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" eudora="autourl">
http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br><br>
</dl><br>
_______________________________________________<br>
Users mailing list<br>
Users@lists.opensips.org<br>
<a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" eudora="autourl">
http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a></blockquote>
</body>
</html>