summaryrefslogtreecommitdiff
path: root/channels/chan_sip.c
diff options
context:
space:
mode:
authorKevin P. Fleming <kpfleming@digium.com>2005-08-30 21:20:59 +0000
committerKevin P. Fleming <kpfleming@digium.com>2005-08-30 21:20:59 +0000
commit6d19c704b7b05158f95052db1f16b9df8e19e97d (patch)
tree9e554e0837acd3fddce6921ae19fe745d58b97c3 /channels/chan_sip.c
parentd4e44d7c31129d5eebf19201db3c059bff4792d6 (diff)
make chan_sip and chan_iax2 less chatty when not in debug mode (issue #5067)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6457 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'channels/chan_sip.c')
-rwxr-xr-xchannels/chan_sip.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/channels/chan_sip.c b/channels/chan_sip.c
index bdd2c36e8..d84dbafb4 100755
--- a/channels/chan_sip.c
+++ b/channels/chan_sip.c
@@ -3198,7 +3198,7 @@ static void parse_request(struct sip_request *req)
/* 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 @@ static void parse_request(struct sip_request *req)
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");