[asterisk-commits] oej: branch 1.4 r175777 - /branches/1.4/channels/chan_sip.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Sun Feb 15 13:48:39 CST 2009


Author: oej
Date: Sun Feb 15 13:48:38 2009
New Revision: 175777

URL: http://svn.digium.com/svn-view/asterisk?view=rev&rev=175777
Log:
Make sure that the debug line is not printed on debug level 0

Modified:
    branches/1.4/channels/chan_sip.c

Modified: branches/1.4/channels/chan_sip.c
URL: http://svn.digium.com/svn-view/asterisk/branches/1.4/channels/chan_sip.c?view=diff&rev=175777&r1=175776&r2=175777
==============================================================================
--- branches/1.4/channels/chan_sip.c (original)
+++ branches/1.4/channels/chan_sip.c Sun Feb 15 13:48:38 2009
@@ -11871,7 +11871,8 @@
  		auth = find_realm_authentication(authl, p->realm);	/* If not, global list */
 
  	if (auth) {
-		ast_log(LOG_DEBUG, "use realm [%s] from peer [%s][%s]\n", auth->username, p->peername, p->username);
+		if (sipdebug && option_debug > 1)
+			ast_log(LOG_DEBUG, "use realm [%s] from peer [%s][%s]\n", auth->username, p->peername, p->username);
  		username = auth->username;
  		secret = auth->secret;
  		md5secret = auth->md5secret;




More information about the asterisk-commits mailing list