aboutsummaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
Diffstat (limited to 'apps')
-rw-r--r--apps/app_queue.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/apps/app_queue.c b/apps/app_queue.c
index 6dfe45702..2b014c769 100644
--- a/apps/app_queue.c
+++ b/apps/app_queue.c
@@ -1782,6 +1782,10 @@ static int play_file(struct ast_channel *chan, const char *filename)
{
int res;
+ if (ast_strlen_zero(filename)) {
+ return 0;
+ }
+
ast_stopstream(chan);
res = ast_streamfile(chan, filename, chan->language);