[asterisk-commits] kpfleming: branch 1.4 r230875 - /branches/1.4/channels/chan_sip.c
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Mon Nov 23 09:31:05 CST 2009
Author: kpfleming
Date: Mon Nov 23 09:31:02 2009
New Revision: 230875
URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=230875
Log:
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)
Modified:
branches/1.4/channels/chan_sip.c
Modified: branches/1.4/channels/chan_sip.c
URL: http://svnview.digium.com/svn/asterisk/branches/1.4/channels/chan_sip.c?view=diff&rev=230875&r1=230874&r2=230875
==============================================================================
--- branches/1.4/channels/chan_sip.c (original)
+++ branches/1.4/channels/chan_sip.c Mon Nov 23 09:31:02 2009
@@ -5111,6 +5111,8 @@
/* 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++;
}
More information about the asterisk-commits
mailing list