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 ?
Thanks
With Regards
Ali Jawad
Ali Jawad schrieb:
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 ?
Yes. Just add a second listen=..... statement and then use force_send_socket() before t_relay to choose the proper source IP
regards klaus
Thanks
With Regards
Ali Jawad
Users mailing list Users@lists.kamailio.org http://lists.kamailio.org/cgi-bin/mailman/listinfo/users
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.
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