diff options
author | kpfleming <kpfleming@f38db490-d61c-443f-a65b-d21fe96a405b> | 2009-11-23 15:31:02 +0000 |
---|---|---|
committer | kpfleming <kpfleming@f38db490-d61c-443f-a65b-d21fe96a405b> | 2009-11-23 15:31:02 +0000 |
commit | fae8ea15b066fece5f9534da27c70f5e041a6b1c (patch) | |
tree | 41b907b1d26bcf835e0053985ce3cb530cd823c3 /channels | |
parent | b663a8e7f7bfac4ab49e995d2ffedf7d3edc639e (diff) |
When 'sip set debug' is enabled, and the last line of an incoming SIP message
is not properly newline terminated, ensure that that line is included in the
debug output.
(part of issue #16268)
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@230875 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'channels')
-rw-r--r-- | channels/chan_sip.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/channels/chan_sip.c b/channels/chan_sip.c index 0df521211..48afb798b 100644 --- a/channels/chan_sip.c +++ b/channels/chan_sip.c @@ -5111,6 +5111,8 @@ static int parse_request(struct sip_request *req) /* Check a non-newline-terminated last line */ if (!ast_strlen_zero(req->line[f])) { + if (sipdebug && option_debug > 3) + ast_log(LOG_DEBUG, "Line: %s (%d)\n", req->line[f], (int) strlen(req->line[f])); req->lines++; } |