<p></p>
<p>Hi Olle,</p>
<p>internally function acts the same way as before, so for the above cases it yields the following results:</p>
<p>If there is no IP address in the rtcp attribute - nothing will be changed.</p>
<p>If param has an IPv4  - it will be replaced with the msg source IP address - if only the first argument (flags 0x02, 0x08, 0x10) is passed. Or with the IP address passed as the second argument.</p>
<p>If param contains IPv6 - nothing will be changed.</p>
<p>a possible issue, I have found in my tests, is that it is possible to pass IPv6 as a second argument to the function and it will replace IPv4 address leading to address family mismatch. (e.g c=IN IP4 2001:2345:6789:ABCD:EF01:2345:6789:ABCD)<br>
Probably should be mentioned in the nathelper admin guide.</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/2497#issuecomment-703568293">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/ABO7UZIJZYMZZPVXPDBKTP3SJGT3JANCNFSM4SEODPOQ">unsubscribe</a>.<img src="https://github.com/notifications/beacon/ABO7UZPGQCJ67SPXAI4V4ATSJGT3JA5CNFSM4SEODPO2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOFHXZTJI.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/2497#issuecomment-703568293",
"url": "https://github.com/kamailio/kamailio/pull/2497#issuecomment-703568293",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>