<p></p>
<h3>Description</h3>
<p>According <a href="https://tools.ietf.org/html/rfc5952#section-4.2.1" rel="nofollow">rfc5952#section-4.2.1</a></p>
<blockquote>
<p><strong>4.2.1.  Shorten as Much as Possible</strong><br>
The use of the symbol "::" MUST be used to its maximum capability.<br>
For example, 2001:db8:0:0:0:0:2:1 must be shortened to 2001:db8::2:1.</p>
</blockquote>
<p>The current Kamailio master does not use <code>::</code> inside IPv6 address representation. Example</p>
<pre><code>INVITE user@example.com SIP/2.0
Record-Route: <sip:[2600:1f1c:6d5:aa02:0:0:0:4];transport=tcp;r2=on;lr=on;ftag=gK0c013f75>
Record-Route: <sip:3.101.84.4;r2=on;lr=on;ftag=gK0c013f75>
Via: SIP/2.0/TCP [2600:1f1c:6d5:aa02:0:0:0:4];branch=z9hG4bK66f8.35b78246c71e1583d2785ae652c42ed5.0
</code></pre>
<h3>Possible Solutions</h3>
<p>Port feature from another IPv6 address formatting functions with RFC5952 support.<br>
Example: function <a href="https://www.ncbi.nlm.nih.gov/IEB/ToolBox/CPP_DOC/doxyhtml/ncbi__ipv6_8c_source.html" rel="nofollow"><code>x_IPv6ToString</code></a>, string 404 - 440.</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/2510">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/ABO7UZONHNTYNBUNPTBJO6TSLHZ5PANCNFSM4SUSLKFQ">unsubscribe</a>.<img src="https://github.com/notifications/beacon/ABO7UZN622EVENYXM7TNN6LSLHZ5PA5CNFSM4SUSLKF2YY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4KZE4JQQ.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/2510",
"url": "https://github.com/kamailio/kamailio/issues/2510",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>