<p>Just tested new patch and it seems to fix the problem. Thank you for your fast fix.</p>
<pre><code>kamcmd> dns.lookup NAPTR sip.fi.setera.com
{
name: sip.example.com
type: NAPTR
size_bytes: 312
reference_counter: 2
permanent: no
expires: 3541
last_used: 0
negative_entry: no
records: {
{
rr_idx: 0
rr_order: 100
rr_preference: 50
rr_flags: s
rr_service: SIP+D2U
rr_regexp:
rr_regexp: _sip._udp.sip.example.com
rr_permanent: no
rr_expires: 3541
}
{
rr_idx: 1
rr_order: 102
rr_preference: 50
rr_flags: s
rr_service: SIP+D2T
rr_regexp:
rr_regexp: _sip._tcp.sip.example.com
rr_permanent: no
rr_expires: 3541
}
}
}
</code></pre>
<pre><code># kamailio -v
version: kamailio 5.2.0-pre0 (x86_64/linux) 044cde
flags: STATS: Off, USE_TCP, USE_TLS, USE_SCTP, TLS_HOOKS, USE_RAW_SOCKS, DISABLE_NAGLE, USE_MCAST, DNS_IP_HACK, SHM_MEM, 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: 044cde
compiled on 06:23:13 Oct 19 2018 with gcc 6.3.0
</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/1680#issuecomment-431260177">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AF36Zfa0F5TonQZRTkBkXX05pK6ysc-Jks5umXMggaJpZM4XtLDe">mute the thread</a>.<img src="https://github.com/notifications/beacon/AF36ZTXkomWhpGcApNuQK8LERgF4mm4Pks5umXMggaJpZM4XtLDe.gif" height="1" width="1" alt="" /></p>
<script type="application/json" data-scope="inboxmarkup">{"api_version":"1.0","publisher":{"api_key":"05dde50f1d1a384dd78767c55493e4bb","name":"GitHub"},"entity":{"external_key":"github/kamailio/kamailio","title":"kamailio/kamailio","subtitle":"GitHub repository","main_image_url":"https://assets-cdn.github.com/images/email/message_cards/header.png","avatar_image_url":"https://assets-cdn.github.com/images/email/message_cards/avatar.png","action":{"name":"Open in GitHub","url":"https://github.com/kamailio/kamailio"}},"updates":{"snippets":[{"icon":"PERSON","message":"@Joonake in #1680: Just tested new patch and it seems to fix the problem. Thank you for your fast fix.\r\n\r\n```\r\nkamcmd\u003e dns.lookup NAPTR sip.fi.setera.com\r\n{\r\n\tname: sip.example.com\r\n\ttype: NAPTR\r\n\tsize_bytes: 312\r\n\treference_counter: 2\r\n\tpermanent: no\r\n\texpires: 3541\r\n\tlast_used: 0\r\n\tnegative_entry: no\r\n\trecords: {\r\n\t\t{\r\n\t\t\trr_idx: 0\r\n\t\t\trr_order: 100\r\n\t\t\trr_preference: 50\r\n\t\t\trr_flags: s\r\n\t\t\trr_service: SIP+D2U\r\n\t\t\trr_regexp: \r\n\t\t\trr_regexp: _sip._udp.sip.example.com\r\n\t\t\trr_permanent: no\r\n\t\t\trr_expires: 3541\r\n\t\t}\r\n\t\t{\r\n\t\t\trr_idx: 1\r\n\t\t\trr_order: 102\r\n\t\t\trr_preference: 50\r\n\t\t\trr_flags: s\r\n\t\t\trr_service: SIP+D2T\r\n\t\t\trr_regexp: \r\n\t\t\trr_regexp: _sip._tcp.sip.example.com\r\n\t\t\trr_permanent: no\r\n\t\t\trr_expires: 3541\r\n\t\t}\r\n\t}\r\n}\r\n```\r\n\r\n```\r\n# kamailio -v\r\nversion: kamailio 5.2.0-pre0 (x86_64/linux) 044cde\r\nflags: STATS: Off, USE_TCP, USE_TLS, USE_SCTP, TLS_HOOKS, USE_RAW_SOCKS, DISABLE_NAGLE, USE_MCAST, DNS_IP_HACK, SHM_MEM, 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\r\nADAPTIVE_WAIT_LOOPS=1024, MAX_RECV_BUFFER_SIZE 262144 MAX_URI_SIZE 1024, BUF_SIZE 65535, DEFAULT PKG_SIZE 8MB\r\npoll method support: poll, epoll_lt, epoll_et, sigio_rt, select.\r\nid: 044cde \r\ncompiled on 06:23:13 Oct 19 2018 with gcc 6.3.0\r\n```\r\n"}],"action":{"name":"View Issue","url":"https://github.com/kamailio/kamailio/issues/1680#issuecomment-431260177"}}}</script>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/kamailio/kamailio/issues/1680#issuecomment-431260177",
"url": "https://github.com/kamailio/kamailio/issues/1680#issuecomment-431260177",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
},
{
"@type": "MessageCard",
"@context": "http://schema.org/extensions",
"hideOriginalBody": "false",
"originator": "AF6C5A86-E920-430C-9C59-A73278B5EFEB",
"title": "Re: [kamailio/kamailio] Kamailio crashes on NAPTR lookup (#1680)",
"sections": [
{
"text": "",
"activityTitle": "**Joonas Keskitalo**",
"activityImage": "https://assets-cdn.github.com/images/email/message_cards/avatar.png",
"activitySubtitle": "@Joonake",
"facts": [
]
}
],
"potentialAction": [
{
"name": "Add a comment",
"@type": "ActionCard",
"inputs": [
{
"isMultiLine": true,
"@type": "TextInput",
"id": "IssueComment",
"isRequired": false
}
],
"actions": [
{
"name": "Comment",
"@type": "HttpPOST",
"target": "https://api.github.com",
"body": "{\n\"commandName\": \"IssueComment\",\n\"repositoryFullName\": \"kamailio/kamailio\",\n\"issueId\": 1680,\n\"IssueComment\": \"{{IssueComment.value}}\"\n}"
}
]
},
{
"targets": [
{
"os": "default",
"uri": "https://github.com/kamailio/kamailio/issues/1680#issuecomment-431260177"
}
],
"@type": "OpenUri",
"name": "View on GitHub"
},
{
"name": "Unsubscribe",
"@type": "HttpPOST",
"target": "https://api.github.com",
"body": "{\n\"commandName\": \"MuteNotification\",\n\"threadId\": 397717726\n}"
}
],
"themeColor": "26292E"
}
]</script>