[asterisk-commits] branch 1.2 r37571 - /branches/1.2/apps/app_voicemail.c

asterisk-commits at lists.digium.com asterisk-commits at lists.digium.com
Thu Jul 13 14:22:12 MST 2006


Author: kpfleming
Date: Thu Jul 13 16:22:11 2006
New Revision: 37571

URL: http://svn.digium.com/view/asterisk?rev=37571&view=rev
Log:
don't fail/abort if the message category sound file cannot be played, just generate a warning message and continue message playback

Modified:
    branches/1.2/apps/app_voicemail.c

Modified: branches/1.2/apps/app_voicemail.c
URL: http://svn.digium.com/view/asterisk/branches/1.2/apps/app_voicemail.c?rev=37571&r1=37570&r2=37571&view=diff
==============================================================================
--- branches/1.2/apps/app_voicemail.c (original)
+++ branches/1.2/apps/app_voicemail.c Thu Jul 13 16:22:11 2006
@@ -3632,6 +3632,11 @@
 
 	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;
 }



More information about the asterisk-commits mailing list