First, you have to set mhomed=1.
However, if you have an IP route from the first network interface to the second target
address, then it is not going to help. The kernel will say that the first network
interface is still good to use. You have to isolate ip routing between the two networks.
Via DNS SRV is no way to specify what local socket/network interface to use, Kamailio
relies on the kernel to say which local ip has a route to the target.
If you cannot isolate the IP routing to get it work with mhomed=1, the alternative is to
use dispatcher where you can specify the local socket for each destination.
In case you want to discuss further, then use sr-users mailing list. This doesn't look
like an issue in the code.
--
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/issues/2152#issuecomment-559373063