[OpenSIPS-Users] Redirect to independent servers
Bogdan-Andrei Iancu
bogdan at voice-system.ro
Thu Aug 13 18:41:48 CEST 2009
Hi Gabriel
ok, but what exactly it is looking at in the SIP message ? because
there are parts of the message you can change, other you cannot
change....Push a question to the vendor of the software.
Regards,
Bogdan
Gabriel Georgescu wrote:
> Hi,
>
> The software looks at SIP level for the caller's IP.
> I do not know exactly if in Contact header or in Owner address from
> message body but in any way it is RFC compliant and this canot be changed.
>
> Best regards,
> Gabriel
>
>
> At 11:47 AM 8/13/2009, Bogdan-Andrei Iancu wrote:
>
>> Hi Gabriel,
>>
>> But the software you mentioned, where is it looking for the caller's IP
>> - network level? sip level ?
>>
>> Regards,
>> Bogdan
>>
>> Gabriel Georgescu wrote:
>>
>>> Thank you for your detailed answer Brett!
>>> 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.
>>>
>>>
>>> At 12:58 AM 8/13/2009, Brett Nemeroff wrote:
>>>
>>>> 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 <mailto: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
>>>>
More information about the Users
mailing list