<p></p>
<p><b>@wkampich</b> commented on this pull request.</p>

<hr>

<p>In <a href="https://github.com/kamailio/kamailio/pull/2675#discussion_r605168228">src/modules/lost/functions.c</a>:</p>
<pre style='color:#555'>> +            /* send via connection */
+               curl = httpapi.http_connect(_m, &con, NULL, &res, mtheld, &que);
+       } else {
+               /* we have no connection ... do a NAPTR lookup */
+               if(lost_parse_host(did.s, &host, &flag) > 0) {
+
+                       LM_DBG("no conn. trying NATPR lookup [%.*s]\n", host.len, host.s);
+
+                       /* remove '[' and ']' from string (IPv6) */
+                       if(flag == AF_INET6) {
+                               host.s++;
+                               host.len = host.len - 2;
+                       }
+                       /* is it a name or ip ... check nameinfo (reverse lookup) */
+                       len = 0;
+                       ipstr = lost_copy_string(host, &len);
</pre>
<p>the <code>inet_..()</code> function called in a next step requires a zero terminated string</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/2675#discussion_r605168228">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/ABO7UZNC2M7EDJEN4EC5CK3TGN2T3ANCNFSM4ZGSJGLQ">unsubscribe</a>.<img src="https://github.com/notifications/beacon/ABO7UZKPM5KMUGM7EKNTIULTGN2T3A5CNFSM4ZGSJGL2YY3PNVWWK3TUL52HS4DFWFIHK3DMKJSXC5LFON2FEZLWNFSXPKTDN5WW2ZLOORPWSZGOEVFKWUI.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/2675#discussion_r605168228",
"url": "https://github.com/kamailio/kamailio/pull/2675#discussion_r605168228",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>