[asterisk-commits] rizzo: branch rizzo/astobj2 r47675 -
/team/rizzo/astobj2/channels/chan_sip.c
asterisk-commits at lists.digium.com
asterisk-commits at lists.digium.com
Wed Nov 15 10:53:52 MST 2006
Author: rizzo
Date: Wed Nov 15 11:53:52 2006
New Revision: 47675
URL: http://svn.digium.com/view/asterisk?view=rev&rev=47675
Log:
merge version 47541, print debugging msg only once.
Modified:
team/rizzo/astobj2/channels/chan_sip.c
Modified: team/rizzo/astobj2/channels/chan_sip.c
URL: http://svn.digium.com/view/asterisk/team/rizzo/astobj2/channels/chan_sip.c?view=diff&rev=47675&r1=47674&r2=47675
==============================================================================
--- team/rizzo/astobj2/channels/chan_sip.c (original)
+++ team/rizzo/astobj2/channels/chan_sip.c Wed Nov 15 11:53:52 2006
@@ -11062,12 +11062,15 @@
{
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