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

asterisk-commits at lists.digium.com asterisk-commits at lists.digium.com
Mon Nov 13 09:08:12 MST 2006


Author: oej
Date: Mon Nov 13 10:08:12 2006
New Revision: 47541

URL: http://svn.digium.com/view/asterisk?view=rev&rev=47541
Log:
Only produce error message once, don't fill the screen with them...
(Testing SIPP thanks to JerJer and Greg)

Modified:
    trunk/   (props changed)
    trunk/channels/chan_sip.c

Propchange: trunk/
------------------------------------------------------------------------------
Binary property 'branch-1.4-merged' - no diff available.

Modified: trunk/channels/chan_sip.c
URL: http://svn.digium.com/view/asterisk/trunk/channels/chan_sip.c?view=diff&rev=47541&r1=47540&r2=47541
==============================================================================
--- trunk/channels/chan_sip.c (original)
+++ trunk/channels/chan_sip.c Mon Nov 13 10:08:12 2006
@@ -10753,12 +10753,16 @@
 {
 	int x = 0;
 	struct sip_history *hist;
+	static errmsg = 0;
 
 	if (!dialog)
 		return;
 
 	if (!option_debug && !sipdebug) {
-		ast_log(LOG_NOTICE, "You must have debugging enabled (SIP or Asterisk) in order to dump SIP history.\n");
+		if (!errmsg) {
+			ast_log(LOG_NOTICE, "You must have debugging enabled (SIP or Asterisk) in order to dump SIP history.\n");
+			errmsg = 1;
+		}
 		return;
 	}
 



More information about the asterisk-commits mailing list