diff options
author | kpfleming <kpfleming@f38db490-d61c-443f-a65b-d21fe96a405b> | 2005-09-26 00:41:28 +0000 |
---|---|---|
committer | kpfleming <kpfleming@f38db490-d61c-443f-a65b-d21fe96a405b> | 2005-09-26 00:41:28 +0000 |
commit | fe153591296dc46ec7bdef6d04f465b2bf65ce75 (patch) | |
tree | cb603876a79b0b4241d9f1ac0c23d09cde03b61c /apps | |
parent | 549177d7460082c3537973cc5123e53cb05a9b34 (diff) |
don't drop the caller just because it's not time to play an announcement (issue #5279)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@6655 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'apps')
-rwxr-xr-x | apps/app_queue.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/apps/app_queue.c b/apps/app_queue.c index 558f40c6d..3f7c1614b 100755 --- a/apps/app_queue.c +++ b/apps/app_queue.c @@ -1516,8 +1516,8 @@ static int say_periodic_announcement(struct queue_ent *qe) time(&now); /* Check to see if it is time to announce */ - if ( (now - qe->last_periodic_announce_time) < qe->parent->periodicannouncefrequency ) - return -1; + if ((now - qe->last_periodic_announce_time) < qe->parent->periodicannouncefrequency) + return 0; /* Stop the music on hold so we can play our own file */ ast_moh_stop(qe->chan); @@ -1534,7 +1534,7 @@ static int say_periodic_announcement(struct queue_ent *qe) /* update last_periodic_announce_time */ qe->last_periodic_announce_time = now; - return(res); + return res; } static void record_abandoned(struct queue_ent *qe) |