Index: channels/chan_sip.c =================================================================== RCS file: /usr/cvsroot/asterisk/channels/chan_sip.c,v retrieving revision 1.827 diff -u -r1.827 chan_sip.c --- channels/chan_sip.c 30 Aug 2005 02:12:09 -0000 1.827 +++ channels/chan_sip.c 30 Aug 2005 20:15:55 -0000 @@ -3198,7 +3198,7 @@ /* We've got a new header */ *c = 0; - if (option_debug > 3) + if (sipdebug && option_debug > 3) ast_log(LOG_DEBUG, "Header: %s (%d)\n", req->header[f], (int) strlen(req->header[f])); if (ast_strlen_zero(req->header[f])) { /* Line by itself means we're now in content */ @@ -3227,7 +3227,7 @@ if (*c == '\n') { /* We've got a new line */ *c = 0; - if (option_debug > 3) + if (sipdebug && option_debug > 3) ast_log(LOG_DEBUG, "Line: %s (%d)\n", req->line[f], (int) strlen(req->line[f])); if (f >= SIP_MAX_LINES - 1) { ast_log(LOG_WARNING, "Too many SDP lines. Ignoring.\n");