Index: apps/app_queue.c =================================================================== --- apps/app_queue.c (revision 172513) +++ apps/app_queue.c (working copy) @@ -1816,6 +1816,7 @@ static int say_position(struct queue_ent *qe, int ringing) { int res = 0, avgholdmins, avgholdsecs; + int say_thanks = 1; time_t now; /* Let minannouncefrequency seconds pass between the start of each position announcement */ @@ -1898,7 +1899,8 @@ if (res) goto playout; } - + } else if (qe->parent->announceholdtime && !qe->parent->announceposition) { + say_thanks = 0; } posout: @@ -1906,7 +1908,9 @@ ast_verb(3, "Told %s in %s their queue position (which was %d)\n", qe->chan->name, qe->parent->name, qe->pos); } - res = play_file(qe->chan, qe->parent->sound_thanks); + if (say_thanks) { + res = play_file(qe->chan, qe->parent->sound_thanks); + } playout: if ((res > 0 && !valid_exit(qe, res)) || res < 0)