mirror of
https://github.com/asterisk/asterisk.git
synced 2026-07-02 21:13:08 -07:00
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
This commit is contained in:
+5
-1
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user