From: Olle Johansson Date: Mon, 13 Nov 2006 16:00:57 +0000 (+0000) Subject: Only produce error message about sip history once X-Git-Tag: 1.4.0-beta4~137 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=0ca5dae550e9944f23121e97f76bfb5f16e26e14;p=thirdparty%2Fasterisk.git Only produce error message about sip history once git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@47540 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/channels/chan_sip.c b/channels/chan_sip.c index 5d576a8a3c..3a77d9a4b2 100644 --- a/channels/chan_sip.c +++ b/channels/chan_sip.c @@ -10532,12 +10532,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; }