mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-14 00:24:05 +00:00
fix voicemail debug output (bug #2789)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/v1-0@4182 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -1091,7 +1091,7 @@ static int sendpage(char *srcemail, char *pager, int msgnum, char *mailbox, char
|
|||||||
fclose(p);
|
fclose(p);
|
||||||
snprintf(tmp2, sizeof(tmp2), "( %s < %s ; rm -f %s ) &", mailcmd, tmp, tmp);
|
snprintf(tmp2, sizeof(tmp2), "( %s < %s ; rm -f %s ) &", mailcmd, tmp, tmp);
|
||||||
ast_safe_system(tmp2);
|
ast_safe_system(tmp2);
|
||||||
ast_log(LOG_DEBUG, "Sent mail to %s with command '%s'\n", who, mailcmd);
|
ast_log(LOG_DEBUG, "Sent page to %s with command '%s'\n", pager, mailcmd);
|
||||||
} else {
|
} else {
|
||||||
ast_log(LOG_WARNING, "Unable to launch '%s'\n", mailcmd);
|
ast_log(LOG_WARNING, "Unable to launch '%s'\n", mailcmd);
|
||||||
return -1;
|
return -1;
|
||||||
|
Reference in New Issue
Block a user