From: Kevin P. Fleming Date: Thu, 13 Jul 2006 21:22:11 +0000 (+0000) Subject: don't fail/abort if the message category sound file cannot be played, just generate... X-Git-Tag: 1.2.10~4 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6ea65400a09dbb0106b6a7ddf0b2816226bd3654;p=thirdparty%2Fasterisk.git 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/branches/1.2@37571 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/apps/app_voicemail.c b/apps/app_voicemail.c index 4402d4d4fe..36ca228bf5 100644 --- a/apps/app_voicemail.c +++ b/apps/app_voicemail.c @@ -3633,6 +3633,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; }