<p>I've applied the patch to kamailio 5.2.2 and this seems to fix the crash! Thank you very much for your help!</p>
<p>I see that Kamailio is still using source addresses where it is not listening on. Means 192.168.1.X from the example above. Do you think that's correct? In my point of view it should not do that. As I wrote above, it seems to pick the right source if plain UDP SIP is used, but not for TLS.<br>
We have one scenario here which fails if kamailio works like that. Let's say we have an Asterisk with a trunk to the listen address of kamailio (192.168.147.1). If Kamailio uses the source 192.168.1.1 instead of 192.168.147.1 Asterisk will not accept the incoming SIP message because it does not have a trunk to this IP...</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/kamailio/kamailio/issues/2028?email_source=notifications&email_token=ABO7UZNCNUSHOTXJ5R5QVRTQJEDANA5CNFSM4IJ5YDKKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD6O2PPA#issuecomment-530425788">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/ABO7UZPZPEYFEYZZAVGFAZTQJEDANANCNFSM4IJ5YDKA">mute the thread</a>.<img src="https://github.com/notifications/beacon/ABO7UZPH2ALQ64OJAIMAJG3QJEDANA5CNFSM4IJ5YDKKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD6O2PPA.gif" height="1" width="1" alt="" /></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/kamailio/kamailio/issues/2028?email_source=notifications\u0026email_token=ABO7UZNCNUSHOTXJ5R5QVRTQJEDANA5CNFSM4IJ5YDKKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD6O2PPA#issuecomment-530425788",
"url": "https://github.com/kamailio/kamailio/issues/2028?email_source=notifications\u0026email_token=ABO7UZNCNUSHOTXJ5R5QVRTQJEDANA5CNFSM4IJ5YDKKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD6O2PPA#issuecomment-530425788",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>