Hi

I have a kimailio box that receives messages from one interface and send it from another interface and I use dispatcher module successfully.

Now I assigned an I range to Linux loopback interface through Linux kernel anyip feature. And I can ping the range.

 

ip -4 route add local 192.168.0.0/24 dev lo

 

I want to send messages from source of the ip in this range but kamailio cant do this in the right way.

I added this two directives to kamailio.cfg:

mhomed=yes

ip_free_bind = 1

and when I want to use an ip from the list I use

$fs=”udp:192.168.0.120:5060”;

With no luck

If I use

force_send_socket(udp:192.168.0.120:5060);

kamailio returns an error

bad force_send_socket argument: 192.168.0.120:5060 (kamailio doesn't listen on it)

and if I add listen directive for one ip like:

listen=udp:192.168.0.120:5060

everything works fine but I want to be able to use any ip from list not just one ip.

Thanks.

 

Sent from Mail for Windows