diff --git a/apps/app_queue.c b/apps/app_queue.c index 6054670a65..ed8ff54261 100644 --- a/apps/app_queue.c +++ b/apps/app_queue.c @@ -2637,11 +2637,11 @@ static int try_calling(struct queue_ent *qe, const char *options, char *announce /* Must gotten hung up */ res = -1; } else { + /* User exited by pressing a digit */ res = digit; - if (res > 0 && !valid_exit(qe, res)) - res = 0; } - ast_debug(1, "%s: Nobody answered.\n", qe->chan->name); + if (res == -1) + ast_debug(1, "%s: Nobody answered.\n", qe->chan->name); } else { /* peer is valid */ /* Ah ha! Someone answered within the desired timeframe. Of course after this we will always return with -1 so that it is hung up properly after the