aboutsummaryrefslogtreecommitdiffstats
path: root/apps/app_queue.c
diff options
context:
space:
mode:
authormmichelson <mmichelson@f38db490-d61c-443f-a65b-d21fe96a405b>2007-09-06 16:25:40 +0000
committermmichelson <mmichelson@f38db490-d61c-443f-a65b-d21fe96a405b>2007-09-06 16:25:40 +0000
commit28ac58170f0117b21a9b60a068715c4681693d1b (patch)
tree2e9abe6f0003f2ea874d201e75de71e616d9979e /apps/app_queue.c
parent1ffd520ede063ae4f2d00e52f7acd8a896874dff (diff)
Fixes an issue where valid DTMF had to be pressed twice to exit a queue if a member's phone
was ringing. (closes issue #10655, reported by strider2k, patched by me) git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@81713 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'apps/app_queue.c')
-rw-r--r--apps/app_queue.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/apps/app_queue.c b/apps/app_queue.c
index 68f7203ca..b1de22146 100644
--- a/apps/app_queue.c
+++ b/apps/app_queue.c
@@ -2507,11 +2507,10 @@ 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;
}
- if (option_debug)
+ if (option_debug && res == -1)
ast_log(LOG_DEBUG, "%s: Nobody answered.\n", qe->chan->name);
} else { /* peer is valid */
/* Ah ha! Someone answered within the desired timeframe. Of course after this