mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-05 12:16:00 +00:00
This change had somehow gotten reverted due to a
completely unrelated commit. Thanks to Theo Belder on the Asterisk-dev list for pointing this out. git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@158306 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -1577,8 +1577,9 @@ static int say_position(struct queue_ent *qe)
|
||||
|
||||
/* If the hold time is >1 min, if it's enabled, and if it's not
|
||||
supposed to be only once and we have already said it, say it */
|
||||
if ((avgholdmins+avgholdsecs) > 0 && (qe->parent->announceholdtime) &&
|
||||
(!(qe->parent->announceholdtime == ANNOUNCEHOLDTIME_ONCE) && qe->last_pos)) {
|
||||
if ((avgholdmins+avgholdsecs) > 0 && qe->parent->announceholdtime &&
|
||||
((qe->parent->announceholdtime == ANNOUNCEHOLDTIME_ONCE && !qe->last_pos) ||
|
||||
!(qe->parent->announceholdtime == ANNOUNCEHOLDTIME_ONCE))) {
|
||||
res = play_file(qe->chan, qe->parent->sound_holdtime);
|
||||
if (res)
|
||||
goto playout;
|
||||
|
Reference in New Issue
Block a user