Module: kamailio
Branch: master
Commit: 08820db104c7dbfce36af0f59dfcc28f97cffbd0
URL:
https://github.com/kamailio/kamailio/commit/08820db104c7dbfce36af0f59dfcc28…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2018-11-29T20:04:08+01:00
core: parse body - debug instead of error log message when mime mismatch
- GH #1746
---
Modified: src/core/parser/parse_body.c
---
Diff:
https://github.com/kamailio/kamailio/commit/08820db104c7dbfce36af0f59dfcc28…
Patch:
https://github.com/kamailio/kamailio/commit/08820db104c7dbfce36af0f59dfcc28…
---
diff --git a/src/core/parser/parse_body.c b/src/core/parser/parse_body.c
index 05425b50ce..9794e43fb1 100644
--- a/src/core/parser/parse_body.c
+++ b/src/core/parser/parse_body.c
@@ -504,7 +504,11 @@ int part_multipart_headers_cmp (char *buffer,
}
if (error < 0) {
- LM_ERR("part_multipart_headers_cmp. error. \"%i\".
\"%s\".\n", error, error_msg);
+ if(error == -2) {
+ LM_DBG("result code: \"%i\" text: \"%s\".\n", error,
error_msg);
+ } else {
+ LM_ERR("error code: \"%i\" error text: \"%s\".\n",
error, error_msg);
+ }
return 0;
} else {
return found;