aboutsummaryrefslogtreecommitdiffstats
path: root/apps/app_queue.c
diff options
context:
space:
mode:
authormarkster <markster@f38db490-d61c-443f-a65b-d21fe96a405b>2004-04-10 21:10:22 +0000
committermarkster <markster@f38db490-d61c-443f-a65b-d21fe96a405b>2004-04-10 21:10:22 +0000
commit40c8c7feae369b341a2618db690d69e1065d35c3 (patch)
treea77fe5dd3e190c776d119f5b68adc11d0cecb673 /apps/app_queue.c
parentdf85b484ba2f87d8bd18044de8e9a01cf317d0b5 (diff)
Don't hang up if the file is missing (not a bug, but fix anyway) (#1380)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@2673 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'apps/app_queue.c')
-rwxr-xr-xapps/app_queue.c11
1 files changed, 8 insertions, 3 deletions
diff --git a/apps/app_queue.c b/apps/app_queue.c
index c4c4d5da7..b4d1a397c 100755
--- a/apps/app_queue.c
+++ b/apps/app_queue.c
@@ -979,10 +979,15 @@ static int try_calling(struct queue_ent *qe, char *options, char *announceoverri
if (announce) {
int res2;
res2 = ast_autoservice_start(qe->chan);
- if (!res2)
+ if (!res2) {
res2 = ast_streamfile(peer, announce, peer->language);
- if (!res2)
- res2 = ast_waitstream(peer, "");
+ if (!res2)
+ res2 = ast_waitstream(peer, "");
+ else {
+ ast_log(LOG_WARNING, "Announcement file '%s' is unavailable, continuing anyway...\n", announce);
+ res2 = 0;
+ }
+ }
res2 |= ast_autoservice_stop(qe->chan);
if (res2) {
/* Agent must have hung up */