aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--apps/app_queue.c4
-rw-r--r--configs/queues.conf.sample7
2 files changed, 11 insertions, 0 deletions
diff --git a/apps/app_queue.c b/apps/app_queue.c
index 18ec1df88..efb789ebe 100644
--- a/apps/app_queue.c
+++ b/apps/app_queue.c
@@ -1486,6 +1486,10 @@ static int play_file(struct ast_channel *chan, char *filename)
{
int res;
+ if (ast_strlen_zero(filename)) {
+ return 0;
+ }
+
ast_stopstream(chan);
res = ast_streamfile(chan, filename, chan->language);
diff --git a/configs/queues.conf.sample b/configs/queues.conf.sample
index 53900e29e..64f698527 100644
--- a/configs/queues.conf.sample
+++ b/configs/queues.conf.sample
@@ -156,6 +156,13 @@ monitor-type = MixMonitor
; Use these sound files in making position/holdtime announcements. The
; defaults are as listed below -- change only if you need to.
;
+; Keep in mind that you may also prevent a sound from being played if you
+; explicitly set a sound to be an empty string. For example, if you want to
+; prevent the queue from playing queue-thankyou, you may set the sound using
+; the following line:
+;
+; queue-thankyou=
+;
; ("You are now first in line.")
;queue-youarenext = queue-youarenext
; ("There are")