[asterisk-commits] oej: trunk r53953 - /trunk/channels/chan_sip.c

asterisk-commits at lists.digium.com asterisk-commits at lists.digium.com
Sun Feb 11 13:49:38 MST 2007


Author: oej
Date: Sun Feb 11 14:49:38 2007
New Revision: 53953

URL: http://svn.digium.com/view/asterisk?view=rev&rev=53953
Log:
Be careful with debug messages in trunk, they tend to stay around for release....

Modified:
    trunk/channels/chan_sip.c

Modified: trunk/channels/chan_sip.c
URL: http://svn.digium.com/view/asterisk/trunk/channels/chan_sip.c?view=diff&rev=53953&r1=53952&r2=53953
==============================================================================
--- trunk/channels/chan_sip.c (original)
+++ trunk/channels/chan_sip.c Sun Feb 11 14:49:38 2007
@@ -5412,12 +5412,14 @@
 	}
 	
 	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);



More information about the asterisk-commits mailing list