<p></p>
<blockquote>
<p>yes, have checked "ERROR" generation.<br>
This happens because <code>part_multipart_headers_cmp()</code> try search content by "Content-Id".<br>
The first content element (SDP in the example) does not have "Content-Id".<br>
Function reaches the end of the content element and generates the error.</p>
<p>Then <code>part_multipart_headers_cmp()</code> try search "Content-Id" in second element and fount it and then returns result.</p>
<p>Looks as current <code>part_multipart_headers_cmp()</code> implementation handles case when content element do not has "Content-Id" header as error.<br>
Looks as provided fix correct for this case.</p>
</blockquote>
<p>Ok, thanks for testing. <a class="user-mention" data-hovercard-type="user" data-hovercard-url="/users/miconda/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/miconda">@miconda</a> How shall I proceed? Merge the PR with or without the patch (commit <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/kamailio/kamailio/commit/106b8a659bd4a53e8a6872e9db8a9af0f12ff70a/hovercard" href="https://github.com/kamailio/kamailio/commit/106b8a659bd4a53e8a6872e9db8a9af0f12ff70a"><tt>106b8a6</tt></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/pull/2675#issuecomment-816623509">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/ABO7UZKMPXUSROAGTEWUDF3TH3R3PANCNFSM4ZGSJGLQ">unsubscribe</a>.<img src="https://github.com/notifications/beacon/ABO7UZLGGWZ7Q4X2RWXKWIDTH3R3PA5CNFSM4ZGSJGL2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOGCWK7FI.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#issuecomment-816623509",
"url": "https://github.com/kamailio/kamailio/pull/2675#issuecomment-816623509",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>