diff --git a/channels/chan_sip.c b/channels/chan_sip.c
index cc97297a8b6bbdbcd171822883fc7c9447d3663f..5f3490809c06b5a0605d11133c84c9683ffda953 100644
--- a/channels/chan_sip.c
+++ b/channels/chan_sip.c
@@ -10753,12 +10753,16 @@ static void sip_dump_history(struct sip_pvt *dialog)
 {
 	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;
 	}