<p></p>
<p><code>parse_headers()</code> is mainly breaking in <code>header name</code> and <code>header body</code>, not doing deep parsing of <code>header body</code> part for most of the headers, but only for a few. To get the From header body parsed, you have to use <code>parse_from_header()</code>, not parse it internally using parse_to(). You can still use <code>parse_headers(msg, HDR_EOH_F, 0)</code> to locate other headers, just do not expect to do deep parsing of every header, there are dedicated functions that have to be used (e.g., for Contact, Route, ...).</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/2723#issuecomment-832469992">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/ABO7UZMX7242J32G7BNKXQDTMDWPPANCNFSM436VQGFA">unsubscribe</a>.<img src="https://github.com/notifications/beacon/ABO7UZJNP2A77OB6PS65C73TMDWPPA5CNFSM436VQGFKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOGGPHX2A.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/2723#issuecomment-832469992",
"url": "https://github.com/kamailio/kamailio/issues/2723#issuecomment-832469992",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>