Because it determines the proper route based on the method described in the
'mhomed' section of the docs.
Your choices are either to let Kamailio do that, or set mhomed=0 and choose the egress
interface manually based on your own criteria. You can do this by setting $fs prior to
t_relay(), e.g.
$fs = 'udp:x.x.x.x:5060';
Bear in mind that this combination of transport, listener and port must correspond exactly
to one of the listeners.
It sounds like that's what you need to do.
-- Alex
--
Sent via mobile, please forgive typos and brevity.