add missing if statement in say_position (bug #4435)
authorKevin P. Fleming <kpfleming@digium.com>
Thu, 2 Jun 2005 18:26:18 +0000 (18:26 +0000)
committerKevin P. Fleming <kpfleming@digium.com>
Thu, 2 Jun 2005 18:26:18 +0000 (18:26 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5816 65c4cc65-6c06-0410-ace0-fbb531ad65f3

apps/app_queue.c

index 06dcd06..11bd229 100755 (executable)
@@ -639,6 +639,7 @@ static int say_position(struct queue_ent *qe)
                        goto posout;
        } else {
                res = play_file(qe->chan, qe->parent->sound_thereare);
+               if (res && valid_exit(qe, res))
                        goto playout;
                res = ast_say_number(qe->chan, qe->pos, AST_DIGIT_ANY, qe->chan->language, (char *) NULL); /* Needs gender */
                if (res && valid_exit(qe, res))