Hello all,

 

I have a linux server with different IP.

 

eth0 -> 10.2.2.4

eth0:1 -> 10.2.2.5

 

 

I have kamailio listening on IP:

 

listen=udp:10.2.2.5:5060

listen=tcp:10.2.2.5:5060

 

and in the script I do :

 

rewritehostport("10.2.2.10:5060;transport=tcp");

 

if (!t_relay()) {

                sl_reply_error();

        }

        exit;

 

 

the problem is that t_relay is not using the IP  10.2.2.5 to forward this SIP request but the eth0 IP ( 10.2.2.4)

 

I see that they is a function force_send_socket , I need to use this function to set the correct IP used to forward the request ?

 

As I’m using only one IP 10.2.2.5 for openser, why he cannot always use this ip  as default Ip ?

 

Best regards

 

Laurent