<p></p>
<p dir="auto">The mhomed tries to query the IP routing table from OS to see what's the network interface/ip that has a route to target. If it happens that the virtual IP has a route to the target, no matter it is internal or external, then it is used.</p>
<p dir="auto">Moreover, as I observed in some cases the virtual IP, if it is like a second IP associated to the same network interface/card, is not properly reported and the target ip of incoming traffic, again, it is more from OS point of view.</p>
<p dir="auto">You have to use force send socket to work around it, or if you find a better solution to push in the c code, just make a pull request. I am closing this one, it is more about using kamailio with current features, if you want to discuss further, use the <a href="mailto:sr-users@lists.kamailio.org">sr-users@lists.kamailio.org</a> mailing lists, maybe users have further hints and tell OS config options that can help, from developer point of view, receive/send over UDP is done using underlying OS API.</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />Reply to this email directly, <a href="https://github.com/kamailio/kamailio/issues/3002#issuecomment-1012950325">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/ABO7UZJBDDRY7H65P55GPDDUV7UCFANCNFSM5L4WP4OQ">unsubscribe</a>.<br />Triage notifications on the go with GitHub Mobile for <a href="https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675">iOS</a> or <a href="https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub">Android</a>.
<br />You are receiving this because you are subscribed to this thread.<img src="https://github.com/notifications/beacon/ABO7UZIL54KFIT7DQ2LUWNTUV7UCFA5CNFSM5L4WP4O2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOHRQGKNI.gif" height="1" width="1" alt="" /><span style="color: transparent; font-size: 0; display: none; visibility: hidden; overflow: hidden; opacity: 0; width: 0; height: 0; max-width: 0; max-height: 0; mso-hide: all">Message ID: <span><kamailio/kamailio/issues/3002/1012950325</span><span>@</span><span>github</span><span>.</span><span>com></span></span></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/kamailio/kamailio/issues/3002#issuecomment-1012950325",
"url": "https://github.com/kamailio/kamailio/issues/3002#issuecomment-1012950325",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>