diff options
author | Kevin P. Fleming <kpfleming@digium.com> | 2006-07-13 21:23:11 +0000 |
---|---|---|
committer | Kevin P. Fleming <kpfleming@digium.com> | 2006-07-13 21:23:11 +0000 |
commit | 3e9edd270241a115db5ff6a6cb6a6bcb38860047 (patch) | |
tree | 7c023e29c600cdacc34b4dc27045f919fd755b69 /apps | |
parent | 4492cbac8d9c8ae7fded53f502ee44e11440747f (diff) |
Merged revisions 37571 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.2
........
r37571 | kpfleming | 2006-07-13 16:22:11 -0500 (Thu, 13 Jul 2006) | 2 lines
don't fail/abort if the message category sound file cannot be played, just generate a warning message and continue message playback
........
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@37572 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'apps')
-rw-r--r-- | apps/app_voicemail.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/apps/app_voicemail.c b/apps/app_voicemail.c index 210201721..9c6636292 100644 --- a/apps/app_voicemail.c +++ b/apps/app_voicemail.c @@ -3668,6 +3668,11 @@ static int play_message_category(struct ast_channel *chan, char *category) if (!ast_strlen_zero(category)) res = ast_play_and_wait(chan, category); + if (res) { + ast_log(LOG_WARNING, "No sound file for category '%s' was found.\n", category); + res = 0; + } + return res; } |