Gabriel,<div>You can&#39;t really set a call limit if you perform the redirects statelessly. Basically the server wouldn&#39;t know the call count per server if you did that. </div><div><br></div><div>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. </div>

<div><br></div><div>Of course, you should really remove any existing X-Original-IP headers before adding one to keep users from spoofing.</div><div><br></div><div>-Brett<br><br><div class="gmail_quote">On Wed, Aug 12, 2009 at 2:52 PM, Gabriel Georgescu <span dir="ltr">&lt;<a href="mailto:gabrielgeo99@gmail.com">gabrielgeo99@gmail.com</a>&gt;</span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">Hi List,<br>
<br>
Can anybody give me an ideea? I try to implement a load balancing<br>
scenario or call distribution to a farm of independent voip servers,<br>
but the original caller IP has to be preserved. Because these servers<br>
have their own billing based on original caller IP.<br>
I understand that it might be possible to do this by answering to the<br>
initial request with a &#39;redirect&#39; message specifying eafch time the<br>
new server IP.<br>
Is this working, or is this the best way to do it?<br>
Also I want to be able to probe if the independent servers are alive<br>
and set a maximum calls redirected/minute limit for each server.<br>
Can all this be done with opensips?<br>
<br>
Thanks in advance,<br>
Gabriel<br>
<br>
<br>
_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a><br>
<a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
</blockquote></div><br></div>