<p>log messages from before the crash:</p>
<pre><code>ERROR: <core> [core/parser/msg_parser.c:96]: get_hdr_field(): bad header
ERROR: <core> [core/parser/msg_parser.c:330]: parse_headers(): bad header field [a=sendrecv#015#012]
ERROR: dialog [dlg_handlers.c:190]: populate_leg_info(): failed to parse headers
ERROR: dialog [dlg_handlers.c:495]: dlg_onreply(): could not add further info to the dialog
</code></pre>
<p>so that <code>bind_addr</code> from callee leg isn't set: <a href="https://github.com/kamailio/kamailio/blob/5.0/src/modules/dialog/dlg_handlers.c#L189-L194">dlg_handlers.c</a></p>
<pre><code> if(parse_headers(msg,HDR_EOH_F,0)<0){
                LM_ERR("failed to parse headers\n");
                goto error0;
        }

        dlg->bind_addr[leg] = msg->rcv.bind_address;
</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/1899#issuecomment-475257720">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AF36ZWMlXF2y9FKe5-5rBsiUoW9HodYHks5vY5psgaJpZM4cA73u">mute the thread</a>.<img src="https://github.com/notifications/beacon/AF36Zbcj14K8ziE235zN7ifT2IS-Tp-Fks5vY5psgaJpZM4cA73u.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://github.githubassets.com/images/email/message_cards/header.png","avatar_image_url":"https://github.githubassets.com/images/email/message_cards/avatar.png","action":{"name":"Open in GitHub","url":"https://github.com/kamailio/kamailio"}},"updates":{"snippets":[{"icon":"PERSON","message":"@btriller in #1899: log messages from before the crash:\r\n```\r\nERROR: \u003ccore\u003e [core/parser/msg_parser.c:96]: get_hdr_field(): bad header\r\nERROR: \u003ccore\u003e [core/parser/msg_parser.c:330]: parse_headers(): bad header field [a=sendrecv#015#012]\r\nERROR: dialog [dlg_handlers.c:190]: populate_leg_info(): failed to parse headers\r\nERROR: dialog [dlg_handlers.c:495]: dlg_onreply(): could not add further info to the dialog\r\n```\r\nso that `bind_addr` from callee leg isn't set: [dlg_handlers.c](https://github.com/kamailio/kamailio/blob/5.0/src/modules/dialog/dlg_handlers.c#L189-L194)\r\n```\r\n\tif(parse_headers(msg,HDR_EOH_F,0)\u003c0){\r\n\t\tLM_ERR(\"failed to parse headers\\n\");\r\n\t\tgoto error0;\r\n\t}\r\n\r\n\tdlg-\u003ebind_addr[leg] = msg-\u003ercv.bind_address;\r\n```"}],"action":{"name":"View Issue","url":"https://github.com/kamailio/kamailio/issues/1899#issuecomment-475257720"}}}</script>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/kamailio/kamailio/issues/1899#issuecomment-475257720",
"url": "https://github.com/kamailio/kamailio/issues/1899#issuecomment-475257720",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>