mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-05 20:20:07 +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
|
/* 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 */
|
supposed to be only once and we have already said it, say it */
|
||||||
if ((avgholdmins+avgholdsecs) > 0 && (qe->parent->announceholdtime) &&
|
if ((avgholdmins+avgholdsecs) > 0 && qe->parent->announceholdtime &&
|
||||||
(!(qe->parent->announceholdtime == ANNOUNCEHOLDTIME_ONCE) && qe->last_pos)) {
|
((qe->parent->announceholdtime == ANNOUNCEHOLDTIME_ONCE && !qe->last_pos) ||
|
||||||
|
!(qe->parent->announceholdtime == ANNOUNCEHOLDTIME_ONCE))) {
|
||||||
res = play_file(qe->chan, qe->parent->sound_holdtime);
|
res = play_file(qe->chan, qe->parent->sound_holdtime);
|
||||||
if (res)
|
if (res)
|
||||||
goto playout;
|
goto playout;
|
||||||
|
Reference in New Issue
Block a user