diff options
author | Mark Michelson <mmichelson@digium.com> | 2009-02-11 23:12:57 +0000 |
---|---|---|
committer | Mark Michelson <mmichelson@digium.com> | 2009-02-11 23:12:57 +0000 |
commit | 0d5da5f436cb0ceb61a1f5b0711443b7e99b436f (patch) | |
tree | 0b967255c8ce823e59179e54efe59a7bd5f7f8a7 /apps/app_queue.c | |
parent | 34161542e9ffacc405513c8a1ccb706dfe55ef9d (diff) |
Fix a bit of odd logic for announcing position. Sync with 1.6.0's logic
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@174951 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'apps/app_queue.c')
-rw-r--r-- | apps/app_queue.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/apps/app_queue.c b/apps/app_queue.c index eb02322c2..4bcf36b4c 100644 --- a/apps/app_queue.c +++ b/apps/app_queue.c @@ -2126,11 +2126,11 @@ static int say_position(struct queue_ent *qe, int ringing) } posout: - if (announceposition == 1 || say_thanks) { - if (qe->parent->announceposition) { - ast_verb(3, "Told %s in %s their queue position (which was %d)\n", - qe->chan->name, qe->parent->name, qe->pos); - } + if (qe->parent->announceposition) { + ast_verb(3, "Told %s in %s their queue position (which was %d)\n", + qe->chan->name, qe->parent->name, qe->pos); + } + if (say_thanks) { res = play_file(qe->chan, qe->parent->sound_thanks); } playout: |