[asterisk-commits] oej: branch oej/pinequeue-1.8 r367559 - /team/oej/pinequeue-1.8/apps/app_queue.c
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Thu May 24 04:16:13 CDT 2012
Author: oej
Date: Thu May 24 04:16:09 2012
New Revision: 367559
URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=367559
Log:
Make sure that files that does not exist is not queued
Modified:
team/oej/pinequeue-1.8/apps/app_queue.c
Modified: team/oej/pinequeue-1.8/apps/app_queue.c
URL: http://svnview.digium.com/svn/asterisk/team/oej/pinequeue-1.8/apps/app_queue.c?view=diff&rev=367559&r1=367558&r2=367559
==============================================================================
--- team/oej/pinequeue-1.8/apps/app_queue.c (original)
+++ team/oej/pinequeue-1.8/apps/app_queue.c Thu May 24 04:16:09 2012
@@ -6012,6 +6012,12 @@
}
}
+ /* If the filename doesn't exist, do not queue it up */
+ if (!ast_fileexists(filename, NULL, chan->language)) {
+ ast_log(LOG_ERROR, "Filename %s does not exist, not queued for playing out on chan %s\n", filename, chan->name);
+ return 0;
+ }
+
AST_LIST_LOCK(&aqsi->flist);
if (aqsi->now_playing) {
More information about the asterisk-commits
mailing list