mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-06 04:30:28 +00:00
fix logging issue
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4563 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -2988,7 +2988,7 @@ static int forward_message(struct ast_channel *chan, char *context, char *dir, i
|
|||||||
snprintf(todir, sizeof(todir), "%s/voicemail/%s/%s/INBOX", (char *)ast_config_AST_SPOOL_DIR, vmtmp->context, vmtmp->mailbox);
|
snprintf(todir, sizeof(todir), "%s/voicemail/%s/%s/INBOX", (char *)ast_config_AST_SPOOL_DIR, vmtmp->context, vmtmp->mailbox);
|
||||||
snprintf(sys, sizeof(sys), "mkdir -p %s\n", todir);
|
snprintf(sys, sizeof(sys), "mkdir -p %s\n", todir);
|
||||||
snprintf(ext_context, sizeof(ext_context), "%s@%s", vmtmp->mailbox, vmtmp->context);
|
snprintf(ext_context, sizeof(ext_context), "%s@%s", vmtmp->mailbox, vmtmp->context);
|
||||||
ast_log(LOG_DEBUG, sys);
|
ast_log(LOG_DEBUG, "%s", sys);
|
||||||
ast_safe_system(sys);
|
ast_safe_system(sys);
|
||||||
|
|
||||||
todircount = count_messages(todir);
|
todircount = count_messages(todir);
|
||||||
@@ -2999,11 +2999,11 @@ static int forward_message(struct ast_channel *chan, char *context, char *dir, i
|
|||||||
if (!strcasecmp(s, "wav49"))
|
if (!strcasecmp(s, "wav49"))
|
||||||
s = "WAV";
|
s = "WAV";
|
||||||
snprintf(sys, sizeof(sys), "cp %s/msg%04d.%s %s/msg%04d.%s\n", dir, curmsg, s, todir, todircount, s);
|
snprintf(sys, sizeof(sys), "cp %s/msg%04d.%s %s/msg%04d.%s\n", dir, curmsg, s, todir, todircount, s);
|
||||||
ast_log(LOG_DEBUG, sys);
|
ast_log(LOG_DEBUG, "%s", sys);
|
||||||
ast_safe_system(sys);
|
ast_safe_system(sys);
|
||||||
}
|
}
|
||||||
snprintf(sys, sizeof(sys), "cp %s/msg%04d.txt %s/msg%04d.txt\n", dir, curmsg, todir, todircount);
|
snprintf(sys, sizeof(sys), "cp %s/msg%04d.txt %s/msg%04d.txt\n", dir, curmsg, todir, todircount);
|
||||||
ast_log(LOG_DEBUG, sys);
|
ast_log(LOG_DEBUG, "%s", sys);
|
||||||
ast_safe_system(sys);
|
ast_safe_system(sys);
|
||||||
snprintf(fn, sizeof(fn), "%s/msg%04d", todir,todircount);
|
snprintf(fn, sizeof(fn), "%s/msg%04d", todir,todircount);
|
||||||
|
|
||||||
|
2
loader.c
2
loader.c
@@ -67,7 +67,7 @@ static int printdigest(unsigned char *d)
|
|||||||
strcat(buf, buf2);
|
strcat(buf, buf2);
|
||||||
}
|
}
|
||||||
strcat(buf, "\n");
|
strcat(buf, "\n");
|
||||||
ast_log(LOG_DEBUG, buf);
|
ast_log(LOG_DEBUG, "%s", buf);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
2
logger.c
2
logger.c
@@ -700,7 +700,7 @@ extern void ast_verbose(const char *fmt, ...)
|
|||||||
} /* else
|
} /* else
|
||||||
fprintf(stdout, stuff + opos); */
|
fprintf(stdout, stuff + opos); */
|
||||||
|
|
||||||
ast_log(LOG_VERBOSE, stuff);
|
ast_log(LOG_VERBOSE, "%s", stuff);
|
||||||
if (strlen(stuff)) {
|
if (strlen(stuff)) {
|
||||||
if (stuff[strlen(stuff)-1] != '\n')
|
if (stuff[strlen(stuff)-1] != '\n')
|
||||||
replacelast = 1;
|
replacelast = 1;
|
||||||
|
Reference in New Issue
Block a user