From: Olle Johansson Date: Sun, 11 Feb 2007 20:49:38 +0000 (+0000) Subject: Be careful with debug messages in trunk, they tend to stay around for release.... X-Git-Tag: 1.6.0-beta1~3^2~3241 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=1295d40d775470f64efa85aaca9f60caed0ab977;p=thirdparty%2Fasterisk.git Be careful with debug messages in trunk, they tend to stay around for release.... git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@53953 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/channels/chan_sip.c b/channels/chan_sip.c index c7447d4adf..45e343d9ae 100644 --- a/channels/chan_sip.c +++ b/channels/chan_sip.c @@ -5412,12 +5412,14 @@ static int process_sdp(struct sip_pvt *p, struct sip_request *req) } if (sin.sin_addr.s_addr && !sendonly) { - ast_log(LOG_DEBUG, "Queueing UNHOLD!\n"); + if (option_debug > 1) + ast_log(LOG_DEBUG, "Setting call off HOLD! - %s\n", p->callid); ast_queue_control(p->owner, AST_CONTROL_UNHOLD); /* Activate a re-invite */ ast_queue_frame(p->owner, &ast_null_frame); } else if (!sin.sin_addr.s_addr || sendonly) { - ast_log(LOG_DEBUG, "Going on HOLD!\n"); + if (option_debug > 1) + ast_log(LOG_DEBUG, "Setting call on HOLD! - %s\n", p->callid); ast_queue_control_data(p->owner, AST_CONTROL_HOLD, S_OR(p->mohsuggest, NULL), !ast_strlen_zero(p->mohsuggest) ? strlen(p->mohsuggest) + 1 : 0);