<p>I see that the comparison of the IPs is done with string operations. That's ok for ipv4, but can be a mismatch with ipv6 because there can be different forms of the same address.</p>
<p>I suggest to convert the the ip in sdp to binary struct and compare with the src ip which is in binary struct -- see str2ipxbuf() or str2ipx() and ip_addr_cmp() functions/macros.</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/pull/2045?email_source=notifications&email_token=ABO7UZMLHXHUVX335EZ37QLQGOE7VA5CNFSM4IPMS3X2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD5DTWJQ#issuecomment-524761894">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/ABO7UZLFRQVNZ6M2DCHBWPTQGOE7VANCNFSM4IPMS3XQ">mute the thread</a>.<img src="https://github.com/notifications/beacon/ABO7UZO6EJEMWPFTHJK64YTQGOE7VA5CNFSM4IPMS3X2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD5DTWJQ.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/pull/2045?email_source=notifications\u0026email_token=ABO7UZMLHXHUVX335EZ37QLQGOE7VA5CNFSM4IPMS3X2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD5DTWJQ#issuecomment-524761894",
"url": "https://github.com/kamailio/kamailio/pull/2045?email_source=notifications\u0026email_token=ABO7UZMLHXHUVX335EZ37QLQGOE7VA5CNFSM4IPMS3X2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD5DTWJQ#issuecomment-524761894",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>