From: Kevin P. Fleming Date: Mon, 23 Nov 2009 15:31:02 +0000 (+0000) Subject: When 'sip set debug' is enabled, and the last line of an incoming SIP message X-Git-Tag: 1.4.28-rc1~11^2~19 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=851de5edaa79e40ae09fa61336601ef65f82a9f2;p=thirdparty%2Fasterisk.git 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 --- 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++; }