mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-06 12:36:58 +00:00
don't drop the caller just because it's not time to play an announcement (issue #5279)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6655 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -1516,8 +1516,8 @@ static int say_periodic_announcement(struct queue_ent *qe)
|
|||||||
time(&now);
|
time(&now);
|
||||||
|
|
||||||
/* Check to see if it is time to announce */
|
/* Check to see if it is time to announce */
|
||||||
if ( (now - qe->last_periodic_announce_time) < qe->parent->periodicannouncefrequency )
|
if ((now - qe->last_periodic_announce_time) < qe->parent->periodicannouncefrequency)
|
||||||
return -1;
|
return 0;
|
||||||
|
|
||||||
/* Stop the music on hold so we can play our own file */
|
/* Stop the music on hold so we can play our own file */
|
||||||
ast_moh_stop(qe->chan);
|
ast_moh_stop(qe->chan);
|
||||||
@@ -1534,7 +1534,7 @@ static int say_periodic_announcement(struct queue_ent *qe)
|
|||||||
/* update last_periodic_announce_time */
|
/* update last_periodic_announce_time */
|
||||||
qe->last_periodic_announce_time = now;
|
qe->last_periodic_announce_time = now;
|
||||||
|
|
||||||
return(res);
|
return res;
|
||||||
}
|
}
|
||||||
|
|
||||||
static void record_abandoned(struct queue_ent *qe)
|
static void record_abandoned(struct queue_ent *qe)
|
||||||
|
Reference in New Issue
Block a user