diff --git a/apps/app_voicemail.c b/apps/app_voicemail.c index 210201721ef19d0e17fc7bb5a1a9a25ef6433f3c..9c663629257f393ea473c0fbde4dab0ced02080a 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; }