diff options
author | oej <oej@f38db490-d61c-443f-a65b-d21fe96a405b> | 2006-11-13 16:00:57 +0000 |
---|---|---|
committer | oej <oej@f38db490-d61c-443f-a65b-d21fe96a405b> | 2006-11-13 16:00:57 +0000 |
commit | 5abf54b308b33bad778fad69a8984bdc5135a5db (patch) | |
tree | 12aca91cb0cb2eda400438fc5aab660e838bc7bc | |
parent | 951f75f3b9fa8cff315cacadaa3f2e91d799065f (diff) |
Only produce error message about sip history once
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@47540 f38db490-d61c-443f-a65b-d21fe96a405b
-rw-r--r-- | channels/chan_sip.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/channels/chan_sip.c b/channels/chan_sip.c index 5d576a8a3..3a77d9a4b 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; } |