aboutsummaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authormmichelson <mmichelson@f38db490-d61c-443f-a65b-d21fe96a405b>2007-10-18 17:40:45 +0000
committermmichelson <mmichelson@f38db490-d61c-443f-a65b-d21fe96a405b>2007-10-18 17:40:45 +0000
commitadd1dcc65f7ce2502b9815a4d0ad9556ba2d4124 (patch)
treec69b47d1dc185f21e75c95d7deff43bc5bc17be0 /apps
parent60032bb8283f7696ac684f03a5112d3f49186a90 (diff)
Merged revisions 86328 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r86328 | mmichelson | 2007-10-18 12:38:26 -0500 (Thu, 18 Oct 2007) | 5 lines If a non-existent file is specified to be played either as a periodic announcement or as a hold/position announcement, the caller would be kicked out of the queue. No longer does this happen. ........ git-svn-id: http://svn.digium.com/svn/asterisk/trunk@86329 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'apps')
-rw-r--r--apps/app_queue.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/app_queue.c b/apps/app_queue.c
index 00b44a363..bc1b5d4b6 100644
--- a/apps/app_queue.c
+++ b/apps/app_queue.c
@@ -1621,7 +1621,7 @@ posout:
res = play_file(qe->chan, qe->parent->sound_thanks);
playout:
- if (res > 0 && !valid_exit(qe, res))
+ if ((res > 0 && !valid_exit(qe, res)) || res < 0)
res = 0;
/* Set our last_pos indicators */
@@ -2065,7 +2065,7 @@ static int say_periodic_announcement(struct queue_ent *qe, int ringing)
/* play the announcement */
res = play_file(qe->chan, qe->parent->sound_periodicannounce[qe->last_periodic_announce_sound]);
- if (res > 0 && !valid_exit(qe, res))
+ if ((res > 0 && !valid_exit(qe, res)) || res < 0)
res = 0;
/* Resume Music on Hold if the caller is going to stay in the queue */