<!--
Kamailio Project uses GitHub Issues only for bugs in the code or feature requests. Please
use this template only for feature requests.
If you have questions about using Kamailio or related to its configuration file, ask on
sr-users mailing list:
*
http://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
If you have questions about developing extensions to Kamailio or its existing C code, ask
on sr-dev mailing list:
*
http://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-dev
Please try to fill this template as much as possible for any issue. It helps the
developers to troubleshoot the issue.
If you submit a feature request (or enhancement) add the description of what you would
like to be added.
If there is no content to be filled in a section, the entire section can be removed.
You can delete the comments from the template sections when filling.
You can delete next line and everything above before submitting (it is a comment).
-->
### Description
I used
[
get_body_part_by_filter](https://github.com/kamailio/kamailio/blob/f073f72a…
to extract a body part from a `multipart/mixed` message. It works as expected but for
every body part it compares and do not match (until finding the one that matches the
filter) it shows error log messages like:
`ERROR: <core> [core/parser/parse_body.c:513]: part_multipart_headers_cmp():
part_multipart_headers_cmp. error. "-2". "MIME types mismatch".`
The comparison of body parts shouldn´t be logged as errors, since they are not.
<!--
Explain what you did, what you expected to happen, and what actually happened.
-->
### Expected behavior
No error logs.
#### Actual observed behavior
Error log messages.
#### Log Messages
<!--
Check the syslog file and if there are relevant log messages printed by Kamailio, add them
next, or attach to issue, or provide a link to download them (e.g., to a pastebin site).
-->
```
ERROR: <core> [core/parser/parse_body.c:513]: part_multipart_headers_cmp():
part_multipart_headers_cmp. error. "-2". "MIME types mismatch".
```
### Possible Solutions
<!--
If you found a solution or workaround for the issue, describe it. Ideally, provide a pull
request with a improvement.
-->
Do not show logs or change log level.
### Additional Information
* **Kamailio Version** - output of `kamailio -v`
```
5.1
```
* **Operating System**:
<!--
Details about the operating system, the type: Linux (e.g.,: Debian 8.4, Ubuntu 16.04,
CentOS 7.1, ...), MacOS, xBSD, Solaris, ...;
Kernel details (output of `uname -a`)
-->
```
CentOS 7
```
--
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/issues/1746