diff options
author | oej <oej@f38db490-d61c-443f-a65b-d21fe96a405b> | 2006-11-13 16:08:12 +0000 |
---|---|---|
committer | oej <oej@f38db490-d61c-443f-a65b-d21fe96a405b> | 2006-11-13 16:08:12 +0000 |
commit | 79b5b078e807b6c89cce1e75900941593075cca0 (patch) | |
tree | 1fbf161fcb656a0dcc542ebc9ce17dd53dfd274b /channels | |
parent | b01f2aed4f11e069e930fd9c858a13eecc5db4f5 (diff) |
Only produce error message once, don't fill the screen with them...
(Testing SIPP thanks to JerJer and Greg)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@47541 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'channels')
-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 cc97297a8..5f3490809 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; } |