From 851de5edaa79e40ae09fa61336601ef65f82a9f2 Mon Sep 17 00:00:00 2001 From: "Kevin P. Fleming" Date: Mon, 23 Nov 2009 15:31:02 +0000 Subject: [PATCH] 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: https://origsvn.digium.com/svn/asterisk/branches/1.4@230875 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- channels/chan_sip.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/channels/chan_sip.c b/channels/chan_sip.c index 0df521211e..48afb798bf 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++; } -- 2.47.3