[asterisk-commits] oej: branch group/pinequeue r297771 - /team/group/pinequeue/apps/app_queue.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Tue Dec 7 04:10:33 CST 2010


Author: oej
Date: Tue Dec  7 04:10:28 2010
New Revision: 297771

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=297771
Log:
The good code that is produced around midnight may in some cases have interesting bugs.

Modified:
    team/group/pinequeue/apps/app_queue.c

Modified: team/group/pinequeue/apps/app_queue.c
URL: http://svnview.digium.com/svn/asterisk/team/group/pinequeue/apps/app_queue.c?view=diff&rev=297771&r1=297770&r2=297771
==============================================================================
--- team/group/pinequeue/apps/app_queue.c (original)
+++ team/group/pinequeue/apps/app_queue.c Tue Dec  7 04:10:28 2010
@@ -4843,7 +4843,7 @@
 */
 static int play_file(struct ast_channel *chan, const char *filename, int ringing, char *moh)
 {
-	int res;
+	int res = 0;
 	struct ast_datastore *datastore;
 	struct ast_queue_streamfile_info *aqsi = NULL;
 	struct gen_state *generatordata;
@@ -4851,6 +4851,9 @@
 	char playfilename[512];
 
 	if (!background_prompts) {
+		if (ast_strlen_zero(filename)) {
+			return 0;
+		}
 		/* Play prompts like before, with no interruption */
 		ast_stopstream(chan);
 		res = ast_streamfile(chan, filename, chan->language);




More information about the asterisk-commits mailing list