Skip to content
Snippets Groups Projects
Commit ffc1dc33 authored by Olle Johansson's avatar Olle Johansson
Browse files

Only produce error message once, don't fill the screen with them...

(Testing SIPP thanks to JerJer and Greg)


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@47541 65c4cc65-6c06-0410-ace0-fbb531ad65f3
parent 52148c96
Branches
Tags
No related merge requests found
...@@ -10753,12 +10753,16 @@ static void sip_dump_history(struct sip_pvt *dialog) ...@@ -10753,12 +10753,16 @@ static void sip_dump_history(struct sip_pvt *dialog)
{ {
int x = 0; int x = 0;
struct sip_history *hist; struct sip_history *hist;
static errmsg = 0;
   
if (!dialog) if (!dialog)
return; return;
   
if (!option_debug && !sipdebug) { 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; return;
} }
   
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment