[Kamailio-Users] Changing Source IP per Route

Daniel-Constantin Mierla miconda at gmail.com
Fri Sep 12 16:37:54 CEST 2008



On 09/11/08 17:22, Iñaki Baz Castillo wrote:
> El Jueves, 11 de Septiembre de 2008, Ali Jawad escribió:
>   
>> Hi All
>>
>> Can the following be achieved.:
>>
>>
>>
>> I do have a subscription at a carrier with two routes, on normal route
>> and one premium route. The problem is that I do have to use a different
>> source IP with each of these two routes. This would be easy to achieve
>> with two different openser boxes. However I do have only one at current
>> time.
>>
>> So, is it possible to use a different source IP per route ?
>>     
>
> You can add the second IP to your host and use "force_socket" function (or 
> something called similar) to choose between them.
>
> Also, you can add a route in you Kamailio Linux/BSD so traffic to the second 
> carrier will use a different interface. Not 100% sure, but I think Kamailio 
> will set the correct source IP in the "Via" and "Record-Route" headers.
>   
it adds proper IP address. In case the IP where the request is received 
is different than the one used for sending, you will see two via/record 
route headers so the within dialog messages are routed properly.


Cheers,
Daniel

-- 
Daniel-Constantin Mierla
http://www.asipto.com





More information about the Users mailing list