<p></p>
<h3>Description</h3>
<p>If the SIP request URI has a parameter ;user=phone, then the match with <code>myself</code> fails with error in log.</p>
<h3>Troubleshooting</h3>
<p>Sending an OPTIONS request through the proxy:</p>
<pre><code>OPTIONS sip:+358removed@example.com;user=phone SIP/2.0.
...
From: <sip:+358removed@example.com;user=phone>;tag=JJhksk01ou7PFTq8xz1-GlhgGNG-c94A.
To: <sip:+358removed@example.com;user=phone>.
...
Content-Length:  0.

</code></pre>
<p>Note: The R-URI does NOT match myself. It never does in my case unless it's an attacker.</p>
<h4>Reproduction</h4>
<p>My config is very simple in terms of aliases:</p>
<pre><code>auto_aliases=no
alias=172.29.1.21:5060
</code></pre>
<p>and in routing block:</p>
<p><code>        if (uri==myself) return;</code></p>
<p>Log shows:</p>
<pre><code>Listening on
             udp: 172.29.1.21 [172.29.1.21]:5060
Aliases:
             *: 172.29.1.21:5060

...
 7(20681) ERROR: <core> [core/resolve.c:1808]: str2ip6buf(): invalid name, no conversion to IP address possible
...
</code></pre>
<h3>Possible Solutions</h3>
<p>Sorry, I couldn't figure out where in the source this call to resolve.c functions happens.</p>
<h3>Additional Information</h3>
<ul>
<li><strong>Kamailio Version</strong> - output of <code>kamailio -v</code></li>
</ul>
<pre><code>version: kamailio 5.3.6 (x86_64/linux) bf6c08
flags: USE_TCP, USE_TLS, USE_SCTP, TLS_HOOKS, USE_RAW_SOCKS, DISABLE_NAGLE, USE_MCAST, DNS_IP_HACK, SHM_MMAP, PKG_MALLOC, Q_MALLOC, F_MALLOC, TLSF_MALLOC, DBG_SR_MEMORY, USE_FUTEX, FAST_LOCK-ADAPTIVE_WAIT, USE_DNS_CACHE, USE_DNS_FAILOVER, USE_NAPTR, USE_DST_BLACKLIST, HAVE_RESOLV_RES
ADAPTIVE_WAIT_LOOPS 1024, MAX_RECV_BUFFER_SIZE 262144, MAX_URI_SIZE 1024, BUF_SIZE 65535, DEFAULT PKG_SIZE 8MB
poll method support: poll, epoll_lt, epoll_et, sigio_rt, select.
id: bf6c08
compiled on 09:25:09 Sep 10 2020 with gcc 4.8.5
</code></pre>
<ul>
<li><strong>Operating System</strong>:</li>
</ul>
<pre><code>Amazon Linux 2  (up to date) on AWS
</code></pre>

<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/2482">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/ABO7UZNUWGNT2E55CRN2Y23SHCVJZANCNFSM4RV2G3JA">unsubscribe</a>.<img src="https://github.com/notifications/beacon/ABO7UZI3XWZWQSI5MU3ZSQLSHCVJZA5CNFSM4RV2G3JKYY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4KQ3BN4A.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/2482",
"url": "https://github.com/kamailio/kamailio/issues/2482",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>