Skip to content

Commit

Permalink
sip_parser: move parse_sip_msg warnings to dbg
Browse files Browse the repository at this point in the history
  • Loading branch information
furmur committed Aug 12, 2024
1 parent 0803bc8 commit f22922e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions core/sip/sip_parser.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -802,7 +802,7 @@ int parse_sip_msg(sip_msg* msg, const char*& err_msg)
str2int(msg->max_forwards->value.s, msg->max_forwards->value.len, num) &&
num > MAX_FRW_MAX_NUM)
{
WARN("\"%s\" header value is greater than %d", SIP_HDR_MAX_FORWARDS, MAX_FRW_MAX_NUM);
DBG("\"%s\" header value is greater than %d", SIP_HDR_MAX_FORWARDS, MAX_FRW_MAX_NUM);
/* exclude Max-Forwards from headers list */
//msg->hdrs.remove(msg->max_forwards);
//delete msg->max_forwards;
Expand All @@ -814,7 +814,7 @@ int parse_sip_msg(sip_msg* msg, const char*& err_msg)
strncmp2(msg->expires->value.s, msg->expires->value.len,
EXPIRES_MAX_NUM_str, EXPIRES_MAX_NUM_len) > 0)
{
WARN("\"%s\" header value is greater than %s", SIP_HDR_EXPIRES, EXPIRES_MAX_NUM_str);
DBG("\"%s\" header value is greater than %s", SIP_HDR_EXPIRES, EXPIRES_MAX_NUM_str);
/* use default value for Expires header */
//msg->expires->value.set(EXPIRES_DEFAULT_NUM_str, EXPIRES_DEFAULT_NUM_len);
}
Expand All @@ -830,7 +830,7 @@ int parse_sip_msg(sip_msg* msg, const char*& err_msg)
strncmp2(cseq->method_str.s, cseq->method_str.len,
req->method_str.s, req->method_str.len) != 0)
{
WARN("\"%s\" method %.*s mismatched for the %.*s method in the start line",
DBG("\"%s\" method %.*s mismatched for the %.*s method in the start line",
SIP_HDR_CSEQ,
cseq->method_str.len, cseq->method_str.s,
req->method_str.len, req->method_str.s);
Expand Down

0 comments on commit f22922e

Please sign in to comment.