[asterisk-commits] trunk r37572 - in /trunk: ./ apps/app_voicemail.c

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


Author: kpfleming
Date: Thu Jul 13 16:23:11 2006
New Revision: 37572

URL: http://svn.digium.com/view/asterisk?rev=37572&view=rev
Log:
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

........

Modified:
    trunk/   (props changed)
    trunk/apps/app_voicemail.c

Propchange: trunk/
------------------------------------------------------------------------------
Binary property 'branch-1.2-merged' - no diff available.

Modified: trunk/apps/app_voicemail.c
URL: http://svn.digium.com/view/asterisk/trunk/apps/app_voicemail.c?rev=37572&r1=37571&r2=37572&view=diff
==============================================================================
--- trunk/apps/app_voicemail.c (original)
+++ trunk/apps/app_voicemail.c Thu Jul 13 16:23:11 2006
@@ -3667,6 +3667,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