[asterisk-commits] oej: branch 1.4 r47540 -
/branches/1.4/channels/chan_sip.c
asterisk-commits at lists.digium.com
asterisk-commits at lists.digium.com
Mon Nov 13 09:00:57 MST 2006
Author: oej
Date: Mon Nov 13 10:00:57 2006
New Revision: 47540
URL: http://svn.digium.com/view/asterisk?view=rev&rev=47540
Log:
Only produce error message about sip history once
Modified:
branches/1.4/channels/chan_sip.c
Modified: branches/1.4/channels/chan_sip.c
URL: http://svn.digium.com/view/asterisk/branches/1.4/channels/chan_sip.c?view=diff&rev=47540&r1=47539&r2=47540
==============================================================================
--- branches/1.4/channels/chan_sip.c (original)
+++ branches/1.4/channels/chan_sip.c Mon Nov 13 10:00:57 2006
@@ -10532,12 +10532,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