<p></p>
<h3>Description</h3>
<p>In the case of using FQDN in<br>
<code>listen = ... advertise ... </code><br>
FQDN is populated in the <code>Record-Route</code> header. In this case <code>is_first_hop()</code> function is not returning true even if <code>FQDN == myself</code> in replies.</p>
<h4>Reproduction</h4>
<p>Add FQND in advertise and check <code>is_first_hop()</code> result in a case of reply</p>
<h4>Log Messages</h4>
<pre><code>siputils [sipops.c:185]: is_first_hop(): uri host is not an ip address
</code></pre>
<h3>Possible Solutions</h3>
<p>Not use <code>is_first_hop()</code> in the case of reply/FQDN in advertising.</p>
<h3>Additional Information</h3>
<p>version: kamailio 5.4.4 (x86_64/linux) e16352<br>
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<br>
ADAPTIVE_WAIT_LOOPS 1024, MAX_RECV_BUFFER_SIZE 262144, MAX_URI_SIZE 1024, BUF_SIZE 65535, DEFAULT PKG_SIZE 8MB<br>
poll method support: poll, epoll_lt, epoll_et, sigio_rt, select.<br>
id: e16352<br>
compiled on 09:50:10 May  7 2021 with gcc 4.8.5</p>
<ul>
<li><strong>Operating System</strong>:</li>
</ul>
<pre><code># uname -a
Linux fe-0513-2-dev 3.10.0-1160.21.1.el7.x86_64 #1 SMP Tue Mar 16 18:28:22 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux

</code></pre>
<p><a href="https://github.com/kamailio/kamailio/blob/02240711239149e2f5c4890a70ab158d10fa8187/src/modules/siputils/sipops.c#L183">https://github.com/kamailio/kamailio/blob/02240711239149e2f5c4890a70ab158d10fa8187/src/modules/siputils/sipops.c#L183</a></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/2732">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/ABO7UZOXAUVM4LUHTXTLTSTTM6AOZANCNFSM44QNZLCA">unsubscribe</a>.<img src="https://github.com/notifications/beacon/ABO7UZOZI43YMIABOFEQ3UDTM6AOZA5CNFSM44QNZLCKYY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4NFJ66PQ.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/2732",
"url": "https://github.com/kamailio/kamailio/issues/2732",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>