Module: kamailio
Branch: master
Commit: 4191a8193025499df64f13d59f5716563e573161
URL:
https://github.com/kamailio/kamailio/commit/4191a8193025499df64f13d59f57165…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2021-08-03T08:51:11+02:00
core: parser sdp - shorten debug message with sdp line
- was printing the rest of the body, print now max 20 chars
---
Modified: src/core/parser/sdp/sdp.c
---
Diff:
https://github.com/kamailio/kamailio/commit/4191a8193025499df64f13d59f57165…
Patch:
https://github.com/kamailio/kamailio/commit/4191a8193025499df64f13d59f57165…
---
diff --git a/src/core/parser/sdp/sdp.c b/src/core/parser/sdp/sdp.c
index 7dbf259379..d5e4f0695b 100644
--- a/src/core/parser/sdp/sdp.c
+++ b/src/core/parser/sdp/sdp.c
@@ -584,7 +584,8 @@ static int parse_sdp_session(str *sdp_body, int session_num, str
*cnt_disp, sdp_
a1p = stream->path.s + stream->path.len;
} else {
/* unknown a= line, ignore -- jump over it */
- LM_DBG("ignoring unknown type in a= line: `%.*s'\n", tmpstr1.len,
tmpstr1.s);
+ LM_DBG("ignoring unknown type in a= line: `%.*s...'\n",
+ (tmpstr1.len>20)?20:tmpstr1.len, tmpstr1.s);
a1p += 2;
}